How to draw multiple objects in OpenGL using multiple VAO and VBO?
问题 I'm trying to render multiple objects in OpenGL using multiple VAO's and VBO's. To render multiple objects using the same vertices I've done it, but what I want to do is to use different vertices for each object, for example to draw a square and a circle. For a square I only need 6 vertices but for circle I need 360. I have error with reading or creating the shaders. Here is the Vertex Shader: #version 330 core layout (location = 0) in vec4 position; uniform mat4 model; uniform mat4 view;