Explorar el 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 hace 9 años
padre
commit
f22472f312
Se han modificado 1 ficheros con 5 adiciones y 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;