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

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

FMS-Cat 6 жил өмнө
parent
commit
26b8e5b92e

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

@@ -342,6 +342,13 @@ export class WebGLRenderer implements Renderer {
    */
   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;
 
   readRenderTargetPixels(