Ver Fonte

GLTFLoader: Allow alphaTest to be 0

marcatec há 7 anos atrás
pai
commit
458e323b52
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      examples/js/loaders/GLTFLoader.js

+ 1 - 1
examples/js/loaders/GLTFLoader.js

@@ -1700,7 +1700,7 @@ THREE.GLTFLoader = ( function () {
 
 				if ( alphaMode === ALPHA_MODES.MASK ) {
 
-					materialParams.alphaTest = material.alphaCutoff || 0.5;
+					materialParams.alphaTest = material.alphaCutoff !== undefined ? material.alphaCutoff : 0.5;
 
 				}