public final class R2LightDirectionalScreenSingle extends Object implements R2LightScreenSingleType
Modifier and Type | Method and Description |
---|---|
com.io7m.jcanephora.core.JCGLArrayObjectUsableType |
arrayObject() |
com.io7m.jtensors.core.parameterized.vectors.PVector3D<R2SpaceRGBType> |
color() |
static R2LightDirectionalScreenSingle |
create(R2UnitQuadUsableType q,
R2IDPoolType pool)
Construct a new light.
|
com.io7m.jtensors.core.parameterized.vectors.PVector3D<R2SpaceWorldType> |
direction() |
double |
intensity() |
long |
lightID() |
void |
setColor(com.io7m.jtensors.core.parameterized.vectors.PVector3D<R2SpaceRGBType> in_color)
Set the color of the light.
|
void |
setIntensity(double i)
Set the current light intensity
|
R2TransformReadableType |
transform() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
matchLightSingle
public static R2LightDirectionalScreenSingle create(R2UnitQuadUsableType q, R2IDPoolType pool)
q
- A unit quadpool
- The ID poolpublic com.io7m.jtensors.core.parameterized.vectors.PVector3D<R2SpaceRGBType> color()
color
in interface R2LightReadableType
public com.io7m.jtensors.core.parameterized.vectors.PVector3D<R2SpaceWorldType> direction()
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 long lightID()
lightID
in interface R2LightReadableType
public com.io7m.jcanephora.core.JCGLArrayObjectUsableType arrayObject()
arrayObject
in interface R2LightSingleReadableType
public R2TransformReadableType transform()
transform
in interface R2LightSingleReadableType
Copyright © 2017 <code@io7m.com> http://io7m.com