Skip to content

Commit

Permalink
fix: fix shader compile for llf debug (#825)
Browse files Browse the repository at this point in the history
  • Loading branch information
FlayaN authored Dec 7, 2024
1 parent 8c7a40c commit ceb2175
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package/Shaders/Lighting.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ceb2175

Please sign in to comment.