A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.unity3d.com/Manual/class-Texture2DArray-render-target.html below:

Manual: Render to a 2D texture array

Create a 2D texture array in a script

Sample a 2D texture array in a shader

Render to a 2D texture array

To render to a 2D texture array, create a render textureA special type of Texture that is created and updated at runtime. To use them, first create a new Render Texture and designate one of your Cameras to render into it. Then you can use the Render Texture in a Material just like a regular Texture. More info
See in Glossary
and set the Dimension property to 2D Array.

If you use the Graphics.SetRenderTarget API, set the depthSlice parameter to the slice you want to render to.

If the platform supports geometry shaders, use a geometry shaderA program that runs on the GPU. More info
See in Glossary
to render to individual slices, or set depthSlice to -1 to render to all the slices.

Create a 2D texture array in a script

Sample a 2D texture array in a shader


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4