浏览代码

add support for 4 UV channels in GLTFExporter, to match GLTFImporter. (#26909)

Ben Houston 1 年之前
父节点
当前提交
af8349bc71
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      examples/jsm/exporters/GLTFExporter.js

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

@@ -1646,6 +1646,8 @@ class GLTFWriter {
 		const nameConversion = {
 			uv: 'TEXCOORD_0',
 			uv1: 'TEXCOORD_1',
+			uv2: 'TEXCOORD_2',
+			uv3: 'TEXCOORD_3',
 			color: 'COLOR_0',
 			skinWeight: 'WEIGHTS_0',
 			skinIndex: 'JOINTS_0'