How the light function works

  1. the light object

The light might look a little weird. This is because the light function calculates light from the dark space, then inverting it so that the dark spaces become the light

  1. positioning

The lighting functions main aspect is making it far easier to place lighting. Instead of having to place lighting based off the bottom left corner of the light object. It allows you place light sources based off the center of the light

  1. inversion

this step is the simpliest step, it simply inversts the alpha of the lighting, this makes the dark areas become the light, and the light areas become dark