Selaa lähdekoodia

Merge pull request #18706 from meliharvey/matloader-#18705

MaterialLoader: Remove transparent based on alphaMap
Mr.doob 5 vuotta sitten
vanhempi
commit
7f8c60de80
1 muutettua tiedostoa jossa 1 lisäystä ja 6 poistoa
  1. 1 6
      src/loaders/MaterialLoader.js

+ 1 - 6
src/loaders/MaterialLoader.js

@@ -207,12 +207,7 @@ MaterialLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 		if ( json.map !== undefined ) material.map = getTexture( json.map );
 		if ( json.matcap !== undefined ) material.matcap = getTexture( json.matcap );
 
-		if ( json.alphaMap !== undefined ) {
-
-			material.alphaMap = getTexture( json.alphaMap );
-			material.transparent = true;
-
-		}
+		if ( json.alphaMap !== undefined ) material.alphaMap = getTexture( json.alphaMap );
 
 		if ( json.bumpMap !== undefined ) material.bumpMap = getTexture( json.bumpMap );
 		if ( json.bumpScale !== undefined ) material.bumpScale = json.bumpScale;