avoid implicit conversion from vec4 to varying vec3

This commit is contained in:
Josh Holtrop 2012-10-03 23:22:04 -04:00
parent b20d7ab037
commit b36725e471
2 changed files with 2 additions and 2 deletions

View File

@ -12,5 +12,5 @@ void main(void)
{
gl_Position = projection * modelview * vec4(pos, 1);
pos_i = gl_Position.xyz;
normal_i = modelview * vec4(normal, 0);
normal_i = (modelview * vec4(normal, 0)).xyz;
}

View File

@ -15,5 +15,5 @@ void main(void)
gl_Position = projection * modelview * vec4(pos, 1);
pos_i = gl_Position.xyz;
tex_coord_i = tex_coord;
normal_i = modelview * vec4(normal, 0);
normal_i = (modelview * vec4(normal, 0)).xyz;
}