فهرست منبع

updated TypeScript definition of webgl renderer to reflect the removal of the render target parameter in the render() method

Marc-Sefan Cassola 6 سال پیش
والد
کامیت
ba30a02469
1فایلهای تغییر یافته به همراه9 افزوده شده و 4 حذف شده
  1. 9 4
      src/renderers/WebGLRenderer.d.ts

+ 9 - 4
src/renderers/WebGLRenderer.d.ts

@@ -7,6 +7,7 @@ import { WebGLCapabilities } from './webgl/WebGLCapabilities';
 import { WebGLProperties } from './webgl/WebGLProperties';
 import { WebGLRenderLists } from './webgl/WebGLRenderLists';
 import { WebGLState } from './webgl/WebGLState';
+import { Vector2 } from './../math/Vector2';
 import { Vector4 } from './../math/Vector4';
 import { Color } from './../math/Color';
 import { WebGLRenderTarget } from './WebGLRenderTarget';
@@ -303,14 +304,18 @@ export class WebGLRenderer implements Renderer {
 
   /**
    * Render a scene using a camera.
-   * The render is done to the renderTarget (if specified) or to the canvas as usual.
-   * If forceClear is true, the canvas will be cleared before rendering, even if the renderer's autoClear property is false.
+   * The render is done to a previously specified {@link WebGLRenderTarget#renderTarget .renderTarget} set by calling 
+   * {@link WebGLRenderer#setRenderTarget .setRenderTarget} or to the canvas as usual.
+   * 
+   * By default render buffers are cleared before rendering but you can prevent this by setting the property 
+   * {@link WebGLRenderer#autoClear autoClear} to false. If you want to prevent only certain buffers being cleared 
+   * you can set either the {@link WebGLRenderer#autoClearColor autoClearColor}, 
+   * {@link WebGLRenderer#autoClearStencil autoClearStencil} or {@link WebGLRenderer#autoClearDepth autoClearDepth} 
+   * properties to false. To forcibly clear one ore more buffers call {@link WebGLRenderer#clear .clear}.
    */
   render(
     scene: Scene,
     camera: Camera,
-    renderTarget?: RenderTarget,
-    forceClear?: boolean
   ): void;
 
   /**