diff --git a/package/Shaders/Lighting.hlsl b/package/Shaders/Lighting.hlsl index 3eeba586e..eac2f4963 100644 --- a/package/Shaders/Lighting.hlsl +++ b/package/Shaders/Lighting.hlsl @@ -2634,9 +2634,9 @@ PS_OUTPUT main(PS_INPUT input, bool frontFace # if defined(LIGHT_LIMIT_FIX) && defined(LLFDEBUG) if (SharedData::lightLimitFixSettings.EnableLightsVisualisation) { if (SharedData::lightLimitFixSettings.LightsVisualisationMode == 0) { - psout.Diffuse.xyz = LightLimitFix::TurboColormap(NumStrictLights >= 7.0); + psout.Diffuse.xyz = LightLimitFix::TurboColormap(LightLimitFix::NumStrictLights >= 7.0); } else if (SharedData::lightLimitFixSettings.LightsVisualisationMode == 1) { - psout.Diffuse.xyz = LightLimitFix::TurboColormap((float)NumStrictLights / 15.0); + psout.Diffuse.xyz = LightLimitFix::TurboColormap((float)LightLimitFix::NumStrictLights / 15.0); } else if (SharedData::lightLimitFixSettings.LightsVisualisationMode == 2) { psout.Diffuse.xyz = LightLimitFix::TurboColormap((float)numClusteredLights / MAX_CLUSTER_LIGHTS); } else {