public interface KLightSphereBuilderType
Modifier and Type | Method and Description |
---|---|
void |
copyFromSphere(KLightSphereType s)
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 |
setPosition(com.io7m.jtensors.parameterized.PVectorI3F<RSpaceWorldType> position)
Set the position in world-space of the light.
|
void |
setRadius(float radius)
Set the radius of the light.
|
void copyFromSphere(KLightSphereType s)
Set all values in the builder to those in the given existing light.
s
- 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 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 setRadius(float radius)
Set the radius of the light.
The default radius is 8.0
.
radius
- The radius.Copyright © 2015 <code@io7m.com> http://io7m.com