GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::graphics::Lights3DOptions Struct Reference

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.

Detailed Description

Configuration options for a Lights3D set.

Member Function Documentation

◆ operator==()

bool grem::graphics::Lights3DOptions::operator== ( const Lights3DOptions & other) const
nodiscardconstexprdefaultnoexcept

Compare these options to another set of options for equality.

Parameters
otherthe options to compare these to.
Returns
true if the options are equal, false otherwise.

Member Data Documentation

◆ MAX_SHADOW_CASCADE_COUNT

size_t grem::graphics::Lights3DOptions::MAX_SHADOW_CASCADE_COUNT = 8
staticconstexpr

Maximum number of cascade levels used for cascaded shadow mapping of directional lights.

◆ cascadedShadowMapResolution

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.

◆ pointLightShadowMapResolution

uint32_t grem::graphics::Lights3DOptions::pointLightShadowMapResolution = 512

Width, in texels, of the shadow maps of point lights.

Must be a power of 2.

◆ spotLightShadowMapResolution

uint32_t grem::graphics::Lights3DOptions::spotLightShadowMapResolution = 512

Width, in texels, of the shadow maps of spot lights.

Must be a power of 2.

◆ shadowCascadeFrustumFarPlaneDistances

InplaceBuffer<float, MAX_SHADOW_CASCADE_COUNT> grem::graphics::Lights3DOptions::shadowCascadeFrustumFarPlaneDistances
Initial value:
{
5.0f,
13.0f,
35.0f,
100.0f,
300.0f,
}

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.

◆ shadowCascadeBlendSize

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.


The documentation for this struct was generated from the following file: