From 9f0fd9940b72a01a71ed2a1a79436522eaaf7e22 Mon Sep 17 00:00:00 2001 From: Johnathon Selstad Date: Mon, 1 Nov 2021 16:38:52 -0700 Subject: [PATCH 1/4] WebGLMultipleRenderTargets: Add Options to Constructor --- src/renderers/WebGLMultipleRenderTargets.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderers/WebGLMultipleRenderTargets.js b/src/renderers/WebGLMultipleRenderTargets.js index 73bd6d6738ec68..5e43e8499afd7e 100644 --- a/src/renderers/WebGLMultipleRenderTargets.js +++ b/src/renderers/WebGLMultipleRenderTargets.js @@ -2,9 +2,9 @@ import { WebGLRenderTarget } from './WebGLRenderTarget.js'; class WebGLMultipleRenderTargets extends WebGLRenderTarget { - constructor( width, height, count ) { + constructor( width, height, count, options ) { - super( width, height ); + super( width, height, options ); const texture = this.texture; From a4f86d8e53725cd6ebff2cdd2d876012b0654180 Mon Sep 17 00:00:00 2001 From: Johnathon Selstad Date: Wed, 3 Nov 2021 13:52:06 -0700 Subject: [PATCH 2/4] Update WebGLMultipleRenderTargets Documentation with new options --- docs/api/en/renderers/WebGLMultipleRenderTargets.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/api/en/renderers/WebGLMultipleRenderTargets.html b/docs/api/en/renderers/WebGLMultipleRenderTargets.html index 57b33c08027f92..b671d7aa5c3f22 100644 --- a/docs/api/en/renderers/WebGLMultipleRenderTargets.html +++ b/docs/api/en/renderers/WebGLMultipleRenderTargets.html @@ -27,12 +27,18 @@

Examples

Constructor

-

[name]([param:Number width], [param:Number height], [param:Number count])

+

[name]([param:Number width], [param:Number height], [param:Number count], [param:Object options])

[page:Number width] - The width of the render target.
[page:Number height] - The height of the render target.
[page:Number count] - The number of render targets. + + options - (optional object that holds texture parameters for an auto-generated target + texture and depthBuffer/stencilBuffer booleans. + + For an explanation of the texture parameters see [page:Texture Texture]. + For a list of valid options, see [page:WebGLRenderTarget WebGLRenderTarget].

Properties

From 0c5ed2cd2a9e31474a27161b2e18f61bac8b6eb9 Mon Sep 17 00:00:00 2001 From: Johnathon Selstad Date: Wed, 3 Nov 2021 14:15:17 -0700 Subject: [PATCH 3/4] Add line break --- docs/api/en/renderers/WebGLMultipleRenderTargets.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/en/renderers/WebGLMultipleRenderTargets.html b/docs/api/en/renderers/WebGLMultipleRenderTargets.html index b671d7aa5c3f22..8023287c12f4a9 100644 --- a/docs/api/en/renderers/WebGLMultipleRenderTargets.html +++ b/docs/api/en/renderers/WebGLMultipleRenderTargets.html @@ -32,7 +32,7 @@

[name]([param:Number width], [param:Number height], [param:Number count], [p

[page:Number width] - The width of the render target.
[page:Number height] - The height of the render target.
- [page:Number count] - The number of render targets. + [page:Number count] - The number of render targets.
options - (optional object that holds texture parameters for an auto-generated target texture and depthBuffer/stencilBuffer booleans. From cf901004f6edb98ea674b15f426d44dbf90d1574 Mon Sep 17 00:00:00 2001 From: Michael Herzog Date: Tue, 8 Feb 2022 10:53:01 +0100 Subject: [PATCH 4/4] WebGLMultipleRenderTargets: Use default parameter. --- src/renderers/WebGLMultipleRenderTargets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderers/WebGLMultipleRenderTargets.js b/src/renderers/WebGLMultipleRenderTargets.js index 5e43e8499afd7e..9c370bd36da6c0 100644 --- a/src/renderers/WebGLMultipleRenderTargets.js +++ b/src/renderers/WebGLMultipleRenderTargets.js @@ -2,7 +2,7 @@ import { WebGLRenderTarget } from './WebGLRenderTarget.js'; class WebGLMultipleRenderTargets extends WebGLRenderTarget { - constructor( width, height, count, options ) { + constructor( width, height, count, options = {} ) { super( width, height, options );