Skip to content

Commit

Permalink
RenderTarget: add count option for MRT (#26427)
Browse files Browse the repository at this point in the history
* WebGLRenderTarget: add count option for MRT

* WebGLRenderTarget: resize all attachments

* Cleanup MRT textures code

* Docs: cleanup

* Move changes

* RenderTarget: fix conflicts

* Legacy: update deprecation version

* Legacy: update deprecation hint
  • Loading branch information
CodyJasonBennett authored Feb 8, 2024
1 parent 49f785b commit 066664a
Show file tree
Hide file tree
Showing 18 changed files with 128 additions and 510 deletions.
75 changes: 0 additions & 75 deletions docs/api/ar/renderers/WebGLMultipleRenderTargets.html

This file was deleted.

75 changes: 0 additions & 75 deletions docs/api/en/renderers/WebGLMultipleRenderTargets.html

This file was deleted.

9 changes: 8 additions & 1 deletion docs/api/en/renderers/WebGLRenderTarget.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ <h3>
<br />
[page:Boolean depthBuffer] - default is `true`. <br />
[page:Boolean stencilBuffer] - default is `false`.<br />
[page:Number samples] - default is `0`.<br /><br />
[page:Number samples] - default is `0`.<br />
[page:Number count] - default is `1`.<br /><br />

Creates a new [name]
</p>
Expand Down Expand Up @@ -83,6 +84,12 @@ <h3>[property:Texture texture]</h3>
further processing.
</p>

<h3>[property:Texture textures]</h3>
<p>
An array holding the [page:WebGLRenderTarget.texture texture] references
of multiple render targets configured with the [page:Number count] option.
</p>

<h3>[property:Boolean depthBuffer]</h3>
<p>Renders to the depth buffer. Default is true.</p>

Expand Down
67 changes: 0 additions & 67 deletions docs/api/it/renderers/WebGLMultipleRenderTargets.html

This file was deleted.

9 changes: 8 additions & 1 deletion docs/api/it/renderers/WebGLRenderTarget.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ <h3>[name]([param:Number width], [param:Number height], [param:Object options])<
[page:Constant colorSpace] - il valore predefinito è [page:Textures NoColorSpace]. <br />
[page:Boolean depthBuffer] - il valore predefinito è `true`. <br />
[page:Boolean stencilBuffer] - il valore predefinito è `false`.<br />
[page:Number samples] - il valore predefinito è 0.<br /><br />
[page:Number samples] - il valore predefinito è 0.<br />
[page:Number count] - default is `1`.<br /><br />

Crea un nuovo [name]
</p>
Expand Down Expand Up @@ -84,6 +85,12 @@ <h3>[property:Texture texture]</h3>
Questa istanza della texture contiene i pixel renderizzati. Utilizzalo come input per ulteriori informazioni.
</p>

<h3>[property:Texture textures]</h3>
<p>
An array holding the [page:WebGLRenderTarget.texture texture] references
of multiple render targets configured with the [page:Number count] option.
</p>

<h3>[property:Boolean depthBuffer]</h3>
<p>
Effettua il rendering al buffer di profondità. L'impostazione predefinita è `true`.
Expand Down
61 changes: 0 additions & 61 deletions docs/api/zh/renderers/WebGLMultipleRenderTargets.html

This file was deleted.

9 changes: 8 additions & 1 deletion docs/api/zh/renderers/WebGLRenderTarget.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ <h3>[name]([param:Number width], [param:Number height], [param:Object options])<
[page:Constant colorSpace] - 默认是[page:Textures NoColorSpace]. <br />
[page:Boolean depthBuffer] - 默认是`true`.<br />
[page:Boolean stencilBuffer] - 默认是`false`.<br />
[page:Number samples] - 默认是`0`.<br /><br />
[page:Number samples] - 默认是`0`.<br />
[page:Number count] - default is `1`.<br /><br />

创建一个新[name]
</p>
Expand Down Expand Up @@ -80,6 +81,12 @@ <h3>[property:Texture texture]</h3>
纹理实例保存这渲染的像素,用作进一步处理的输入值
</p>

<h3>[property:Texture textures]</h3>
<p>
An array holding the [page:WebGLRenderTarget.texture texture] references
of multiple render targets configured with the [page:Number count] option.
</p>

<h3>[property:Boolean depthBuffer]</h3>
<p>
渲染到深度缓冲区。默认true.
Expand Down
5 changes: 0 additions & 5 deletions docs/list.json
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,6 @@
},

"Renderers": {
"WebGLMultipleRenderTargets": "api/en/renderers/WebGLMultipleRenderTargets",
"WebGLRenderer": "api/en/renderers/WebGLRenderer",
"WebGL1Renderer": "api/en/renderers/WebGL1Renderer",
"WebGLRenderTarget": "api/en/renderers/WebGLRenderTarget",
Expand Down Expand Up @@ -720,7 +719,6 @@
},

"Renderers": {
"WebGLMultipleRenderTargets": "api/ar/renderers/WebGLMultipleRenderTargets",
"WebGLRenderer": "api/ar/renderers/WebGLRenderer",
"WebGL1Renderer": "api/ar/renderers/WebGL1Renderer",
"WebGLRenderTarget": "api/ar/renderers/WebGLRenderTarget",
Expand Down Expand Up @@ -1028,7 +1026,6 @@
},

"渲染器": {
"WebGLMultipleRenderTargets": "api/zh/renderers/WebGLMultipleRenderTargets",
"WebGLRenderer": "api/zh/renderers/WebGLRenderer",
"WebGL1Renderer": "api/zh/renderers/WebGL1Renderer",
"WebGLRenderTarget": "api/zh/renderers/WebGLRenderTarget",
Expand Down Expand Up @@ -1665,7 +1662,6 @@
},

"Renderers": {
"WebGLMultipleRenderTargets": "api/it/renderers/WebGLMultipleRenderTargets",
"WebGLRenderer": "api/it/renderers/WebGLRenderer",
"WebGL1Renderer": "api/it/renderers/WebGL1Renderer",
"WebGLRenderTarget": "api/it/renderers/WebGLRenderTarget",
Expand Down Expand Up @@ -2193,7 +2189,6 @@
},

"Renderers": {
"WebGLMultipleRenderTargets": "api/en/renderers/WebGLMultipleRenderTargets",
"WebGLRenderer": "api/en/renderers/WebGLRenderer",
"WebGL1Renderer": "api/en/renderers/WebGL1Renderer",
"WebGLRenderTarget": "api/en/renderers/WebGLRenderTarget",
Expand Down
Loading

0 comments on commit 066664a

Please sign in to comment.