From 69f393de9799c3a5deb0976738ad305ed04e1df4 Mon Sep 17 00:00:00 2001 From: FlayaN Date: Sat, 7 Dec 2024 01:35:20 +0100 Subject: [PATCH] fix: fix shader compile for llf debug --- 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 {