소스 검색

Added `accessor.normalized` property support in GLTFExporter.js

LeonYuanYao 5 년 전
부모
커밋
8bff85b20b
2개의 변경된 파일12개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      examples/js/exporters/GLTFExporter.js
  2. 6 0
      examples/jsm/exporters/GLTFExporter.js

+ 6 - 0
examples/js/exporters/GLTFExporter.js

@@ -702,6 +702,12 @@ THREE.GLTFExporter.prototype = {
 
 
 			};
 			};
 
 
+			if ( attribute.normalized === true ) {
+
+				gltfAccessor.normalized = true;
+				
+			}
+
 			if ( ! outputJSON.accessors ) {
 			if ( ! outputJSON.accessors ) {
 
 
 				outputJSON.accessors = [];
 				outputJSON.accessors = [];

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

@@ -724,6 +724,12 @@ GLTFExporter.prototype = {
 
 
 			};
 			};
 
 
+			if ( attribute.normalized === true ) {
+
+				gltfAccessor.normalized = true;
+				
+			}
+
 			if ( ! outputJSON.accessors ) {
 			if ( ! outputJSON.accessors ) {
 
 
 				outputJSON.accessors = [];
 				outputJSON.accessors = [];