public class Light
extends java.lang.Object
Constructor and Description |
---|
Light() |
Modifier and Type | Method and Description |
---|---|
float[] |
getAmbient()
Ambient color for the light.
|
float[] |
getDiffuse()
Diffuse light color.
|
Point3d |
getPos()
The location of this particular light in display space.
|
boolean |
isViewDependent()
Controls whether the light takes the model matrix into account or not.
|
void |
setAmbient(float[] ambient)
Ambient color for the light.
|
void |
setAmbient(float r,
float g,
float b,
float a)
Ambient color for the light.
|
void |
setAmbient(int color)
Ambient color for the light.
|
void |
setDiffuse(float[] diffuse)
Diffuse light color.
|
void |
setDiffuse(float r,
float g,
float b,
float a)
Diffuse light color.
|
void |
setDiffuse(int color)
Diffuse light color.
|
void |
setPos(Point3d pos)
The location of this particular light in display space.
|
void |
setViewDependent(boolean viewDependent)
Controls whether the light takes the model matrix into account or not.
|
public Point3d getPos()
public void setPos(Point3d pos)
public boolean isViewDependent()
public void setViewDependent(boolean viewDependent)
public void setAmbient(int color)
public void setAmbient(float r, float g, float b, float a)
public float[] getAmbient()
public void setAmbient(float[] ambient)
public void setDiffuse(int color)
public void setDiffuse(float r, float g, float b, float a)
public float[] getDiffuse()
public void setDiffuse(float[] diffuse)