瀏覽代碼

USDZExporter: Support transparency (#21747)

qeeqez 4 年之前
父節點
當前提交
c872add33c
共有 2 個文件被更改,包括 3 次插入0 次删除
  1. 1 0
      examples/js/exporters/USDZExporter.js
  2. 2 0
      examples/jsm/exporters/USDZExporter.js

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

@@ -320,6 +320,7 @@ ${array.join( '' )}
 
 		}
 
+		parameters.push( `${pad}float inputs:opacity = ${material.opacity}` );
 		return `
     def Material "Material_${material.id}"
     {

+ 2 - 0
examples/jsm/exporters/USDZExporter.js

@@ -338,6 +338,8 @@ function buildMaterial( material ) {
 
 	}
 
+	parameters.push( `${ pad }float inputs:opacity = ${ material.opacity }` );
+
 	return `
     def Material "Material_${ material.id }"
     {