use normal specified by the user for lighting in world coordinates

This commit is contained in:
Josh Holtrop 2011-05-13 11:58:14 -04:00
parent b3eb5daa22
commit 4758ebab87

View File

@ -12,5 +12,5 @@ void main(void)
{
gl_Position = projection * modelview * vec4(pos, 1);
pos_i = vec3(gl_Position.x, gl_Position.y, gl_Position.z);
normal_i = vec3(modelview * vec4(normal, 0.0));
normal_i = normal;
}