java.lang.Object
eu.svjatoslav.sixth.e3d.renderer.octree.raytracer.LightSource

public class LightSource extends Object
Represents light source.
  • Field Details

    • color

      public Color color
      Light source color.
    • brightness

      public float brightness
      Light source brightness.
  • Constructor Details

    • LightSource

      public LightSource(Point3D location, Color color, float Brightness)
      Creates a light source at the given location with the specified color and brightness.
      Parameters:
      location - the position of the light source in world space
      color - the color of the light
      Brightness - the brightness multiplier (0.0 = off, 1.0 = full)