Browse Source

USDZExporter: Define emissiveColor only when required.

Mr.doob 4 years ago
parent
commit
ec7718144d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/jsm/exporters/USDZExporter.js

+ 1 - 1
examples/jsm/exporters/USDZExporter.js

@@ -265,7 +265,7 @@ function buildMaterial( material ) {
 
 		parameters.push( `${ pad }color3f inputs:emissiveColor.connect = </Textures/Texture_${ material.emissiveMap.id }.outputs:rgb>` );
 
-	} else {
+	} else if ( material.emissive.getHex() > 0 ) {
 
 		parameters.push( `${ pad }color3f inputs:emissiveColor = ${ buildColor( material.emissive ) }` );