|
@@ -385,6 +385,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 ( textureNode.properties.Scaling ) {
|
|
|
|
+
|
|
|
|
+ var values = textureNode.properties.Scaling.value
|
|
|
|
+
|
|
|
|
+ if ( typeof values === "string" ) {
|
|
|
|
+ values = values.split(",").map(function(number) {
|
|
|
|
+ return parseFloat(number);
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ texture.repeat.x = values[0]
|
|
|
|
+ texture.repeat.y = values[1]
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
|
|
loader.setPath( currentPath );
|
|
loader.setPath( currentPath );
|
|
|
|
|