public final class R2LightSphericalSingle extends Object implements R2LightSphericalSingleType
| 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() |
float |
geometryScaleFactor() |
float |
intensity() |
long |
lightID() |
static R2LightSphericalSingleType |
newLight(R2UnitSphereUsableType in_sphere,
R2IDPoolType in_pool)
Construct a new light.
|
com.io7m.jtensors.parameterized.PVectorReadable3FType<R2SpaceWorldType> |
originPosition() |
com.io7m.jtensors.parameterized.PVector3FType<R2SpaceWorldType> |
originPositionWritable() |
float |
radius() |
void |
setFalloff(float f)
Set the light falloff exponent
|
void |
setGeometryScaleFactor(float f)
Set the geometry scale factor.
|
void |
setIntensity(float i)
Set the current light intensity
|
void |
setRadius(float r)
Set the light radius in world-space units.
|
R2TransformReadableType |
transform() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmatchLightVolumeSingleReadablematchLightSinglepublic static R2LightSphericalSingleType newLight(R2UnitSphereUsableType in_sphere, R2IDPoolType in_pool)
in_sphere - The light volumein_pool - The ID poolpublic float radius()
radius in interface R2LightSphericalReadableTypepublic void setRadius(float r)
R2LightSphericalWritableTypesetRadius in interface R2LightSphericalWritableTyper - The light radiuspublic float falloff()
falloff in interface R2LightSphericalReadableTypepublic void setFalloff(float f)
R2LightSphericalWritableTypesetFalloff in interface R2LightSphericalWritableTypef - 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.jtensors.parameterized.PVectorReadable3FType<R2SpaceWorldType> originPosition()
originPosition in interface R2LightSphericalReadableTypepublic com.io7m.jcanephora.core.JCGLArrayObjectUsableType arrayObject()
arrayObject in interface R2LightSingleReadableTypepublic long lightID()
lightID in interface R2LightReadableTypepublic R2TransformReadableType transform()
transform in interface R2LightSingleReadableTypepublic com.io7m.jtensors.parameterized.PVector3FType<R2SpaceWorldType> originPositionWritable()
originPositionWritable in interface R2LightSphericalSingleWritableTypepublic float geometryScaleFactor()
geometryScaleFactor in interface R2LightSphericalSingleReadableTypeR2LightSphericalSingleWritableType.setGeometryScaleFactor(float)public void setGeometryScaleFactor(float f)
R2LightSphericalSingleWritableTypeR2LightSphericalReadableType.radius()
* f. This is used to artificially enlarge the light volume to
account for, for example, the fact that a low-polygon approximation of a
sphere will typically have a smaller volume than a real sphere would.setGeometryScaleFactor in interface R2LightSphericalSingleWritableTypef - The scale factorCopyright © 2016 <code@io7m.com> http://io7m.com