1 package com.jme3.light; 2 3 import com.jme3.scene.Spatial; 4 5 /** 6 * An ambient light adds a constant color to the scene. 7 * <p> 8 * Ambient lights are unaffected by the surface normal, and are constant 9 * regardless of the model's location. The material's ambient color is 10 * multiplied by the ambient light color to get the final ambient color of 11 * an object. 12 * 13 * @author Kirill Vainer 14 */ 15 public class AmbientLight extends Light { 16 17 @Override computeLastDistance(Spatial owner)18 public void computeLastDistance(Spatial owner) { 19 } 20 21 @Override getType()22 public Type getType() { 23 return Type.Ambient; 24 } 25 26 } 27