Skip to content

Commit

Permalink
Alpha test fix (#5126)
Browse files Browse the repository at this point in the history
  • Loading branch information
slimbuck authored Mar 6, 2023
1 parent 477dd81 commit 560f730
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/scene/renderer/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,8 @@ class Renderer {
// Alpha test
if (material.opacityMap) {
this.opacityMapId.setValue(material.opacityMap);
}
if (material.opacityMap || material.alphaTest > 0) {
this.alphaTestId.setValue(material.alphaTest);
}
}
Expand Down

0 comments on commit 560f730

Please sign in to comment.