Support Forum G3D Web Page |
Stochastic-variance shadow map settings. More...
Public Member Functions | |
VSMSettings (const Any &any) | |
VSMSettings () | |
bool | operator!= (const VSMSettings &s) const |
bool | operator== (const VSMSettings &s) const |
Any | toAny () const |
Public Attributes | |
Vector2int16 | baseSize |
Size of the (non-Variance) shadow map to render into. More... | |
float | blurMultiplier |
Multiplier for the standard deviation of the Gaussian Blur. More... | |
int | downsampleFactor |
bool | enabled |
int | filterRadius |
float | lightBleedReduction |
If >0, apply a light bleeding reduction function, that skews towards overdarkening. More... | |
Stochastic-variance shadow map settings.
G3D::ShadowMap::VSMSettings::VSMSettings | ( | const Any & | any | ) |
|
inline |
|
inline |
bool G3D::ShadowMap::VSMSettings::operator== | ( | const VSMSettings & | s | ) | const |
Referenced by operator!=().
Any G3D::ShadowMap::VSMSettings::toAny | ( | ) | const |
Vector2int16 G3D::ShadowMap::VSMSettings::baseSize |
Size of the (non-Variance) shadow map to render into.
float G3D::ShadowMap::VSMSettings::blurMultiplier |
Multiplier for the standard deviation of the Gaussian Blur.
Larger = blurrier using the same filter taps. Reasonable range is 1 (gaussian) to 10 (force to uniform)
int G3D::ShadowMap::VSMSettings::downsampleFactor |
bool G3D::ShadowMap::VSMSettings::enabled |
Referenced by G3D::ShadowMap::useVarianceShadowMap().
int G3D::ShadowMap::VSMSettings::filterRadius |
float G3D::ShadowMap::VSMSettings::lightBleedReduction |
If >0, apply a light bleeding reduction function, that skews towards overdarkening.
Reasonable range is 0 (maximum light bleeding) to 1 (maximum shadow bleeding)