Skip to content

Commit

Permalink
Merge pull request #18706 from meliharvey/matloader-#18705
Browse files Browse the repository at this point in the history
MaterialLoader: Remove transparent based on alphaMap
  • Loading branch information
mrdoob authored Feb 22, 2020
2 parents 3121216 + 66b4d70 commit 7f8c60d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/loaders/MaterialLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7f8c60d

Please sign in to comment.