24 lines
1.1 KiB
GDScript
24 lines
1.1 KiB
GDScript
extends Node3D
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _ready():
|
|
var celestial_positions = get_celestial_position()
|
|
print(celestial_positions)
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
func _process(delta):
|
|
pass
|
|
|
|
func get_celestial_position():
|
|
var stigi_pos = get_node("WorldEnvironment").environment.sky.sky_material.get_shader_param("stigi_position")
|
|
var stigi_arc = get_node("WorldEnvironment").environment.sky.sky_material.get_shader_param("stigi_arc")
|
|
|
|
var samayun_pos = get_node("WorldEnvironment").environment.sky.sky_material.get_shader_param("samayun_position")
|
|
var samayun_arc = get_node("WorldEnvironment").environment.sky.sky_material.get_shader_param("samayun_arc")
|
|
|
|
var zabr_pos = get_node("WorldEnvironment").environment.sky.sky_material.get_shader_param("zabr_position")
|
|
var zabr_arc = get_node("WorldEnvironment").environment.sky.sky_material.get_shader_param("zabr_arc")
|
|
|
|
var positions = {"stigi_pos":stigi_pos, "stigi_arc":stigi_arc, "samayun_pos":samayun_pos, "samayun_arc":samayun_arc, "zabr_pos":zabr_pos, "zabr_arc":zabr_arc}
|
|
|
|
return positions
|