File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- <_LeftRight >
2- <uniform name =" diffuseMap" type =" sampler2D" value =" 0" />
3- <uniform name =" Stereo" type =" int" value =" 0" />
4- <vertexProgram >
5- varying vec2 Texcoord;
1+ <_StereoVideo ><uniform name =" diffuseMap" type =" sampler2D" value =" 0" /><uniform name =" Stereo" type =" int" value =" 0" /><vertexProgram >varying vec2 Texcoord;
62
73
84 void main( void )
95 {
106 Texcoord = gl_MultiTexCoord0;
117 gl_Position = ftransform();
128 }
13- </vertexProgram >
14- <fragmentProgram >varying vec2 Texcoord;
9+ </vertexProgram ><fragmentProgram >varying vec2 Texcoord;
1510 uniform sampler2D diffuseMap;
1611
1712 uniform int Stereo;
@@ -20,9 +15,9 @@ varying vec2 Texcoord;
2015 {
2116 vec2 tcl = Texcoord;
2217 vec2 tcr = Texcoord;
23- tcl .x = Texcoord.x*0.5;
18+ tcr .x = Texcoord.x*0.5;
2419 tcl.y = -tcl.y;
25- tcr .x = Texcoord.x*0.5-0.5;
20+ tcl .x = Texcoord.x*0.5-0.5;
2621 tcr.y = -tcr.y;
2722 //tcr.x = (Texcoord.x+0.5)*0.5;
2823 if(Stereo==1) //right
@@ -32,4 +27,4 @@ varying vec2 Texcoord;
3227
3328 }
3429
35- </fragmentProgram ></_LeftRight >
30+ </fragmentProgram ></_StereoVideo >
You can’t perform that action at this time.
0 commit comments