Quellcode durchsuchen

Default to repeated texture wrapping (#8608)

When Wrap Mode data is missing, fallback to Collada spec default repeated wrapping. Without this change the wrapping is clamped to edge which should not be the default behaviour.
Niels vor 9 Jahren
Ursprung
Commit
f22472f312
1 geänderte Dateien mit 5 neuen und 0 gelöschten Zeilen
  1. 5 0
      examples/js/loaders/ColladaLoader2.js

+ 5 - 0
examples/js/loaders/ColladaLoader2.js

@@ -599,6 +599,11 @@ THREE.ColladaLoader.prototype = {
 						texture.offset.set( technique.offsetU, technique.offsetV );
 						texture.repeat.set( technique.repeatU, technique.repeatV );
 
+					} else {
+				
+						texture.wrapS = THREE.RepeatWrapping;
+						texture.wrapT = THREE.RepeatWrapping;
+					
 					}
 
 					texture.needsUpdate = true;