public final class R2LightProjectiveWithShadowVariance extends Object implements R2LightProjectiveWithShadowVarianceType
Modifier and Type | Method and Description |
---|---|
com.io7m.jcanephora.core.JCGLArrayObjectUsableType |
arrayObject() |
com.io7m.jtensors.core.parameterized.vectors.PVector3D<R2SpaceRGBType> |
color() |
static R2LightProjectiveWithShadowVariance |
create(R2ProjectionMeshReadableType in_mesh,
R2Texture2DUsableType in_image,
R2ShadowDepthVarianceType in_shadow,
R2IDPoolType in_pool)
Construct a new light.
|
double |
falloff() |
R2Texture2DUsableType |
image() |
double |
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.
|
com.io7m.jtensors.core.parameterized.vectors.PVector3D<R2SpaceWorldType> |
position() |
R2ProjectionReadableType |
projection() |
double |
radius() |
void |
setColor(com.io7m.jtensors.core.parameterized.vectors.PVector3D<R2SpaceRGBType> in_color)
Set the color of the light.
|
void |
setFalloff(double f)
Set the light falloff exponent
|
void |
setIntensity(double i)
Set the current light intensity
|
void |
setRadius(double 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, wait
matchLightVolumeSingleReadable, matchProjectiveReadable
matchLightSingle
matchProjectiveReadable
public static R2LightProjectiveWithShadowVariance create(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 double radius()
radius
in interface R2LightProjectiveReadableType
public void setRadius(double r)
R2LightProjectiveWritableType
setRadius
in interface R2LightProjectiveWritableType
r
- The light radiuspublic R2TransformOTType transformWritable()
transformWritable
in interface R2LightProjectiveWritableType
public double falloff()
falloff
in interface R2LightProjectiveReadableType
public void setFalloff(double f)
R2LightProjectiveWritableType
setFalloff
in interface R2LightProjectiveWritableType
f
- The light falloffpublic com.io7m.jtensors.core.parameterized.vectors.PVector3D<R2SpaceRGBType> color()
color
in interface R2LightReadableType
public double intensity()
intensity
in interface R2LightReadableType
public void setColor(com.io7m.jtensors.core.parameterized.vectors.PVector3D<R2SpaceRGBType> in_color)
R2LightWritableType
setColor
in interface R2LightWritableType
in_color
- The light colorpublic void setIntensity(double i)
R2LightWritableType
setIntensity
in interface R2LightWritableType
i
- The intensity (typically [0.0 .. 1.0]
)public com.io7m.jcanephora.core.JCGLArrayObjectUsableType arrayObject()
arrayObject
in interface R2LightSingleReadableType
public R2TransformOTReadableType transform()
transform
in interface R2LightProjectiveReadableType
transform
in interface R2LightSingleReadableType
public com.io7m.jtensors.core.parameterized.vectors.PVector3D<R2SpaceWorldType> position()
position
in interface R2LightProjectiveReadableType
public long lightID()
lightID
in interface R2LightReadableType
public R2ProjectionReadableType projection()
projection
in interface R2LightProjectiveReadableType
public R2Texture2DUsableType image()
image
in interface R2LightProjectiveReadableType
public R2ShadowDepthVarianceType shadow()
shadow
in interface R2LightProjectiveWithShadowVarianceType
shadow
in interface R2LightWithShadowSingleType
public <A,B,E extends Throwable> B matchLightWithShadow(A context, com.io7m.jfunctional.PartialBiFunctionType<A,R2LightProjectiveWithShadowType,B,E> on_project) throws E extends Throwable
R2LightWithShadowSingleType
matchLightWithShadow
in interface R2LightWithShadowSingleType
A
- The type of context valuesB
- The type of returned valuesE
- The type of raised exceptionscontext
- A context valueon_project
- Evaluated for projective lightsB
E
- If any of the given functions raise E
E extends Throwable
Copyright © 2017 <code@io7m.com> http://io7m.com