Connecting Sphere Vertices OpenGL
问题 I am trying to render a sphere in OpenGL using GL_TRIANGLES. Here is an image of what I am getting with the code below.. Bad Sphere This is supposed to be a unit sphere. I have derived the vertices from the basic sphere approximations from wikipedia. Here is the code that I created to render the unit sphere.. Please let me know where I am going wrong void createGreenSphere(mat4 modelView){ std::vector< Vertex > v; int numSphereSlices = 12; int numSphereSegments = 12; float theta = 0; float