diff --git a/TIGLViewer/shaders/PhongShading-v7.6.fs b/TIGLViewer/shaders/PhongShading-v7.6.fs index d02cb75a2..25efa8b73 100644 --- a/TIGLViewer/shaders/PhongShading-v7.6.fs +++ b/TIGLViewer/shaders/PhongShading-v7.6.fs @@ -180,7 +180,7 @@ vec4 computeLighting (in vec3 theNormal, vec3 v = vec3(0., 0., -1.); // Direction of the view reflected on the surface - vec3 vReflect = 2. * (dot(Normal, v)*Normal - v); + vec3 vReflect = 2. * (dot(theNormal, v)*theNormal - v); // normal vector of the light stripe plane vec3 lightDir = normalize(vec3(0., 1., 0.));