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