Files

31 lines
987 B
Markdown
Raw Permalink Normal View History

2026-10-21 20:45:23 +01:00
# Texture 2D Array Asset Node
## Description
Defines a constant **Texture 2D Array Asset** for use in the shader. To sample the **Texture 2D Array Asset** it should be used in conjunction with a [Sample Texture 2D Array Node](Sample-Texture-2D-Array-Node.md). When using a separate **Texture 2D Array Asset Node**, you can sample a **Texture 2D Array** twice, with different parameters, without defining the **Texture 2D Array** itself twice.
## Ports
2026-11-30 19:13:17 +00:00
| Name | Direction | Type | Description |
|:--- |:---|:---|:---|
| Out | Output | Texture 2D Array | Output value |
2026-10-21 20:45:23 +01:00
## Controls
2026-11-30 19:13:17 +00:00
| Control | Description |
|:--- |:---|
| (Texture 2D Array) | Defines the texture 2D array asset from the project. |
2026-10-21 20:45:23 +01:00
## Generated Code Example
The following example code represents one possible outcome of this node.
```
TEXTURE2D_ARRAY(_Texture2DArrayAsset);
SAMPLER(sampler_Texture2DArrayAsset);
```
2026-11-30 19:13:17 +00:00
## Additional resources
[!include[nodes-example-samples](./snippets/nodes-example-samples.md)]