Skip to content

Commit

Permalink
Manually update dithering macro
Browse files Browse the repository at this point in the history
  • Loading branch information
vanruesc committed Jun 6, 2024
1 parent 88129a4 commit 120988c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/passes/EffectPass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,18 @@ export class EffectPass extends Pass<EffectMaterial> {
} else {

material.dithering = value;

// The macro needs to be updated manually because RawShaderMaterial doesn't honor the property.
if(value) {

material.defines.DITHERING = true;

} else {

delete material.defines.DITHERING;

}

material.needsUpdate = true;

}
Expand Down

0 comments on commit 120988c

Please sign in to comment.