Source: addons/calendar_time/game_time/lighting/time_of_day_directional_light_3d.gd
Syntax
class TimeOfDayDirectionalLight3D extends DirectionalLight3DMembers
| Name | Kind | Summary |
|---|---|---|
clock | Property | Transitions DirectionalLight3D colour/energy when times of day switch on the day-night service. 3D peer of [TimeOfDayDirectionalLight2D]. Does NOT own time-of-day state — reacts to the shared [GameClock] bus: - [signal TimeSignalBus.time_of_day_changed] - [signal TimeSignalBus.day_night_transition_progress_changed] Applies [member TimeOfDayLightSettings.light_color] → [member light_color] and [member TimeOfDayLightSettings.energy] → [member light_energy]. [member TimeOfDayLightSettings.height] is 2D-only and is ignored here. |
lighting_group | Property | The settings group defining what light settings should be at given times of day. |
transition_curve | Property | Optional. Remaps transition progress (0–1) before interpolating settings. |
print_debug | Property | Whether to print extra debug messages to console (debug only). |
transition_progress | Property | Progress controlling how far light values are between last and current TOD. [member GameTimeProgress.progress] is in [0.0, 1.0]. |
current_settings | Property | |
last_settings | Property | |
dt | Property | |
logic | Property | |
tod | Property | |
prev_tod | Property | |
progress | Property | |
start_light_transition | Method | |
get_lighting_setting | Method | |
set_current_light_values | Method | |
adjusted_progress | Property | |
get_progress_color | Method | |
validate | Method | |
problems | Property | |
problems | Property | |
problems | Property |