2
0
sunag 8 жил өмнө
parent
commit
73d080821b

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

@@ -35,11 +35,11 @@ THREE.UVTransformNode.prototype.compose = function () {
 
 
 		var matrix = this.transform.value;
 		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;
 		return this;