Class AmbientLight


  • public class AmbientLight
    extends Light
    An ambient light source object. Ambient light is that light that seems to come from all directions. The AmbientLight object has the same attributes as a Light node, including color, influencing bounds, scopes, and a flag indicating whether this light source is on or off. Ambient reflections do not depend on the orientation or position of a surface. Ambient light has only an ambient reflection component. It does not have diffuse or specular reflection components.

    For more information on Java 3D lighting, see the class description for Light.

    • Constructor Detail

      • AmbientLight

        public AmbientLight()
        Constructs and initializes an ambient light using default parameters.
      • AmbientLight

        public AmbientLight​(javax.vecmath.Color3f color)
        Constructs and initializes an ambient light using the specified parameters.
        Parameters:
        color - the color of the light source.
      • AmbientLight

        public AmbientLight​(boolean lightOn,
                            javax.vecmath.Color3f color)
        Constructs and initializes an ambient light using the specified parameters.
        Parameters:
        lightOn - flag indicating whether this light is on or off.
        color - the color of the light source.