regression-test-project/Rendering/Lights3D/DirectionalLight.gd
2020-11-07 17:36:23 +01:00

11 lines
184 B
GDScript

extends DirectionalLight
var speed = 1.2
var curr = 0
func _process(delta):
curr += delta * speed
rotation = Vector3(sin(curr) * speed, cos(curr) * speed, sin(8 * curr) * speed)