Pārlūkot izejas kodu

copy material extras

Wittmann Tobias 8 gadi atpakaļ
vecāks
revīzija
3997aa477a
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 3 1
      examples/js/loaders/GLTF2Loader.js

+ 3 - 1
examples/js/loaders/GLTF2Loader.js

@@ -2107,7 +2107,9 @@ THREE.GLTF2Loader = ( function () {
 				// Normal map textures use OpenGL conventions:
 				// Normal map textures use OpenGL conventions:
 				// https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#materialnormaltexture
 				// https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#materialnormaltexture
 				_material.normalScale.x = -1;
 				_material.normalScale.x = -1;
-
+				
+				_material.userData = material.extras;
+				
 				return _material;
 				return _material;
 
 
 			} );
 			} );