8 lines
194 B
GDScript3
Raw Normal View History

2024-02-08 20:42:16 +00:00
extends CheckButton
func _ready():
set_pressed_no_signal(Global.environment.volumetric_fog_enabled)
func on_toggled(toggled_on: bool):
Global.environment.volumetric_fog_enabled = toggled_on