提交 14152a3a 编写于 作者: M Mr.doob

Sprite: Removed unused code.

上级 a30a8538
......@@ -9,7 +9,6 @@ THREE.Sprite = function ( material ) {
this.material = ( material !== undefined ) ? material : new THREE.SpriteMaterial();
this.rotation3d = this.rotation;
this.rotation = 0;
};
......@@ -22,9 +21,6 @@ THREE.Sprite.prototype = Object.create( THREE.Object3D.prototype );
THREE.Sprite.prototype.updateMatrix = function () {
// this.rotation3d.set( 0, 0, this.rotation, this.rotation3d.order ); // not needed. sprite is rotated in the vertex shader.
// this.quaternion.setFromEuler( this.rotation3d ); // ...sprite.rotation3d remains zero.
this.matrix.compose( this.position, this.quaternion, this.scale );
this.matrixWorldNeedsUpdate = true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册