worldDirection property
Vector3
get
worldDirection
The light's world-space travel direction: the owning node's world-space rotation applied to the light's local DirectionalLight.direction. Need not be unit length (the shader and the shadow-cascade fit both normalize it).
Implementation
Vector3 get worldDirection =>
node.globalTransform.getRotation() * light.direction;