Browse Source

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

Ben Houston 1 year ago
parent
commit
af8349bc71
1 changed files with 2 additions and 0 deletions
  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'