2
0
Эх сурвалжийг харах

CubeCamera: clear() needs renderer reference.

Mr.doob 8 жил өмнө
parent
commit
6abebfd318

+ 1 - 1
docs/api/cameras/CubeCamera.html

@@ -76,7 +76,7 @@
 		Call this to update the [page:CubeCamera.renderTarget renderTarget].
 		</div>
 
-		<h3>[method:null clear]( [page:Boolean color], [page:Boolean depth], [page:Boolean stencil] )</h3>
+		<h3>[method:null clear]( [page:WebGLRenderer renderer], [page:Boolean color], [page:Boolean depth], [page:Boolean stencil] )</h3>
 		<div>
 		Call this to clear the [page:CubeCamera.renderTarget renderTarget] color, depth, and/or stencil buffers.
 		The color buffer is set to the renderer's current clear color. Arguments default to *true*.

+ 1 - 1
src/cameras/CubeCamera.js

@@ -87,7 +87,7 @@ function CubeCamera( near, far, cubeResolution ) {
 
 	};
 
-	this.clear = function ( color, depth, stencil ) {
+	this.clear = function ( renderer, color, depth, stencil ) {
 
 		var renderTarget = this.renderTarget;