Explorar o código

copy material extras

Wittmann Tobias %!s(int64=8) %!d(string=hai) anos
pai
achega
3997aa477a
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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:
 				// https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#materialnormaltexture
 				_material.normalScale.x = -1;
-
+				
+				_material.userData = material.extras;
+				
 				return _material;
 
 			} );