public interface KLightSpherePseudoWithShadowBuilderType
Modifier and Type | Method and Description |
---|---|
void |
copyFromPseudo(KLightSpherePseudoType s)
Set all values in the builder to those in the given existing light.
|
void |
setDiffuseOnly(boolean d)
Set whether or not the resulting lights will be diffuse-only.
|
void |
setEnabledNegativeX(boolean enabled)
Enable/disable the negative X sub-light.
|
void |
setEnabledNegativeY(boolean enabled)
Enable/disable the negative Y sub-light.
|
void |
setEnabledNegativeZ(boolean enabled)
Enable/disable the negative Z sub-light.
|
void |
setEnabledPositiveX(boolean enabled)
Enable/disable the positive X sub-light.
|
void |
setEnabledPositiveY(boolean enabled)
Enable/disable the positive Y sub-light.
|
void |
setEnabledPositiveZ(boolean enabled)
Enable/disable the positive Z sub-light.
|
void |
setFOVCompensationBias(float r)
Because projected textures typically have one-pixel black borders with
their wrapping modes set to "clamp to edge", it's often necessary to set
a bias value to slightly enlarge the field of view of the six sub-lights
in order to seamlessly blend the edges of the light contributions
together.
|
void |
setNearClip(float d)
Set the distance to the near clipping plane for the shadow projection.
|
void copyFromPseudo(KLightSpherePseudoType s)
Set all values in the builder to those in the given existing light.
s
- The lightvoid setEnabledNegativeX(boolean enabled)
enabled
- true
if the sub-light should be enabled.void setEnabledNegativeY(boolean enabled)
enabled
- true
if the sub-light should be enabled.void setEnabledNegativeZ(boolean enabled)
enabled
- true
if the sub-light should be enabled.void setEnabledPositiveX(boolean enabled)
enabled
- true
if the sub-light should be enabled.void setEnabledPositiveY(boolean enabled)
enabled
- true
if the sub-light should be enabled.void setEnabledPositiveZ(boolean enabled)
enabled
- true
if the sub-light should be enabled.void setFOVCompensationBias(float r)
Because projected textures typically have one-pixel black borders with their wrapping modes set to "clamp to edge", it's often necessary to set a bias value to slightly enlarge the field of view of the six sub-lights in order to seamlessly blend the edges of the light contributions together.
The default bias value is 0.065
, which was simply obtained
through experimentation.
r
- The number of radians by which to increase the field of viewvoid setNearClip(float d)
Set the distance to the near clipping plane for the shadow projection.
d
- The near clip distancevoid setDiffuseOnly(boolean d)
Set whether or not the resulting lights will be diffuse-only.
d
- true
if the lights should be diffuse-only.Copyright © 2015 <code@io7m.com> http://io7m.com