Explorar o código

Loader.createMaterial: Delete emissive for MeshBasicMaterial. See #7635.

Mr.doob %!s(int64=9) %!d(string=hai) anos
pai
achega
6817765c08
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/loaders/Loader.js

+ 2 - 0
src/loaders/Loader.js

@@ -247,7 +247,9 @@ THREE.Loader.prototype = {
 
 			}
 
+			if ( json.type === 'MeshBasicMaterial' ) delete json.emissive;
 			if ( json.type !== 'MeshPhongMaterial' ) delete json.specular;
+
 			if ( json.opacity < 1 ) json.transparent = true;
 
 			materialLoader.setTextures( textures );