11 lines
No EOL
399 B
GDScript
11 lines
No EOL
399 B
GDScript
extends WorldEnvironment
|
|
|
|
|
|
func _process(delta):
|
|
$sky_sphere.rotate( Vector3(0, 1, 0), delta*global.time_scale )
|
|
$sky_sphere.rotate( Vector3(0, 0, 1), delta*global.time_scale )
|
|
|
|
$sun.translation = Vector3( 0, 0, 0 )
|
|
$sun.rotate( Vector3(0, 1, 0), delta*global.time_scale )
|
|
$sun.rotate( Vector3(0, 0, 1), delta*global.time_scale )
|
|
$sun.translate( Vector3( 1000, 1000, 1000 ) ) |