xrjamfeb2025/scenes/performance_settings/voxel_gi_toggle.gd
2025-02-14 15:43:06 -07:00

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