Adaug proiectul Unity

This commit is contained in:
2026-11-01 23:39:55 +02:00
parent cb14d9d37d
commit 863eac8f2c
23463 changed files with 5412601 additions and 0 deletions
@@ -0,0 +1,30 @@
# Texture 2D Asset Node
## Description
Defines a constant **Texture 2D Asset** for use in the shader. To sample the **Texture 2D Asset** it should be used in conjunction with a [Sample Texture 2D Node](Sample-Texture-2D-Node.md). When using a separate **Texture 2D Asset Node**, you can sample a **Texture 2D** twice, with different parameters, without defining the **Texture 2D** itself twice.
## Ports
| Name | Direction | Type | Description |
|:--- |:---|:---|:---|
| Out | Output | Texture 2D | Output value |
## Controls
| Control | Description |
|:--- |:---|
| (Texture) | Defines the texture 3D asset from the project. |
## Generated Code Example
The following example code represents one possible outcome of this node.
```
TEXTURE2D(_Texture2DAsset);
SAMPLER(sampler_Texture2DAsset);
```
## Additional resources
[!include[nodes-example-samples](./snippets/nodes-example-samples.md)]