godot-third-person-basic-scene/maps/basic_setup.gd

18 lines
482 B
GDScript

extends Node3D
signal celestial_move(parameters)
# Called when the node enters the scene tree for the first time.
func _ready():
pass
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
func set_celestial_parameters(parameters):
$WorldEnvironment.environment.sky.sky_material.set_shader_param("samayun_arc", parameters["samayun_arc"])
func _on_basic_setup_celestial_move(parameters):
set_celestial_parameters(parameters)