Represents a directional (sun-like) light source. More...
#include <DirectionalLightComponent.h>
Public Member Functions | |
| Crux::vec3 | GetDirection () const |
| Computes normalized light direction from azimuth/elevation. | |
Public Attributes | |
| Crux::vec3 | Color = {1.0f, 1.0f, 1.0f} |
| Light color. | |
| float | Intensity = 1.0f |
| Light intensity. | |
| float | Azimuth = 0.0f |
| Horizontal rotation (0 = North, 180 = South). | |
| float | Elevation = 45.0f |
| Vertical angle (0 = horizon, 90 = zenith). | |
| bool | CastsShadows = true |
| Whether the light casts shadows. | |
Represents a directional (sun-like) light source.
|
inline |
Computes normalized light direction from azimuth/elevation.
| float Raven::DirectionalLightComponent::Azimuth = 0.0f |
Horizontal rotation (0 = North, 180 = South).
| bool Raven::DirectionalLightComponent::CastsShadows = true |
Whether the light casts shadows.
| Crux::vec3 Raven::DirectionalLightComponent::Color = {1.0f, 1.0f, 1.0f} |
Light color.
| float Raven::DirectionalLightComponent::Elevation = 45.0f |
Vertical angle (0 = horizon, 90 = zenith).
| float Raven::DirectionalLightComponent::Intensity = 1.0f |
Light intensity.