|
@@ -387,6 +387,21 @@
|
|
texture.wrapS = valueU === 0 ? THREE.RepeatWrapping : THREE.ClampToEdgeWrapping;
|
|
texture.wrapS = valueU === 0 ? THREE.RepeatWrapping : THREE.ClampToEdgeWrapping;
|
|
texture.wrapT = valueV === 0 ? THREE.RepeatWrapping : THREE.ClampToEdgeWrapping;
|
|
texture.wrapT = valueV === 0 ? THREE.RepeatWrapping : THREE.ClampToEdgeWrapping;
|
|
|
|
|
|
|
|
+ if ( 'Scaling' in textureNode.properties ) {
|
|
|
|
+
|
|
|
|
+ var values = textureNode.properties.Scaling.value;
|
|
|
|
+
|
|
|
|
+ if ( typeof values === 'string' ) {
|
|
|
|
+
|
|
|
|
+ values = parseFloatArray( values );
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ texture.repeat.x = values[ 0 ];
|
|
|
|
+ texture.repeat.y = values[ 1 ];
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
loader.setPath( currentPath );
|
|
loader.setPath( currentPath );
|
|
|
|
|
|
return texture;
|
|
return texture;
|