Skip to content

Light

Simple Light system that supports multiple Light Sources.

Important

In the Uber shader there is a Maximum of 256 Light Sources.

Functions

  • static void Enable() Enables the Light system by loading all given Light Sources into the current Shader.
  • static void Disable() Disables the Light system by setting the Number of Lights to 0 and AmbientLight to 1.

  • Light(Vec3 position) Create a Light with the given Position.

  • void Destroy() Public pseudo destructor since you need to destroy the Light Source for it to cease having effect.

Fields

  • Vec3 Position Position of the Light Source, with custom Get and Set