2013-12-16, 20:08
(2013-12-09, 18:32)da-anda Wrote: yep anaglyph rendering on windows is implemented in recent nightlies. Kudos to afedchin!!!!!! Thanks a lot for helping out on this.Thanks a lot!
maybe this can be usefull to some developers:
sampler s0 : register(s0);
float4 p0 : register(c0);
#define width (p0[0])
#define height (p0[1])
float4 main(float2 tex : TEXCOORD0) : COLOR
{
tex.x = tex.x / 2;
float4 l = tex2D(s0, tex);
tex.x = tex.x + 0.5;
float4 r = tex2D(s0, tex);
float red = l.g * 0.7 + l.b * 0.3;
float green = r.g;
float blue = r.b;
return float4(red, green, blue, 1);
}
is the shader that i use with mpchc for optimized anaglyph (red cyan) the result is much better when there cyan or red things on the video