aboutsummaryrefslogtreecommitdiff
path: root/client/shaders/3d_interlaced_merge/opengl_fragment.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'client/shaders/3d_interlaced_merge/opengl_fragment.glsl')
-rw-r--r--client/shaders/3d_interlaced_merge/opengl_fragment.glsl4
1 files changed, 3 insertions, 1 deletions
diff --git a/client/shaders/3d_interlaced_merge/opengl_fragment.glsl b/client/shaders/3d_interlaced_merge/opengl_fragment.glsl
index 25945ad7f..7cba61b39 100644
--- a/client/shaders/3d_interlaced_merge/opengl_fragment.glsl
+++ b/client/shaders/3d_interlaced_merge/opengl_fragment.glsl
@@ -6,9 +6,11 @@ uniform sampler2D textureFlags;
#define rightImage normalTexture
#define maskImage textureFlags
+varying mediump vec2 varTexCoord;
+
void main(void)
{
- vec2 uv = gl_TexCoord[0].st;
+ vec2 uv = varTexCoord.st;
vec4 left = texture2D(leftImage, uv).rgba;
vec4 right = texture2D(rightImage, uv).rgba;
vec4 mask = texture2D(maskImage, uv).rgba;