com.jme3.light
Class AmbientLight

java.lang.Object
  extended by com.jme3.light.Light
      extended by com.jme3.light.AmbientLight
All Implemented Interfaces:
Savable, java.lang.Cloneable

public class AmbientLight
extends Light

An ambient light adds a constant color to the scene.

Ambient lights are unaffected by the surface normal, and are constant regardless of the model's location. The material's ambient color is multiplied by the ambient light color to get the final ambient color of an object.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.jme3.light.Light
Light.Type
 
Field Summary
 
Fields inherited from class com.jme3.light.Light
color, enabled, lastDistance, name
 
Constructor Summary
AmbientLight()
           
 
Method Summary
 void computeLastDistance(Spatial owner)
          Used internally to compute the last distance value.
 Light.Type getType()
          Returns the light type
 
Methods inherited from class com.jme3.light.Light
clone, getColor, getName, read, setColor, setName, write
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AmbientLight

public AmbientLight()
Method Detail

computeLastDistance

public void computeLastDistance(Spatial owner)
Description copied from class: Light
Used internally to compute the last distance value.

Specified by:
computeLastDistance in class Light

getType

public Light.Type getType()
Description copied from class: Light
Returns the light type

Specified by:
getType in class Light
Returns:
the light type
See Also:
Light.Type