public interface R2ShadowDepthVarianceType extends R2ShadowType
| Modifier and Type | Method and Description |
|---|---|
default float |
lightBleedReduction()
The amount of light bleed reduction to apply.
|
R2DepthVarianceBufferDescriptionType |
mapDescription() |
default <A,B,E extends Throwable> |
matchShadow(A context,
com.io7m.jfunctional.PartialBiFunctionType<A,R2ShadowDepthVarianceType,B,E> on_variance)
Match on the type of light.
|
default float |
minimumFactor()
The level to which the shadow is allowed to attenuate light.
|
default float |
minimumVariance()
The the minimum variance value for the shadow.
|
long |
shadowID() |
long shadowID()
shadowID in interface R2ShadowTypedefault float minimumFactor()
R2ShadowTypen means that if a point is in shadow, the light intensity will be
attenuated down to n.minimumFactor in interface R2ShadowTypeR2DepthVarianceBufferDescriptionType mapDescription()
default float lightBleedReduction()
The amount of light bleed reduction to apply.
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.
default float minimumVariance()
The the minimum variance value for the shadow.
The value is used to eliminate biasing issues in shadows. The default value is sufficient for almost all scenes.
default <A,B,E extends Throwable> B matchShadow(A context, com.io7m.jfunctional.PartialBiFunctionType<A,R2ShadowDepthVarianceType,B,E> on_variance) throws E extends Throwable
R2ShadowTypematchShadow in interface R2ShadowTypeA - The type of context valuesB - The type of returned valuesE - The type of raised exceptionscontext - A context valueon_variance - Evaluated for variance shadowsBE - If any of the given functions raise EE extends ThrowableCopyright © 2016 <code@io7m.com> http://io7m.com