0030700: Visualization, TKOpenGl - support PBR Metallic-Roughness shading model
[occt.git] / src / Shaders / PhongShading.fs
index d102812..1e52cbe 100755 (executable)
@@ -29,7 +29,7 @@ void pointLight (in int  theId,
                  in vec3 thePoint)
 {
   vec3 aLight = occLight_Position (theId).xyz;
-  if (occLight_IsHeadlight (theId) == 0)
+  if (!occLight_IsHeadlight (theId))
   {
     aLight = vec3 (occWorldViewMatrix * vec4 (aLight, 1.0));
   }