Basic Point Light Implementation

Over the past few weeks I have been working on Implementing an easy to use and efficient light system for Supernova Softworks' game Project Neon, a puzzle platformer where the ability to freeze one color in the level is the main mechanic of the game. Using what I've learned from my work in the past and the tutorials on learnOpenGL I have been able to get the bedrock for my lighting system. I did need to convert some of the logic in the tutorials to 2D instead of its default 3D, but i feel the result is worth it. So far I have successfully implemented point lights and spot lights along with a system to handle multiple of each. For this post I will be writing about my understanding of Point Lights. Point Lights Point lights are the simpler of the two lights I have implemented. Consisting of a position, the light's color, also known as diffuse, and variables to determine the falloff of the light which I will explain later, point lights have a very simple implementation. ...