public interface KLightProjectiveBuilderType
Modifier and Type | Method and Description |
---|---|
void |
copyFromProjective(KLightProjectiveType k)
Set all values in the builder to those in the given existing light.
|
void |
setColor(com.io7m.jtensors.parameterized.PVectorI3F<RSpaceRGBType> color)
Set the color of the light.
|
void |
setFalloff(float exponent)
Set the falloff exponent.
|
void |
setIntensity(float intensity)
Set the intensity of the light.
|
void |
setOrientation(com.io7m.jtensors.QuaternionI4F orientation)
Set the orientation of the light.
|
void |
setPosition(com.io7m.jtensors.parameterized.PVectorI3F<RSpaceWorldType> position)
Set the position in world-space of the light.
|
void |
setProjection(KProjectionType projection)
Set the projection of the light.
|
void |
setRange(float range)
Set the range of the light.
|
void |
setTexture(com.io7m.jcanephora.Texture2DStaticUsableType texture)
Set the texture for the light.
|
void copyFromProjective(KLightProjectiveType k)
Set all values in the builder to those in the given existing light.
k
- The lightvoid setColor(com.io7m.jtensors.parameterized.PVectorI3F<RSpaceRGBType> color)
Set the color of the light.
The default color is full-intensity white.
color
- The color.void setFalloff(float exponent)
Set the falloff exponent.
The default exponent is 1.0
(linear falloff).
exponent
- The exponent.void setIntensity(float intensity)
Set the intensity of the light.
The default intensity is 1.0
.
intensity
- The intensity.void setOrientation(com.io7m.jtensors.QuaternionI4F orientation)
Set the orientation of the light.
The default orientation is (0.0, 0.0, 0.0, 1.0)
.
orientation
- The orientation.void setPosition(com.io7m.jtensors.parameterized.PVectorI3F<RSpaceWorldType> position)
Set the position in world-space of the light.
The default position is (0.0, 0.0, 0.0)
.
position
- The position.void setProjection(KProjectionType projection)
Set the projection of the light.
projection
- The projection.void setRange(float range)
Set the range of the light.
The default range is 8.0
.
range
- The range.void setTexture(com.io7m.jcanephora.Texture2DStaticUsableType texture)
Set the texture for the light.
There is no default texture; this parameter is required to be set.
texture
- The texture.Copyright © 2015 <code@io7m.com> http://io7m.com