DirectionalLightComponent.aimed constructor
DirectionalLightComponent.aimed(
- DirectionalLight light,
- Vector3 localDirection
Creates a component that travels along localDirection.
The owning node's rotation transforms this direction into world space.
Implementation
DirectionalLightComponent.aimed(this.light, Vector3 localDirection)
: _usesLightDirection = false,
_localDirection = localDirection.clone();