Optional
positionThe DirectionalLight position. Default to Vec3(1)
.
Optional
targetThe DirectionalLight target. Default to Vec3(0)
.
Optional
shadowThe DirectionalLight shadow parameters used to create a DirectionalShadow. If not set, the DirectionalShadow won't be set as active and won't cast any shadows. On the other hand, if anything is passed (even an empty object), the DirectionalShadow will start casting shadows, so use with caution. Default to null
(which means the DirectionalLight will not cast shadows).
Optional
colorThe Light color. Default to Vec3(1)
.
Optional
intensityThe Light intensity. Default to 1
.
Base parameters used to create a DirectionalLight.