Files

30 lines
714 B
Markdown
Raw Permalink Normal View History

2026-10-21 20:45:23 +01:00
# Integer Node
## Description
Defines a constant **Float** value in the shader using an **Integer** field. Can be converted to a **Float** type [Property](Property-Types.md) with a **Mode** setting of **Integer** via the [Node's](Node.md) context menu.
## Ports
2026-11-30 19:13:17 +00:00
| Name | Direction | Type | Binding | Description |
|:--- |:---|:---|:---|:---|
| Out | Output | Float | None | Output value |
2026-10-21 20:45:23 +01:00
## Controls
2026-11-30 19:13:17 +00:00
| Control | Description |
|:---|:---|
| (Integer) | Defines the output value. |
2026-10-21 20:45:23 +01:00
## Generated Code Example
The following example code represents one possible outcome of this node.
```
float _Integer = 1;
```
2026-11-30 19:13:17 +00:00
## Additional resources
[!include[nodes-example-samples](./snippets/nodes-example-samples.md)]