GLSL multiple shaderprogram VS uniforms switches
Let’s look at #1: Considering every object might have its own material, it involves a lot of glUseProgram calls. This isn’t that big of a deal, really. Swapping programs is hard, but you’d be swapping textures too, so it’s not like you’re not already changing important state. Implies the creation of a lot of shaderprogram … Read more