Browse Source

added missing transparency check to material loader

Lokesh Raj Arora 5 years ago
parent
commit
93beb970e8
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/loaders/MaterialLoader.js

+ 1 - 0
src/loaders/MaterialLoader.js

@@ -92,6 +92,7 @@ MaterialLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 		if ( json.side !== undefined ) material.side = json.side;
 		if ( json.side !== undefined ) material.side = json.side;
 		if ( json.opacity !== undefined ) material.opacity = json.opacity;
 		if ( json.opacity !== undefined ) material.opacity = json.opacity;
 		if ( json.transparent !== undefined ) material.transparent = json.transparent;
 		if ( json.transparent !== undefined ) material.transparent = json.transparent;
+		if ( json.transparency !== undefined ) material.transparency = json.transparency;
 		if ( json.alphaTest !== undefined ) material.alphaTest = json.alphaTest;
 		if ( json.alphaTest !== undefined ) material.alphaTest = json.alphaTest;
 		if ( json.depthTest !== undefined ) material.depthTest = json.depthTest;
 		if ( json.depthTest !== undefined ) material.depthTest = json.depthTest;
 		if ( json.depthWrite !== undefined ) material.depthWrite = json.depthWrite;
 		if ( json.depthWrite !== undefined ) material.depthWrite = json.depthWrite;