jwbuurlage/Motor — comment on commit f575e68bea9457c84585c0c6736512d24934ffe9
File: src/MotorScene.cpp line 50
By Tombana:

Well basicly we pass the positions of the lights to the shaders, and we can only give them arrays of constant size. Currently I made it 8 in the shader. There is probably also a hardware limit on how much variables (called uniforms in shaders) you can pass from the application to the GPU. I don't know what that limit is though.