public final class R2LightProjectiveWithoutShadow extends Object implements R2LightProjectiveWithoutShadowType
Modifier and Type | Method and Description |
---|---|
com.io7m.jcanephora.core.JCGLArrayObjectUsableType |
arrayObject() |
com.io7m.jtensors.core.parameterized.vectors.PVector3D<R2SpaceRGBType> |
color() |
static R2LightProjectiveWithoutShadow |
create(R2ProjectionMeshReadableType in_mesh,
R2Texture2DUsableType in_image,
R2IDPoolType in_pool)
Construct a new light.
|
double |
falloff() |
R2Texture2DUsableType |
image() |
double |
intensity() |
long |
lightID() |
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.
|
R2TransformOTReadableType |
transform() |
R2TransformOTType |
transformWritable() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
matchLightVolumeSingleReadable, matchProjectiveReadable
matchLightSingle
matchProjectiveReadable
public static R2LightProjectiveWithoutShadow create(R2ProjectionMeshReadableType in_mesh, R2Texture2DUsableType in_image, R2IDPoolType in_pool)
in_mesh
- The light projection meshin_image
- The image that will be projected by the lightin_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
Copyright © 2017 <code@io7m.com> http://io7m.com