summaryrefslogtreecommitdiff
path: root/glass.vert
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-08-07 14:44:55 -0700
committerEric Anholt <eric@anholt.net>2009-08-07 14:44:55 -0700
commitfd654e927eaba350542818ba1230d75de4136a98 (patch)
treed2e1523ca593cd9cf7ccdaf5732abe5f82cdbbfa /glass.vert
parent0abadf8012c486ef33fd4d62965ac6a575420119 (diff)
Move texcoord.x *= 4 out of VS into constants.
Diffstat (limited to 'glass.vert')
-rw-r--r--glass.vert2
1 files changed, 1 insertions, 1 deletions
diff --git a/glass.vert b/glass.vert
index f894214..397dac2 100644
--- a/glass.vert
+++ b/glass.vert
@@ -21,7 +21,7 @@ void main()
vec3 vertex_eye = vec3(mv * gl_Vertex);
shadow_coords = light_mvp * gl_Vertex;
- texcoord = vec2(gl_MultiTexCoord0.x * 4, gl_MultiTexCoord0.y);
+ texcoord = gl_MultiTexCoord0.xy;
light_surf = normalize((light_eye - vertex_eye) * tbn);
eye_surf = normalize((-vertex_eye) * tbn);
tangent_surf = gl_MultiTexCoord1.xyz * tbn;