Explorar o código

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 %!s(int64=9) %!d(string=hai) anos
pai
achega
f22472f312
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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;