Version: Unity 6.2 Alpha (6000.2)
Language : English
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
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961