So I tried creating my own lighting system. I created a light class in C++ and a pointer array for the lights in my scene. The lights' variables are then to be passed to a bunch of arrays in my glsl shader, however, an array size of above 12 is not allowed. This means I cannot use more than 12 lights at once. How could I work around this?



