remove scale uniform from shaders

This commit is contained in:
josh committed 2012-09-15 20:53:14 -04:00
1 parent a1a81d66e1
commit 932b0b55f6
3 files changed
+4 -7

No files matched your search

+1 -2
View File
@@ -1,5 +1,4 @@
uniform float scale;
uniform mat4 projection;
uniform mat4 modelview;
@@ -11,7 +10,7 @@ varying vec3 normal_i;
void main(void)
{
gl_Position = projection * modelview * vec4(scale * pos, 1);
gl_Position = projection * modelview * vec4(pos, 1);
pos_i = gl_Position.xyz;
normal_i = modelview * vec4(normal, 0);
}
+1 -2
View File
@@ -1,5 +1,4 @@
uniform float scale;
uniform mat4 projection;
uniform mat4 modelview;
@@ -13,7 +12,7 @@ varying vec2 tex_coord_i;
void main(void)
{
gl_Position = projection * modelview * vec4(scale * pos, 1);
gl_Position = projection * modelview * vec4(pos, 1);
pos_i = gl_Position.xyz;
tex_coord_i = tex_coord;
normal_i = modelview * vec4(normal, 0);