Browse Source

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 9 years ago
parent
commit
f22472f312
1 changed files with 5 additions and 0 deletions
  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;