8 lines
194 B
GDScript3
8 lines
194 B
GDScript3
|
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
|