This commit is contained in:
2026-11-24 15:51:02 +01:00
parent cca4d73e41
commit f4aa17114a
22092 changed files with 5042406 additions and 0 deletions
@@ -0,0 +1,31 @@
# Time Node
## Description
Provides access to various **Time** parameters in the shader.
## Ports
| Name | Direction | Type | Binding | Description |
|:------------ |:-------------|:-----|:---|:---|
| Time | Output | Float | None | Elapsed time in seconds. |
| Sine Time | Output | Float | None | Sine of the **Time** value. Output ranges from −1 to 1. |
| Cosine Time | Output | Float | None | Cosine of the **Time** value. Output ranges from −1 to 1. |
| Delta Time | Output | Float | None | The time that has elapsed between the current frame and the last frame, in seconds. |
| Smooth Delta | Output | Float | None | The time that has elapsed between the current frame and the last frame, in seconds, averaged over several frames to reduce jitter. |
## 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;
```
## Additional resources
[!include[nodes-example-samples](./snippets/nodes-example-samples.md)]