提交 79da9723 编写于 作者: M Mugen87

Clean up

上级 9aa6f48c
......@@ -171,23 +171,23 @@ Object.assign( Object3D.prototype, EventDispatcher.prototype, {
}(),
rotateOnWorldAxis: function () {
// rotate object on axis in world space
// axis is assumed to be normalized
// method assumes no rotated parent
var q1 = new Quaternion();
return function rotateOnWorldAxis( axis, angle ) {
q1.setFromAxisAngle( axis, angle );
this.quaternion.premultiply( q1 );
return this;
};
}(),
rotateX: function () {
......
......@@ -437,7 +437,7 @@ function WebGLRenderer( parameters ) {
// Clearing
this.getClearColor = function() {
this.getClearColor = function () {
return background.getClearColor();
......@@ -449,13 +449,13 @@ function WebGLRenderer( parameters ) {
};
this.getClearAlpha = function() {
this.getClearAlpha = function () {
return background.getClearAlpha();
};
this.setClearAlpha = function() {
this.setClearAlpha = function () {
background.setClearAlpha.apply( background, arguments );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册