Package lighting

Class AmbientLight

java.lang.Object
lighting.Light
lighting.AmbientLight

public class AmbientLight
extends Light
This light models the small amounts of light which reflected so many times that their source is indeterminable. All geometry intersections will be affected by at least this light.
  • Field Summary

    Fields inherited from class lighting.Light

    colour
  • Constructor Summary

    Constructors
    Constructor Description
    AmbientLight​(Colour colour)
    Construct an ambient light with the specified colour.
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AmbientLight

      public AmbientLight​(Colour colour)
      Construct an ambient light with the specified colour.
      Parameters:
      colour - The colour to set the ambient light to.