public class DistantLight extends Light
Light.Type| Modifier and Type | Field and Description |
|---|---|
private float |
azimuth |
private float |
elevation |
| Constructor and Description |
|---|
DistantLight()
Constructs a new
DistantLight with default azimuth (0.0),
elevation (0.0), and color (Color4f.WHITE). |
DistantLight(float azimuth,
float elevation,
Color4f color)
Constructs a new
DistantLight with the given azimuth,
elevation, and color. |
| Modifier and Type | Method and Description |
|---|---|
float |
getAzimuth()
Returns the azimuth of the light.
|
float |
getElevation()
Returns the elevation of the light.
|
float[] |
getNormalizedLightPosition()
Returns a float array containing the normalized
(x,y,z)
position of this light source. |
void |
setAzimuth(float azimuth)
Sets the azimuth of the light.
|
void |
setElevation(float elevation)
Sets the elevation of the light.
|
public DistantLight()
DistantLight with default azimuth (0.0),
elevation (0.0), and color (Color4f.WHITE).public DistantLight(float azimuth,
float elevation,
Color4f color)
DistantLight with the given azimuth,
elevation, and color.azimuth - the azimuth of the light, in degreeselevation - the elevation of the light, in degreescolor - the color of the lightjava.lang.IllegalArgumentException - if color is nullpublic float getAzimuth()
public void setAzimuth(float azimuth)
Min: n/a
Max: n/a
Default: 0.0
Identity: n/a
azimuth - the azimuth of the light, in degreespublic float getElevation()
public void setElevation(float elevation)
Min: n/a
Max: n/a
Default: 0.0
Identity: n/a
elevation - the elevation of the light, in degreespublic float[] getNormalizedLightPosition()
Light(x,y,z)
position of this light source.getNormalizedLightPosition in class Light