Package snap.gfx3d

Class Light3D

java.lang.Object
snap.gfx3d.Light3D

public class Light3D extends Object
This class represents a light in a scene. The current implementation simply models a distant light aligned with the camera along with an ambient light. Future versions could expand this into full support for ambient lights, distant lights and spot lights. There could even be a class called LightSet, so multiple lights could be supported but the simple API could be preserved.
  • Constructor Details

    • Light3D

      public Light3D()
      Constructor.
  • Method Details

    • getRenderColor

      public Color getRenderColor(Vector3D normal, Color aColor)
      Returns the render color for this light for given normal and color.