public interface Light
Modifier and Type | Method and Description |
---|---|
Color |
getAmbientColor()
Return the ambient color of this light;
|
Color |
getDiffuseColor()
Return the diffuse color of this light;
|
int |
getIndex()
Return the light index.
|
Vector3d |
getPosition()
Return the light position.
|
Color |
getSpecularColor()
Return the specular color of this light;
|
float |
getSpotAngle()
Return the spot angle.
|
Vector3d |
getSpotDirection()
Return the spot direction.
|
boolean |
isEnable()
Return the status of this light.
|
void |
setAmbientColor(Color color)
Set the ambient color of this light.
|
void |
setDiffuseColor(Color color)
Set the diffuse color of this light.
|
void |
setEnable(boolean enable)
Set the status of this light.
|
void |
setPosition(Vector3d position)
Set the light position.
|
void |
setSpecularColor(Color color)
Set the specular color of this light.
|
void |
setSpotAngle(float angle)
Set the spot angle.
|
void |
setSpotDirection(Vector3d spotDirection)
Set the spot direction.
|
boolean isEnable()
void setEnable(boolean enable)
enable
- the new status of this light.Color getAmbientColor()
void setAmbientColor(Color color)
color
- the new ambient color of this light.Color getDiffuseColor()
void setDiffuseColor(Color color)
color
- the new diffuse color of this light.Color getSpecularColor()
void setSpecularColor(Color color)
color
- the new specular color of this light.Vector3d getPosition()
void setPosition(Vector3d position)
position
- the new position.Vector3d getSpotDirection()
void setSpotDirection(Vector3d spotDirection)
spotDirection
- the new spot direction.float getSpotAngle()
void setSpotAngle(float angle)
angle
- the new spot angle.int getIndex()