Skip to content

Commit

Permalink
Fix VSM shadows (#5284)
Browse files Browse the repository at this point in the history
  • Loading branch information
slimbuck committed Apr 27, 2023
1 parent 61135b8 commit 9873a2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scene/shader-lib/programs/lit-shader.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ class LitShader {
}

_nonPointShadowMapProjection(device, light, shadowMatArg, shadowParamArg, lightIndex) {
const lightDirArgs = `dLightDirW`;
const lightDirArgs = `dLightPosW, dLightDirW`;
const lightDirNormArgs = `dLightPosW, dLightDirW, dLightDirNormW, dVertexNormalW`;
const shadowCoordArgs = `(${shadowMatArg}, ${shadowParamArg});\n`;
const shadowCoordNormArgs = `(${shadowMatArg}, ${shadowParamArg}, dVertexNormalW);\n`;
Expand Down

0 comments on commit 9873a2e

Please sign in to comment.