Branch master was renamed to main.

khanat-assets---3d-godot-cl.../previewer/settings.gd

19 lines
587 B
GDScript

extends WindowDialog
onready var sky_sprite = get_tree().get_root().get_node("previewer/sky/viewport/sprite")
func _on_sky_coverage_value_changed(value):
sky_sprite.cov_scb( value )
func _on_sky_thickness_value_changed(value):
sky_sprite.thick_scb( value )
func _on_sky_absorption_value_changed(value):
sky_sprite.absb_scb( value )
func _on_sky_steps_value_changed(value):
sky_sprite.step_scb( value )
func _on_sky_time_value_changed(value):
sky_sprite.set_time_of_day( value, get_tree().get_root().get_node("previewer/light_system/directional_light"), 25.0 )