docs: capture jajce lookdev baseline
This commit is contained in:
@@ -7,6 +7,9 @@
|
||||
|
||||
[node name="JajceWorld" parent="." instance=ExtResource("1_world")]
|
||||
|
||||
[node name="DayNightCycle" parent="JajceWorld" index="9"]
|
||||
initial_cycle = 0.38
|
||||
|
||||
[node name="BeautyCamera" type="Camera3D" parent="."]
|
||||
position = Vector3(44, 34, 44)
|
||||
current = true
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
extends Node
|
||||
|
||||
@export var cycle_duration_seconds := 240.0
|
||||
@export_range(0.0, 1.0, 0.01) var initial_cycle := 0.35
|
||||
@export var directional_light: DirectionalLight3D
|
||||
@export var world_environment: WorldEnvironment
|
||||
|
||||
@@ -37,6 +38,12 @@ const SUNRISE_SUNSET_ENERGY := 0.8
|
||||
var elapsed := 0.0
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
elapsed = cycle_duration_seconds * initial_cycle
|
||||
_apply_light_rotation(initial_cycle)
|
||||
_apply_environment(initial_cycle)
|
||||
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
elapsed += delta
|
||||
if elapsed >= cycle_duration_seconds:
|
||||
|
||||
Reference in New Issue
Block a user