2019-09-30 16:24:24 +00:00
|
|
|
extends WindowDialog
|
|
|
|
|
2019-10-08 16:54:39 +00:00
|
|
|
onready var sky_sprite = get_tree().get_root().get_node("previewer/sky/viewport/sprite")
|
2019-09-30 16:24:24 +00:00
|
|
|
|
2019-10-08 16:54:39 +00:00
|
|
|
func _on_sky_coverage_value_changed(value):
|
|
|
|
sky_sprite.cov_scb( value )
|
2019-09-30 16:24:24 +00:00
|
|
|
|
2019-10-08 16:54:39 +00:00
|
|
|
func _on_sky_thickness_value_changed(value):
|
|
|
|
sky_sprite.thick_scb( value )
|
2019-09-30 16:24:24 +00:00
|
|
|
|
2019-10-08 16:54:39 +00:00
|
|
|
func _on_sky_absorption_value_changed(value):
|
|
|
|
sky_sprite.absb_scb( value )
|
2019-09-30 16:24:24 +00:00
|
|
|
|
2019-10-08 16:54:39 +00:00
|
|
|
func _on_sky_steps_value_changed(value):
|
|
|
|
sky_sprite.step_scb( value )
|
2019-10-08 18:06:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
func _on_sky_time_value_changed(value):
|
|
|
|
sky_sprite.set_time_of_day( value, get_tree().get_root().get_node("$light_system/directional_light"), 25.0 )
|