Skip to content

Commit ec77181

Browse files
committed
USDZExporter: Define emissiveColor only when required.
1 parent ff0e2e1 commit ec77181

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/jsm/exporters/USDZExporter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ function buildMaterial( material ) {
265265

266266
parameters.push( `${ pad }color3f inputs:emissiveColor.connect = </Textures/Texture_${ material.emissiveMap.id }.outputs:rgb>` );
267267

268-
} else {
268+
} else if ( material.emissive.getHex() > 0 ) {
269269

270270
parameters.push( `${ pad }color3f inputs:emissiveColor = ${ buildColor( material.emissive ) }` );
271271

0 commit comments

Comments
 (0)