summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1/objects/simpleV.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/objects/simpleV.glsl')
-rw-r--r--indra/newview/app_settings/shaders/class1/objects/simpleV.glsl12
1 files changed, 1 insertions, 11 deletions
diff --git a/indra/newview/app_settings/shaders/class1/objects/simpleV.glsl b/indra/newview/app_settings/shaders/class1/objects/simpleV.glsl
index c744dc1397..37a20383e2 100644
--- a/indra/newview/app_settings/shaders/class1/objects/simpleV.glsl
+++ b/indra/newview/app_settings/shaders/class1/objects/simpleV.glsl
@@ -27,13 +27,6 @@ uniform mat3 normal_matrix;
uniform mat4 texture_matrix0;
uniform mat4 modelview_matrix;
uniform mat4 modelview_projection_matrix;
-uniform bool invert_tex_y = false;
-const mat4 invTexM = mat4(
- 1, 0, 0, 0,
- 0,-1, 0, 0,
- 0, 0, 1, 0,
- 0, 0, 0, 1
-);
ATTRIBUTE vec3 position;
void passTextureIndex();
@@ -58,10 +51,7 @@ void main()
gl_Position = modelview_projection_matrix*vec4(position.xyz, 1.0);
vary_texcoord0 = (texture_matrix0 * vec4(texcoord0, 0, 1)).xy;
- if(invert_tex_y)
- {
- vary_texcoord0 = vec2(invTexM * vec4(vary_texcoord0,0,1)).xy;
- }
+
vec3 norm = normalize(normal_matrix * normal);