소스 검색

GLTFExporter: Fix missing clearcoat normal map scale. (#28099)

Michael Herzog 1 년 전
부모
커밋
bbb6b50660
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      examples/jsm/exporters/GLTFExporter.js

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

@@ -2639,6 +2639,9 @@ class GLTFMaterialsClearcoatExtension {
 				index: writer.processTexture( material.clearcoatNormalMap ),
 				texCoord: material.clearcoatNormalMap.channel
 			};
+
+			if ( material.clearcoatNormalScale.x !== 1 ) clearcoatNormalMapDef.scale = material.clearcoatNormalScale.x;
+
 			writer.applyTextureTransform( clearcoatNormalMapDef, material.clearcoatNormalMap );
 			extensionDef.clearcoatNormalTexture = clearcoatNormalMapDef;