Переглянути джерело

NodeMaterial: Discard if the mask is `false`

sunag 11 місяців тому
батько
коміт
6260c7fac3
1 змінених файлів з 3 додано та 1 видалено
  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 ) {
 
-			bool( this.maskNode ).discard();
+			// Discard if the mask is `false`
+
+			bool( this.maskNode ).not().discard();
 
 		}
 

粤ICP备19079148号