use swizzle syntax
This commit is contained in:
parent
527e0018ed
commit
0c85436429
@ -11,6 +11,6 @@ varying vec3 normal_i;
|
|||||||
void main(void)
|
void main(void)
|
||||||
{
|
{
|
||||||
gl_Position = projection * modelview * vec4(pos, 1);
|
gl_Position = projection * modelview * vec4(pos, 1);
|
||||||
pos_i = vec3(gl_Position.x, gl_Position.y, gl_Position.z);
|
pos_i = gl_Position.xyz;
|
||||||
normal_i = normal;
|
normal_i = normal;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user