Firstborn/Library/PackageCache/com.unity.shadergraph@12.1.11/Documentation~/Screen-Position-Node.md
Schaken-Mods 9092858a58 updated to the latest editor
I updated everything to the latest Unity Editor. Also realized I had the wrong shaders on my hairs, those are fixed and the hairs look MUCH better!
2023-05-07 17:43:11 -05:00

34 lines
1.1 KiB
Markdown

# Screen Position Node
## Description
Provides access to the mesh vertex or fragment's **Screen Position**. The mode of output value can be selected with the **Mode** dropdown parameter.
**Default**
Returns **Screen Position**. This mode divides **Screen Position** by the clip space position W component.
**Raw**
Returns **Screen Position**. This mode does not divide **Screen Position** by the clip space position W component. This is useful for projection.
**Center**
Returns **Screen Position** offset so position `float2(0,0)` is at the center of the screen.
**Tiled**
Returns **Screen Position** offset so position `float2(0,0)` is at the center of the screen and tiled using `frac`.
## Ports
| Name | Direction | Type | Binding | Description |
|:------------ |:-------------|:-----|:---|:---|
| Out | Output | Vector 4 | None | Mesh's **Screen Position**. |
## Controls
| Name | Type | Options | Description |
|:------------ |:-------------|:-----|:---|
| Mode | Dropdown | Default, Raw, Center, Tiled | Selects coordinate space of **Position** to output. |