浏览代码

USDZExporter: Clean up

Mr.doob 4 年之前
父节点
当前提交
ff0e2e1b1b
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      examples/jsm/exporters/USDZExporter.js

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

@@ -76,7 +76,9 @@ function buildHeader() {
 
 	return `#usda 1.0
 (
-    doc = "Three.js"
+    customLayerData = {
+        string creator = "Three.js USDZExporter"
+    }
     metersPerUnit = 1
     upAxis = "Y"
 )
@@ -346,7 +348,6 @@ function buildTexture( texture ) {
     {
         uniform token info:id = "UsdUVTexture"
         asset inputs:file = @textures/Texture_${ texture.id }.jpg@
-        token inputs:isSRGB = "auto"
         token inputs:wrapS = "repeat"
         token inputs:wrapT = "repeat"
         float outputs:r