瀏覽代碼

WebGLRenderer.d.ts: add docs comment to setRenderTarget method

FMS-Cat 6 年之前
父節點
當前提交
26b8e5b92e
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      src/renderers/WebGLRenderer.d.ts

+ 7 - 0
src/renderers/WebGLRenderer.d.ts

@@ -342,6 +342,13 @@ export class WebGLRenderer implements Renderer {
    */
    */
   getCurrentRenderTarget(): RenderTarget | null;
   getCurrentRenderTarget(): RenderTarget | null;
 
 
+  /**
+   * Sets the active render target.
+   *
+   * @param renderTarget The {@link WebGLRenderTarget renderTarget} that needs to be activated. When `null` is given, the canvas is set as the active render target instead.
+	 * @param activeCubeFace Specifies the active cube side (PX 0, NX 1, PY 2, NY 3, PZ 4, NZ 5) of {@link WebGLRenderTargetCube}.
+	 * @param activeMipMapLevel Specifies the active mipmap level.
+   */
   setRenderTarget(renderTarget: RenderTarget | null, activeCubeFace?: number, activeMipMapLevel?: number): void;
   setRenderTarget(renderTarget: RenderTarget | null, activeCubeFace?: number, activeMipMapLevel?: number): void;
 
 
   readRenderTargetPixels(
   readRenderTargetPixels(