|
GREM 3.12.0
Game/Rendering Engine Modules for C++
|
Configuration options for a 3D light source representing a directional light that is tied to the skybox and replaces its baked lighting on directly lit surfaces. More...
#include <GREM/graphics_3d/Lights3D.hpp>
Public Member Functions | |
| constexpr bool | operator== (const SunLightOptions3D &other) const noexcept=default |
| Compare these options to another set of options for equality. | |
Public Attributes | |
| vec3 | direction {0.0f, -1.0f, 0.0f} |
| Vector representing the direction of the light, in world coordinates. | |
| Color | color = Color::WHITE |
| Color of the light, where the alpha component controls the light's intensity. | |
| float | shadowMapNormalOffsetBiasConstantFactor = 0.04f |
| Constant normal offset bias factor to use when sampling the shadow map of the light. | |
| float | shadowMapNormalOffsetBiasSlopeFactor = 1.0f |
| Slope-scaled normal offset bias factor to use when sampling the shadow map of the light. | |
| bool | shadowMapped = true |
| Whether the light should use shadow mapping or not. | |
Configuration options for a 3D light source representing a directional light that is tied to the skybox and replaces its baked lighting on directly lit surfaces.
|
nodiscardconstexprdefaultnoexcept |
Compare these options to another set of options for equality.
| other | the options to compare these to. |
| vec3 grem::graphics::SunLightOptions3D::direction {0.0f, -1.0f, 0.0f} |
Vector representing the direction of the light, in world coordinates.
| Color grem::graphics::SunLightOptions3D::color = Color::WHITE |
Color of the light, where the alpha component controls the light's intensity.
| float grem::graphics::SunLightOptions3D::shadowMapNormalOffsetBiasConstantFactor = 0.04f |
Constant normal offset bias factor to use when sampling the shadow map of the light.
| float grem::graphics::SunLightOptions3D::shadowMapNormalOffsetBiasSlopeFactor = 1.0f |
Slope-scaled normal offset bias factor to use when sampling the shadow map of the light.
| bool grem::graphics::SunLightOptions3D::shadowMapped = true |
Whether the light should use shadow mapping or not.