avoid implicit conversion from vec4 to varying vec3

This commit is contained in:
josh committed 2012-10-03 23:22:04 -04:00
1 parent b20d7ab037
commit b36725e471
2 files changed
+2 -2

No files matched your search

+1 -1
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;
}
+1 -1
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;
}