(07-23-2009, 04:44 AM)Core2uu Wrote:(07-22-2009, 08:05 PM)omegadox Wrote: Well I started some work on a Red/Cyan Stereoscopic shader, I just need the camera rotated some or possibly using the depth buffer, so everything will look flat right now with it on.
http://code.google.com/p/dolphin-emu/source/browse/trunk/Data/User/Shaders/stereoscopic.txt
Mind adding Yellow/Cyan too? If not I might just go ahead, learn shaders and do it myself.
That would be Amber/Blue.
Left Eye = Red + Green
Right Eye = Blue
Not hard to mod the code:
Code:
// Omega's 3D Stereoscopic filtering (Amber/Blue)
// TODO: Need depth info!
uniform samplerRECT samp0 : register(s0);
void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0)
{
float4 c0 = texRECT(samp0, uv0).rgba; // Source Color
float sep = 5;
float red = c0.r;
float green = c0.g;
float blue = c0.b;
// Left Eye (Amber)
float4 c2 = texRECT(samp0, uv0 + float2(sep,0)).rgba;
float amber = (c2.r + c2.g) / 2;
red = max(c0.r, amber);
green = max(c0.g, amber);
// Right Eye (Blue)
float4 c1 = texRECT(samp0, uv0 + float2(-sep,0)).rgba;
blue = max(c0.b, c1.b);
ocol0 = float4(red, green, blue, c0.a);
}
:: System Specs ::
Operating System: Windows 7 Professional x64
Video Card: ATI Radeon HD 5770
CPU: AMD Phenom I X4 9550
RAM: 6GB DDR2
EXP Index: 999999.999999
Operating System: Windows 7 Professional x64
Video Card: ATI Radeon HD 5770
CPU: AMD Phenom I X4 9550
RAM: 6GB DDR2
EXP Index: 999999.999999
