Get Time Of Day Normalized

Pure
GetTimeOfDayNormalized

Returns the current time of day as a normalized 0-1 value (0=midnight, 0.5=noon).

Type: Pure (no side effects)
Category: Fortuna|Time & Date
Keywords: time & date

Inputs

NameTypeDefaultDescription
CurrentGameTimeSecondsfloatCurrentGameTimeSeconds parameter
DayLengthSecondsfloatDayLengthSeconds parameter

Outputs

NameTypeDescription
ReturnValuefloat 0-1ReturnValue output

Example Use Cases

Example 1

Drive a sun position curve.

Example 2

Control ambient light intensity over the day cycle.