LightType

Declaration

enum class LightType {
        Directional,
        Point,
        Spot,
        Ambient,
        Unknown
};

Notes

LightType is an enum used in Light to differentiate the different types of lights.

  • Directional: A directional light emits parallel light rays (in its direction) on the whole scene.

../../_images/directional_light.png
  • Point: A point light emits light rays from its position, all around it.

../../_images/point_light.png
  • Spot : A spot light emits light rays from its position, to its direction in cones defined by its cutoff values.

../../_images/spot_light.png
  • Ambient : An ambient light emits light on every surface.

../../_images/ambient_light.png