Skip to content

Commit c872add

Browse files
author
qeeqez
authored
USDZExporter: Support transparency (#21747)
1 parent 4e167aa commit c872add

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

examples/js/exporters/USDZExporter.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ ${array.join( '' )}
320320

321321
}
322322

323+
parameters.push( `${pad}float inputs:opacity = ${material.opacity}` );
323324
return `
324325
def Material "Material_${material.id}"
325326
{

examples/jsm/exporters/USDZExporter.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,8 @@ function buildMaterial( material ) {
338338

339339
}
340340

341+
parameters.push( `${ pad }float inputs:opacity = ${ material.opacity }` );
342+
341343
return `
342344
def Material "Material_${ material.id }"
343345
{

0 commit comments

Comments
 (0)