public abstract class Light extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Light.Type
The light type.
|
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.
|
public 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 colorIllegalArgumentException
- if color
is nullpublic abstract float[] getNormalizedLightPosition()
(x,y,z)
position of this light source.Copyright © 2020. All rights reserved.