From ceb21759a4778a6a1f3f5822219194853cfda0af Mon Sep 17 00:00:00 2001 From: Flayan Date: Sat, 7 Dec 2024 01:38:37 +0100 Subject: [PATCH] fix: fix shader compile for llf debug (#825) --- package/Shaders/Lighting.hlsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {