Closed RodenLuo closed 3 years ago
apart from bind the VBO buffer, one also needs to call the following two:
glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 3 * sizeof(float), (void*)0); glEnableVertexAttribArray(0);
apart from bind the VBO buffer, one also needs to call the following two: