Firstborn/Library/PackageCache/com.unity.shadergraph@12.1.8/Documentation~/Time-Node.md
Schaken-Mods b486678290 Library -Artifacts
Library -Artifacts
2023-03-28 12:24:16 -05:00

28 lines
868 B
Markdown

# Time Node
## Description
Provides access to various **Time** parameters in the shader.
## Ports
| Name | Direction | Type | Binding | Description |
|:------------ |:-------------|:-----|:---|:---|
| Time | Output | Float | None | Time value |
| Sine Time | Output | Float | None | Sine of Time value |
| Cosine Time | Output | Float | None | Cosine of Time value |
| Delta Time | Output | Float | None | Current frame time |
| Smooth Delta | Output | Float | None | Current frame time smoothed |
## Generated Code Example
The following example code represents one possible outcome of this node.
```
float Time_Time = _Time.y;
float Time_SineTime = _SinTime.w;
float Time_CosineTime = _CosTime.w;
float Time_DeltaTime = unity_DeltaTime.x;
float Time_SmoothDelta = unity_DeltaTime.z;
```