xrjamfeb2025/scenes/voxel_gi_toggle.gd

9 lines
284 B
GDScript

extends VoxelGI
func _ready() -> void:
# toggle according to the singleton settings.
visible = PerformanceSettingsSingleton.voxel_gi_enabled
PerformanceSettingsSingleton.voxel_gi_changed.connect(_on_voxel_gi_changed)
func _on_voxel_gi_changed(enabled: bool):
visible = enabled