public interface KShadowMappedVarianceBuilderType extends KShadowBuilderType
Modifier and Type | Method and Description |
---|---|
KShadowMappedVariance |
build() |
void |
setBlurParameters(KBlurParameters p)
Set the blur parameters for the shadow map.
|
void |
setLightBleedReduction(float r)
Set the amount of light bleed reduction applied to shadows.
|
void |
setMapDescription(KShadowMapDescriptionVariance m)
Set the shadow map description.
|
void |
setMinimumVariance(float v)
Set the minimum variance value for shadows.
|
setMinimumFactor
KShadowMappedVariance build()
void setMapDescription(KShadowMapDescriptionVariance m)
Set the shadow map description. This controls the physical aspects of the shadow map such as the size, precision, and filter settings.
m
- The description.void setBlurParameters(KBlurParameters p)
Set the blur parameters for the shadow map. These define the parameters of an (optional) box blur applied to the shadow, to provide soft shadow edges.
p
- The parameters.void setLightBleedReduction(float r)
Set the amount of light bleed reduction applied to shadows.
This is a scene-dependent value that effectively darkens shadows in order to eliminate "light bleeding" (where light appears to bleed through occluding objects). Setting this value too high results in a loss of detail for shadows.
r
- The amount of reduction to apply.void setMinimumVariance(float v)
Set the minimum variance value for shadows.
The value is used to eliminate biasing issues in shadows. The default
value of 0.00002f
is sufficient for almost all scenes.
v
- The minimum variance.Copyright © 2015 <code@io7m.com> http://io7m.com