Skip to content

Commit

Permalink
Fixed PCF1 clustered shadow shader compile error (#5250)
Browse files Browse the repository at this point in the history
Co-authored-by: Steven Yau <social@stevenyau.co.uk>
  • Loading branch information
yaustar and Steven Yau authored Apr 17, 2023
1 parent c182286 commit ac46b9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scene/shader-lib/chunks/lit/frag/clusteredLight.js
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ void evaluateLight(
getShadowCoordPerspZbufferNormalOffset(lightProjectionMatrix, shadowParams, geometricNormal);
#if defined(CLUSTER_SHADOW_TYPE_PCF1)
float shadow = getShadowSpotClusteredPCF1(SHADOWMAP_PASS(shadowAtlasTexture), shadowParams);
float shadow = getShadowSpotClusteredPCF1(SHADOWMAP_PASS(shadowAtlasTexture), dShadowCoord, shadowParams);
#elif defined(CLUSTER_SHADOW_TYPE_PCF3)
float shadow = getShadowSpotClusteredPCF3(SHADOWMAP_PASS(shadowAtlasTexture), dShadowCoord, shadowParams);
#elif defined(CLUSTER_SHADOW_TYPE_PCF5)
Expand Down

0 comments on commit ac46b9f

Please sign in to comment.