Skip to content

Commit

Permalink
USDZExporter: Define emissiveColor only when required.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Feb 11, 2021
1 parent ff0e2e1 commit ec77181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/jsm/exporters/USDZExporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) }` );

Expand Down

0 comments on commit ec77181

Please sign in to comment.