|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jme.light.Light
com.jme.light.PointLight
PointLight defines a light that has a location in space and
emits light in all directions evenly. This would be something similar to a
light bulb. Typically this light's values are attenuated based on the
distance of the point light and the object it illuminates.
| Field Summary |
| Fields inherited from class com.jme.light.Light |
LT_AMBIENT, LT_DIRECTIONAL, LT_POINT, LT_SPOT |
| Constructor Summary | |
PointLight()
Constructor instantiates a new PointLight object. |
|
| Method Summary | |
Vector3f |
getLocation()
getLocation returns the position of this light. |
int |
getType()
getType returns the type of this light (LT_POINT). |
void |
setLocation(Vector3f location)
setLocation sets the position of the light. |
| Methods inherited from class com.jme.light.Light |
getAmbient, getConstant, getDiffuse, getLinear, getQuadratic, getSpecular, isAttenuate, isEnabled, setAmbient, setAttenuate, setConstant, setDiffuse, setEnabled, setLinear, setQuadratic, setSpecular |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PointLight()
PointLight object. The
initial position of the light is (0,0,0) and it's colors are white.
| Method Detail |
public Vector3f getLocation()
getLocation returns the position of this light.
public void setLocation(Vector3f location)
setLocation sets the position of the light.
location - the position of the light.public int getType()
getType returns the type of this light (LT_POINT).
getType in class LightLight.getType()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||