Directional Light State
A light that has a direction and is located at infinite distance, so its rays are parallel. It simulates the sun light and can cast shadows.
See also
Constructors
Types
Functions
Overwrite the equals for DirectionalLightState.
Overwrite the hashcode for DirectionalLightState.
Overwrite the toString for DirectionalLightState.
Properties
Direction of the light source specified as a azimuthal angle, p polar angle where a indicates the azimuthal angle of the light relative to north (in degrees and proceeding clockwise), and p indicates polar angle of the light (from 0 degree, directly above, to 180 degree, directly below). Default value: 210,30. Minimum value: 0,0. Maximum value: 360,90.
Defines the transition of direction. Default value: 210,30. Minimum value: 0,0. Maximum value: 360,90.
Defines the transition of intensity. Default value: 0.5. Value range: 0, 1
Determines the shadow strength, affecting the shadow receiver surfaces final color. Values near 0.0 reduce the shadow contribution to the final color. Values near to 1.0 make occluded surfaces receive almost no directional light. Designed to be used mostly for transitioning between values 0 and 1. Default value: 1. Value range: 0, 1
Defines the transition of shadowIntensity. Default value: 1. Value range: 0, 1