Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 558 Bytes

DirectionalLight3D.md

File metadata and controls

22 lines (17 loc) · 558 Bytes

DirectionalLight3D

A node that emits directional light, like a sun.

Inheritance:


GetDirection

Get the direction the light is emitting from. Direction is derived from the node's rotation.

Sig: direction = DirectionalLight3D:GetDirection()

  • Ret: Vector direction Light direction

SetDirection

Set the light direction. This will adjust the node's rotation (see Node3D).

Sig: DirectionalLight3D:SetDirection(direction)

  • Arg: Vector direction Light direction