public interface KLightDirectionalDiffuseOnlyBuilderType
Modifier and Type | Method and Description |
---|---|
KLightDirectionalDiffuseOnly |
build()
Construct a light.
|
void |
copyFromDirectional(KLightDirectionalType d)
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 |
setDirection(com.io7m.jtensors.parameterized.PVectorI3F<RSpaceWorldType> direction)
Set the direction in world-space of the light.
|
void |
setIntensity(float intensity)
Set the intensity of the light.
|
void copyFromDirectional(KLightDirectionalType d)
Set all values in the builder to those in the given existing light.
d
- The lightKLightDirectionalDiffuseOnly build()
Construct a light.
This function can be called as many times as required, yielding new lights each time it is called.
void 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 setDirection(com.io7m.jtensors.parameterized.PVectorI3F<RSpaceWorldType> direction)
Set the direction in world-space of the light.
The default direction is unspecified.
direction
- The direction in world-space.void setIntensity(float intensity)
Set the intensity of the light.
The default intensity is 1.0
.
intensity
- The intensity.Copyright © 2015 <code@io7m.com> http://io7m.com