Explorar el Código

simplification

sunag hace 8 años
padre
commit
73d080821b
Se han modificado 1 ficheros con 5 adiciones y 5 borrados
  1. 5 5
      examples/js/nodes/utils/UVTransformNode.js

+ 5 - 5
examples/js/nodes/utils/UVTransformNode.js

@@ -35,11 +35,11 @@ THREE.UVTransformNode.prototype.compose = function () {
 
 		var matrix = this.transform.value;
 
-		matrix.identity();
-		matrix.setPosition( tempVector.set( - optionalCenter.x, - optionalCenter.y, 0 ) );
-		matrix.premultiply( tempMatrix.makeRotationZ( rotate ) );
-		matrix.multiply( tempMatrix.makeScale( scale.x, scale.y, 0 ) );
-		matrix.multiply( tempMatrix.makeTranslation( translate.x, translate.y, 0 ) );
+		matrix.identity()
+			.setPosition( tempVector.set( - optionalCenter.x, - optionalCenter.y, 0 ) )
+			.premultiply( tempMatrix.makeRotationZ( rotate ) )
+			.multiply( tempMatrix.makeScale( scale.x, scale.y, 0 ) )
+			.multiply( tempMatrix.makeTranslation( translate.x, translate.y, 0 ) );
 
 		return this;