X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FShaders%2FPhongShading.fs;h=9fc3df28cc4711e972e9806b18cdd98647de8f57;hp=665f83d3e1ededdb2ec643291a7d3ae227a092b3;hb=01eaf6549b08f78d8a530778151fcd9c7b5c0c8a;hpb=64c759f8983d25fb44228bce8100f2b86433b86d diff --git a/src/Shaders/PhongShading.fs b/src/Shaders/PhongShading.fs index 665f83d3e1..9fc3df28cc 100644 --- a/src/Shaders/PhongShading.fs +++ b/src/Shaders/PhongShading.fs @@ -97,7 +97,7 @@ vec4 computeLighting (in vec3 theNormal, Diffuse = vec3 (0.0); Specular = vec3 (0.0); vec3 aPoint = thePoint.xyz / thePoint.w; - for (int anIndex = 0; anIndex < occLightSourcesCount; ++anIndex) + for (int anIndex = 0; anIndex < THE_MAX_LIGHTS; ++anIndex) { int aType = occLight_Type (anIndex); if (aType == OccLightType_Direct)