Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
AngelJ's avatar
AngelJ
Explorer
12 years ago

Anaglyph 3D in the Rift

I'm adding support for viewing anaglyph 3D in Deskope. I have zero experience with anaglyph 3D and there's not much online about what I'm doing since it's kind of a weird thing to do.

Anyway, since I don't know how it's supposed to look, I'm not a very good tester. Can you tell from these screenshots and my shader code if I'm doing it right?

Deskope 2013-07-12 10-01-36-26.png
Deskope 2013-07-12 10-01-47-15.png
Deskope 2013-07-12 10-01-57-93.png

sampler Tex0;
float4 BlendColor : register(c0);

// fetch texture and blend with a color
float4 main( float2 Texture : TEXCOORD0 ) : COLOR0
{
return tex2D(Tex0, Texture) * BlendColor;
}

15 Replies