From b548ee35a1dba558edd7ac163d1447761b1e5393 Mon Sep 17 00:00:00 2001 From: 0b5vr <0b5vr@0b5vr.com> Date: Tue, 1 Mar 2022 16:00:00 +0900 Subject: [PATCH] change (WebGLMultipleRenderTargets): Add Options to Constructor See: https://github.com/mrdoob/three.js/pull/22772 --- .../three/src/renderers/WebGLMultipleRenderTargets.d.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/types/three/src/renderers/WebGLMultipleRenderTargets.d.ts b/types/three/src/renderers/WebGLMultipleRenderTargets.d.ts index 6b1e66689..578b4964e 100644 --- a/types/three/src/renderers/WebGLMultipleRenderTargets.d.ts +++ b/types/three/src/renderers/WebGLMultipleRenderTargets.d.ts @@ -1,5 +1,6 @@ import { EventDispatcher } from '../core/EventDispatcher'; import { Texture } from '../textures/Texture'; +import { WebGLRenderTargetOptions } from './WebGLRenderTarget'; /** * This class originall extended WebGLMultipleRenderTarget @@ -10,7 +11,13 @@ export class WebGLMultipleRenderTargets extends EventDispatcher { readonly isWebGLMultipleRenderTargets = true; - constructor(width: number, height: number, count: number); + /** + * @param width The width of the render target. + * @param height The height of the render target. + * @param count The number of render targets. + * @param options object that holds texture parameters for an auto-generated target texture and depthBuffer/stencilBuffer booleans. For an explanation of the texture parameters see {@link Texture}. + */ + constructor(width: number, height: number, count: number, options?: WebGLRenderTargetOptions); setSize(width: number, height: number, depth?: number): this; copy(source: WebGLMultipleRenderTargets): this;