Browse Source

CubeCamera: clear() needs renderer reference.

Mr.doob 8 năm trước cách đây
mục cha
commit
6abebfd318
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      docs/api/cameras/CubeCamera.html
  2. 1 1
      src/cameras/CubeCamera.js

+ 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;