Explicit vs Automatic attribute location binding for OpenGL shaders
I know one good reason to prefer explicit location definition. Consider that you hold your geometry data in Vertex Array Objects. For a given object, you create a VAO in such way that the indices correspond to, for example: index 0: positions, index 1: normals, index 2: texcoords Now consider that you want to draw … Read more