Browse Source

NodeMaterial: Discard if the mask is `false`

sunag 7 months ago
parent
commit
6260c7fac3
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/materials/nodes/NodeMaterial.js

+ 3 - 1
src/materials/nodes/NodeMaterial.js

@@ -787,7 +787,9 @@ class NodeMaterial extends Material {
 
 
 		if ( this.maskNode !== null ) {
 		if ( this.maskNode !== null ) {
 
 
-			bool( this.maskNode ).discard();
+			// Discard if the mask is `false`
+
+			bool( this.maskNode ).not().discard();
 
 
 		}
 		}
 
 

粤ICP备19079148号