fix obj shader to remove uniforms

This commit is contained in:
Josh Holtrop committed 2011-07-15 12:25:18 -04:00
1 parent 9d33fa3c79
commit d043cf999c
1 file changed
+2 -5
+2 -5
View File
@@ -1,7 +1,4 @@
uniform mat4 projection;
uniform mat4 modelview;
attribute vec3 pos; attribute vec3 pos;
attribute vec3 normal; attribute vec3 normal;
@@ -10,7 +7,7 @@ varying vec3 normal_i;
void main(void) void main(void)
{ {
gl_Position = projection * modelview * vec4(pos, 1); gl_Position = gl_ModelViewProjectionMatrix * vec4(pos, 1);
pos_i = gl_Position.xyz; pos_i = gl_Position.xyz;
normal_i = normal; normal_i = gl_NormalMatrix * normal;
} }