remove scale uniform from shaders
This commit is contained in:
1 parent
a1a81d66e1
commit
932b0b55f6
3 files changed
+4
-7
No files matched your search
@@ -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,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);
|
||||
|
||||
Reference in new issue
Block a user