Parcourir la source

simplification

sunag il y a 8 ans
Parent
commit
73d080821b
1 fichiers modifiés avec 5 ajouts et 5 suppressions
  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;