fix obj shader to remove uniforms
This commit is contained in:
1 parent
9d33fa3c79
commit
d043cf999c
1 file changed
+2
-5
+2
-5
@@ -1,7 +1,4 @@
|
||||
|
||||
uniform mat4 projection;
|
||||
uniform mat4 modelview;
|
||||
|
||||
attribute vec3 pos;
|
||||
attribute vec3 normal;
|
||||
|
||||
@@ -10,7 +7,7 @@ varying vec3 normal_i;
|
||||
|
||||
void main(void)
|
||||
{
|
||||
gl_Position = projection * modelview * vec4(pos, 1);
|
||||
gl_Position = gl_ModelViewProjectionMatrix * vec4(pos, 1);
|
||||
pos_i = gl_Position.xyz;
|
||||
normal_i = normal;
|
||||
normal_i = gl_NormalMatrix * normal;
|
||||
}
|
||||
Reference in new issue
Block a user