|
|||||||||||
| 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.DirectionalLight
DirectionalLight defines a light that is assumed to be
infintely far away (something similar to the sun). This means the direction
of the light rays are all parallel. The direction the light is coming from
is defined by the class.
| Field Summary |
| Fields inherited from class com.jme.light.Light |
LT_AMBIENT, LT_DIRECTIONAL, LT_POINT, LT_SPOT |
| Constructor Summary | |
DirectionalLight()
Constructor instantiates a new DirectionalLight object. |
|
| Method Summary | |
Vector3f |
getDirection()
getDirection returns the direction the light is
emitting from. |
int |
getType()
getType returns this light's type (LT_DIRECTIONAL). |
void |
setDirection(Vector3f direction)
setDirection sets the direction the light is emitting from. |
| 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 DirectionalLight()
DirectionalLight object.
The initial light colors are white and the direction the light emits
from is (0,0,0).
| Method Detail |
public Vector3f getDirection()
getDirection returns the direction the light is
emitting from.
public void setDirection(Vector3f direction)
setDirection sets the direction the light is emitting from.
direction - the direction the light is emitting from.public int getType()
getType returns this light's type (LT_DIRECTIONAL).
getType in class LightLight.getType()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||