I am calling many shader programs or the same program over and over to draw my various models. I want to dispatch my lighting info (for several lights) to the shader program, but it seems wasteful to do this over and over.
How to send the data to the gpu once and then access it from the same shader on multiple calls and/or multiple shaders?
Is this what uniform blocks do?
I can envision using a texture to store the lighting info??