use swizzle syntax

This commit is contained in:
Josh Holtrop 2011-05-16 09:58:30 -04:00
parent 527e0018ed
commit 0c85436429

View File

@ -11,6 +11,6 @@ varying vec3 normal_i;
void main(void)
{
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;
}