Skip to content

Commit

Permalink
feat(WebGLMultipleRenderTargets): Add Options to Constructor (#187)
Browse files Browse the repository at this point in the history
* change (WebGLMultipleRenderTargets): Add Options to Constructor

See: mrdoob/three.js#22772

* refactor (WebGLMultipleRenderTargets): fix a lint issue
  • Loading branch information
0b5vr committed Mar 1, 2022
1 parent 0ac7e59 commit 2a00f3c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion types/three/src/renderers/WebGLMultipleRenderTargets.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { EventDispatcher } from '../core/EventDispatcher';
import { Texture } from '../textures/Texture';
import { WebGLRenderTargetOptions } from './WebGLRenderTarget';

/**
* This class originall extended WebGLMultipleRenderTarget
Expand All @@ -10,7 +11,14 @@ 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;
Expand Down

0 comments on commit 2a00f3c

Please sign in to comment.