Package com.jme3.light
Class AmbientLight
java.lang.Object
com.jme3.light.Light
com.jme3.light.AmbientLight
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 SummaryNested classes/interfaces inherited from class com.jme3.light.LightLight.Type
- 
Field SummaryFields inherited from class com.jme3.light.Lightcolor, enabled, lastDistance, name
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidcomputeLastDistance(Spatial owner) Used internally to compute the last distance value.getType()Returns the light typebooleanintersectsBox(BoundingBox box, TempVars vars) Determines if the light intersects with the given bounding box.booleanintersectsFrustum(Camera camera, TempVars vars) Determines if the light intersects with the given camera frustum.booleanintersectsSphere(BoundingSphere sphere, TempVars vars) Determines if the light intersects with the given bounding sphere.Methods inherited from class com.jme3.light.Lightclone, getColor, getName, isEnabled, isFrustumCheckNeeded, isIntersectsFrustum, read, setColor, setEnabled, setFrustumCheckNeeded, setIntersectsFrustum, setName, write
- 
Constructor Details- 
AmbientLightpublic AmbientLight()
- 
AmbientLight
 
- 
- 
Method Details- 
intersectsBoxDescription copied from class:LightDetermines if the light intersects with the given bounding box.For non-local lights, such as directional lights,ambient lights, orpoint lightswithout influence radius, this method should always return true.- Specified by:
- intersectsBoxin class- Light
- Parameters:
- box- The box to check intersection against.
- vars- TempVars in case it is needed.
- Returns:
- True if the light intersects the box, false otherwise.
 
- 
intersectsSphereDescription copied from class:LightDetermines if the light intersects with the given bounding sphere.For non-local lights, such as directional lights,ambient lights, orpoint lightswithout influence radius, this method should always return true.- Specified by:
- intersectsSpherein class- Light
- Parameters:
- sphere- The sphere to check intersection against.
- vars- TempVars in case it is needed.
- Returns:
- True if the light intersects the sphere, false otherwise.
 
- 
intersectsFrustumDescription copied from class:LightDetermines if the light intersects with the given camera frustum. For non-local lights, such asdirectional lights,ambient lights, orpoint lightswithout influence radius, this method should always return true.- Specified by:
- intersectsFrustumin class- Light
- Parameters:
- camera- The camera frustum to check intersection against.
- vars- TempVars in case it is needed.
- Returns:
- True if the light intersects the frustum, false otherwise.
 
- 
computeLastDistanceDescription copied from class:LightUsed internally to compute the last distance value.- Specified by:
- computeLastDistancein class- Light
- Parameters:
- owner- the Spatial whose distance is to be determined
 
- 
getTypeDescription copied from class:LightReturns the light type
 
-