public abstract class Light
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Light.Type
The light type.
|
Modifier and Type | Field and Description |
---|---|
private Color4f |
color |
private Light.Type |
type |
Constructor and Description |
---|
Light(Light.Type type)
Package-private constructor.
|
Light(Light.Type type,
Color4f color)
Package-private constructor.
|
Modifier and Type | Method and Description |
---|---|
Color4f |
getColor()
Returns the light color.
|
abstract float[] |
getNormalizedLightPosition()
Returns a float array containing the normalized
(x,y,z)
position of this light source. |
Light.Type |
getType()
Returns the light
Type , either DISTANT , POINT ,
or SPOT . |
void |
setColor(Color4f color)
Sets the light color.
|
private final Light.Type type
private Color4f color
Light(Light.Type type)
type
- the type of the lightjava.lang.IllegalArgumentException
- if color
is nullLight(Light.Type type, Color4f color)
type
- the type of the lightcolor
- the color of the lightjava.lang.IllegalArgumentException
- if color
is nullpublic Light.Type getType()
Type
, either DISTANT
, POINT
,
or SPOT
.public Color4f getColor()
public void setColor(Color4f color)
Min: n/a Max: n/a Default: Color4f.WHITE Identity: n/a
color
- the light colorjava.lang.IllegalArgumentException
- if color
is nullpublic abstract float[] getNormalizedLightPosition()
(x,y,z)
position of this light source.