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

Clean up

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