Files
Test/Library/PackageCache/com.unity.shadergraph@8b7e693cdbfe/Documentation~/Float-Node.md
T
2026-11-01 23:39:55 +02:00

25 lines
669 B
Markdown

# Float Node
## Description
Defines a **Float** value in the shader. If [Port](Port.md) **X** is not connected with a [Wire](Wire.md) this [Node](Node.md) defines a constant **Float**.
## Ports
| Name | Direction | Type | Binding | Description |
|:------------ |:-------------|:-----|:---|:---|
| X | Input | Float | None | Input x component value |
| Out | Output | Float | None | Output value |
## Generated Code Example
The following example code represents one possible outcome of this node.
```
float _Vector1_Out = X;
```
## Additional resources
[!include[nodes-example-samples](./snippets/nodes-example-samples.md)]