Browse Source

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

Michael Herzog 3 years ago
parent
commit
203254fc2c
1 changed files with 3 additions and 2 deletions
  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 ] );
 
 			}