Commit 00a97596 authored by Sylvain Thery's avatar Sylvain Thery

wrong direction ofr vector LightDir in shaderEnvMap.vert

parent 6f62f64d
......@@ -24,7 +24,7 @@ void main ()
{
Normal = vec3 (NormalMatrix * vec4 (VertexNormal, 0.0));
vec3 Position = vec3 (ModelViewMatrix * vec4 (VertexPosition, 1.0));
LightDir = Position - lightPosition;
LightDir = lightPosition - Position;
#ifdef WITH_EYEPOSITION
EyeVector = eyePosition-Position;
#else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment