CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::ShadowMapSettings Struct Reference

#include <CeresEngine/Renderer/RendererLightSettings.hpp>

Static Public Member Functions

template<typename Processor >
static constexpr void reflect (Processor &&RTTI)
 Executes the given processor for every field of the struct.
 

Public Attributes

ShadowMapTechnique technique = ShadowMapTechnique::Perspective
 The technique to be used when computing shadows from a shadow map.
 
double bias = 0.0002
 The bias is a fixed offset applied to every shadow map sample in or to minimize the effect of shadow acne.
 
bool usePercentageCloseFiltering = true
 If PCF is enabled, the image will be sampled multiple times in order to create a smooth shadow.
 
UInt32 percentageCloseFilteringSamples = 3
 The number of PCF samples to be taken in each axis.
 
double percentageCloseFilteringSamplingDistance = 0.5
 The sampling distance to be applied for every PCF sample.
 
ShadowMapUpdateStrategy updateStrategy = ShadowMapUpdateStrategy::EveryFrame
 A value that describes the strategy used to update the shadow map.
 

Member Function Documentation

◆ reflect()

template<typename Processor >
static constexpr void CeresEngine::ShadowMapSettings::reflect ( Processor &&  RTTI)
inlinestaticconstexpr

Executes the given processor for every field of the struct.

Parameters
RTTIThe processor to be ran for every field.

Member Data Documentation

◆ bias

double CeresEngine::ShadowMapSettings::bias = 0.0002

The bias is a fixed offset applied to every shadow map sample in or to minimize the effect of shadow acne.

◆ percentageCloseFilteringSamples

UInt32 CeresEngine::ShadowMapSettings::percentageCloseFilteringSamples = 3

The number of PCF samples to be taken in each axis.

◆ percentageCloseFilteringSamplingDistance

double CeresEngine::ShadowMapSettings::percentageCloseFilteringSamplingDistance = 0.5

The sampling distance to be applied for every PCF sample.

◆ technique

ShadowMapTechnique CeresEngine::ShadowMapSettings::technique = ShadowMapTechnique::Perspective

The technique to be used when computing shadows from a shadow map.

◆ updateStrategy

ShadowMapUpdateStrategy CeresEngine::ShadowMapSettings::updateStrategy = ShadowMapUpdateStrategy::EveryFrame

A value that describes the strategy used to update the shadow map.

◆ usePercentageCloseFiltering

bool CeresEngine::ShadowMapSettings::usePercentageCloseFiltering = true

If PCF is enabled, the image will be sampled multiple times in order to create a smooth shadow.


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