public final class R2LightProjectiveWithShadowVariance extends Object implements R2LightProjectiveWithShadowVarianceType
| Modifier and Type | Method and Description |
|---|---|
com.io7m.jcanephora.core.JCGLArrayObjectUsableType |
arrayObject() |
com.io7m.jtensors.parameterized.PVector3FType<R2SpaceRGBType> |
color() |
com.io7m.jtensors.parameterized.PVector3FType<R2SpaceRGBType> |
colorWritable() |
float |
falloff() |
R2Texture2DUsableType |
image() |
float |
intensity() |
long |
lightID() |
<A,B,E extends Throwable> |
matchLightWithShadow(A context,
com.io7m.jfunctional.PartialBiFunctionType<A,R2LightProjectiveWithShadowType,B,E> on_project)
Match on the type of light.
|
static R2LightProjectiveWithShadowVarianceType |
newLight(R2ProjectionMeshReadableType in_mesh,
R2Texture2DUsableType in_image,
R2ShadowDepthVarianceType in_shadow,
R2IDPoolType in_pool)
Construct a new light.
|
com.io7m.jtensors.parameterized.PVectorReadable3FType<R2SpaceWorldType> |
position() |
R2ProjectionReadableType |
projection() |
float |
radius() |
void |
setFalloff(float f)
Set the light falloff exponent
|
void |
setIntensity(float i)
Set the current light intensity
|
void |
setRadius(float r)
Set the light radius in world-space units.
|
R2ShadowDepthVarianceType |
shadow() |
R2TransformOTReadableType |
transform() |
R2TransformOTType |
transformWritable() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmatchLightVolumeSingleReadable, matchProjectiveReadablematchLightSinglematchProjectiveReadablepublic static R2LightProjectiveWithShadowVarianceType newLight(R2ProjectionMeshReadableType in_mesh, R2Texture2DUsableType in_image, R2ShadowDepthVarianceType in_shadow, R2IDPoolType in_pool)
in_mesh - The light projection meshin_image - The image that will be projected by the lightin_shadow - The shadowin_pool - The ID poolpublic float radius()
radius in interface R2LightProjectiveReadableTypepublic void setRadius(float r)
R2LightProjectiveWritableTypesetRadius in interface R2LightProjectiveWritableTyper - The light radiuspublic R2TransformOTType transformWritable()
transformWritable in interface R2LightProjectiveWritableTypepublic float falloff()
falloff in interface R2LightProjectiveReadableTypepublic void setFalloff(float f)
R2LightProjectiveWritableTypesetFalloff in interface R2LightProjectiveWritableTypef - The light falloffpublic com.io7m.jtensors.parameterized.PVector3FType<R2SpaceRGBType> color()
color in interface R2LightReadableTypepublic float intensity()
intensity in interface R2LightReadableTypepublic void setIntensity(float i)
R2LightWritableTypesetIntensity in interface R2LightWritableTypei - The intensity (typically [0.0 .. 1.0])public com.io7m.jtensors.parameterized.PVector3FType<R2SpaceRGBType> colorWritable()
colorWritable in interface R2LightWritableTypepublic com.io7m.jcanephora.core.JCGLArrayObjectUsableType arrayObject()
arrayObject in interface R2LightSingleReadableTypepublic R2TransformOTReadableType transform()
transform in interface R2LightProjectiveReadableTypetransform in interface R2LightSingleReadableTypepublic com.io7m.jtensors.parameterized.PVectorReadable3FType<R2SpaceWorldType> position()
position in interface R2LightProjectiveReadableTypepublic long lightID()
lightID in interface R2LightReadableTypepublic R2ProjectionReadableType projection()
projection in interface R2LightProjectiveReadableTypepublic R2Texture2DUsableType image()
image in interface R2LightProjectiveReadableTypepublic R2ShadowDepthVarianceType shadow()
shadow in interface R2LightProjectiveWithShadowVarianceTypeshadow in interface R2LightWithShadowSingleTypepublic <A,B,E extends Throwable> B matchLightWithShadow(A context, com.io7m.jfunctional.PartialBiFunctionType<A,R2LightProjectiveWithShadowType,B,E> on_project) throws E extends Throwable
R2LightWithShadowSingleTypematchLightWithShadow in interface R2LightWithShadowSingleTypeA - The type of context valuesB - The type of returned valuesE - The type of raised exceptionscontext - A context valueon_project - Evaluated for projective lightsBE - If any of the given functions raise EE extends ThrowableCopyright © 2017 <code@io7m.com> http://io7m.com