浏览代码

simplification

sunag 8 年之前
父节点
当前提交
73d080821b
共有 1 个文件被更改,包括 5 次插入5 次删除
  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;