|
GREM 3.12.0
Game/Rendering Engine Modules for C++
|
Configuration options for a Lights3D set. More...
#include <GREM/graphics_3d/Lights3D.hpp>
Public Member Functions | |
| constexpr bool | operator== (const Lights3DOptions &other) const noexcept=default |
| Compare these options to another set of options for equality. | |
Public Attributes | |
| uint32_t | cascadedShadowMapResolution = 2048 |
| Width, in texels, of each cascade level of the shadow maps of sun/directional lights. | |
| uint32_t | pointLightShadowMapResolution = 512 |
| Width, in texels, of the shadow maps of point lights. | |
| uint32_t | spotLightShadowMapResolution = 512 |
| Width, in texels, of the shadow maps of spot lights. | |
| InplaceBuffer< float, MAX_SHADOW_CASCADE_COUNT > | shadowCascadeFrustumFarPlaneDistances |
| Distances of the far planes of each cascade level's view frustum used for cascaded shadow mapping of sun/directional lights. | |
| float | shadowCascadeBlendSize = 4.0f |
| Length of the blend area between cascade levels for cascaded shadow mapping of sun/directional lights. | |
Static Public Attributes | |
| static constexpr size_t | MAX_SHADOW_CASCADE_COUNT = 8 |
| Maximum number of cascade levels used for cascaded shadow mapping of directional lights. | |
Configuration options for a Lights3D set.
|
nodiscardconstexprdefaultnoexcept |
Compare these options to another set of options for equality.
| other | the options to compare these to. |
|
staticconstexpr |
Maximum number of cascade levels used for cascaded shadow mapping of directional lights.
| uint32_t grem::graphics::Lights3DOptions::cascadedShadowMapResolution = 2048 |
Width, in texels, of each cascade level of the shadow maps of sun/directional lights.
Must be a power of 2.
| uint32_t grem::graphics::Lights3DOptions::pointLightShadowMapResolution = 512 |
Width, in texels, of the shadow maps of point lights.
Must be a power of 2.
| uint32_t grem::graphics::Lights3DOptions::spotLightShadowMapResolution = 512 |
Width, in texels, of the shadow maps of spot lights.
Must be a power of 2.
| InplaceBuffer<float, MAX_SHADOW_CASCADE_COUNT> grem::graphics::Lights3DOptions::shadowCascadeFrustumFarPlaneDistances |
Distances of the far planes of each cascade level's view frustum used for cascaded shadow mapping of sun/directional lights.
Must be non-empty.
| float grem::graphics::Lights3DOptions::shadowCascadeBlendSize = 4.0f |
Length of the blend area between cascade levels for cascaded shadow mapping of sun/directional lights.
Must be positive.