Skip to content

Commit

Permalink
[Fix[ Fixed incorrect test for enabled shadow dithering (#6015)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Valigursky <mvaligursky@snapchat.com>
  • Loading branch information
mvaligursky and Martin Valigursky committed Jan 29, 2024
1 parent ca3c4b7 commit 8ed06e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scene/shader-lib/programs/standard.js
Expand Up @@ -502,7 +502,7 @@ class ShaderGeneratorStandard extends ShaderGenerator {
code.append(litShader.chunks.alphaTestPS);
func.append("alphaTest(dAlpha);");
}
if (opacityShadowDither) {
if (opacityShadowDither !== DITHER_NONE) {
if (opacityShadowDither === DITHER_BAYER8)
decl.append(litShader.chunks.bayerPS);
decl.append(`#define DITHER_${opacityShadowDither.toUpperCase()}\n`);
Expand Down

0 comments on commit 8ed06e5

Please sign in to comment.