GLSL Multiple Uniform Structs
I'm developing a lighting system for my voxel game, and I have to send multiple (alot, say up to 200) lights to my shader program. Those lights contain the following data:
Position (vec3)
Color (vec3)
Radius (float)
Strength (float)
What is the most efficient way to send alof of those light structs to my shaders? I would like it to work with lower versions of OpenGL, like 2.1.
I'm developing a lighting system for my voxel game, and I have to send multiple (alot, say up to 200) lights to my shader program. Those lights contain the following data:
Position (vec3)
Color (vec3)
Radius (float)
Strength (float)
What is the most efficient way to send alof of those light structs to my shaders? I would like it to work with lower versions of OpenGL, like 2.1.
No comments:
Post a Comment