Firstborn/Library/PackageCache/com.unity.shadergraph@12.1.11/Documentation~/Time-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

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;
```