public interface R2ShadowDepthVarianceType extends R2ShadowType
Modifier and Type | Method and Description |
---|---|
default float |
lightBleedReduction()
The amount of light bleed reduction to apply.
|
R2DepthVarianceBufferDescription |
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 R2ShadowType
default float minimumFactor()
R2ShadowType
n
means that if a point is in shadow, the light intensity will be
attenuated down to n
.minimumFactor
in interface R2ShadowType
R2DepthVarianceBufferDescription 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
R2ShadowType
matchShadow
in interface R2ShadowType
A
- The type of context valuesB
- The type of returned valuesE
- The type of raised exceptionscontext
- A context valueon_variance
- Evaluated for variance shadowsB
E
- If any of the given functions raise E
E extends Throwable
Copyright © 2017 <code@io7m.com> http://io7m.com