regression-test-project/Rendering/Lights3D/DirectionalLight.gd

11 lines
184 B
GDScript3
Raw Normal View History

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)