提交 380067c4 编写于 作者: G Garrett Johnson

Add target to getClearColor

上级 9362babd
...@@ -532,9 +532,17 @@ function WebGLRenderer( parameters ) { ...@@ -532,9 +532,17 @@ function WebGLRenderer( parameters ) {
// Clearing // Clearing
this.getClearColor = function () { this.getClearColor = function ( target ) {
return background.getClearColor(); if ( target === undefined ) {
console.warn( 'WebGLRenderer: .getClearColor() now requires a Color as an argument' );
target = new Color();
}
return target.copy( background.getClearColor() );
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册