Explorar o código

3DMLoader: Remove usage of THREE namespace. (#24075)

Michael Herzog %!s(int64=3) %!d(string=hai) anos
pai
achega
203254fc2c
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      examples/jsm/loaders/3DMLoader.js

+ 3 - 2
examples/jsm/loaders/3DMLoader.js

@@ -21,6 +21,7 @@ import {
 	CanvasTexture,
 	LinearFilter,
 	ClampToEdgeWrapping,
+	RepeatWrapping,
 	TextureLoader
 } from 'three';
 
@@ -288,8 +289,8 @@ class Rhino3dmLoader extends Loader {
 
 				}
 
-				map.wrapS = texture.wrapU === 0 ? THREE.RepeatWrapping : THREE.ClampToEdgeWrapping;
-				map.wrapT = texture.wrapV === 0 ? THREE.RepeatWrapping : THREE.ClampToEdgeWrapping;
+				map.wrapS = texture.wrapU === 0 ? RepeatWrapping : ClampToEdgeWrapping;
+				map.wrapT = texture.wrapV === 0 ? RepeatWrapping : ClampToEdgeWrapping;
 				map.repeat.set( texture.repeat[ 0 ], texture.repeat[ 1 ] );
 
 			}