minesweeper_game/Library/PackageCache/com.unity.shadergraph@cdef3258c742/Documentation~/Custom-Texture-Slice.md
2025-03-15 14:30:26 -04:00

1.4 KiB

Custom Render Texture Slice Node

Description

Provides the slice index or cubemap face of the current Custom Render Texture. When a Custom Render Texture is a Cubemap, 3D texture, or 2D texture array, Shader Graph issues multiple draw calls to update each slice or face separately. Use this node to get the slice index or cubemap face.

For more information on Custom Render Textures, refer to the Unity Manual.

Ports

Name Direction Type Binding Description
Texture Cube Face Output Float None The current face of the Custom Render Texture being updated. This value is an integer between 0 and 5 included.
Texture Depth Slice Output Float None The current slice index of the Custom Render Texture being updated. This value is an integer between 0 and the volume depth of the texture.

Generated Code Example

The following example code represents one possible outcome of this node.

_CustomRenderTextureCubeFace