Learn to move objects via the mouse in OpenGL
Display 8 points on the screen each of a different color and arranged uniformly on a circle.
Upon mouse click, change the color of the selected point to highlight it. Restore the original color upon release.
Use orthogonal projection.
Implement the ability to move the points with the mouse
Make all points suitably large.
glfwGetCursorPos
glm::unProject(glm::vec3(---,---, 0.0), ModelMatrix, ProjectionMatrix, vp)
where "---" is a place-holder for your code and vp is short for Viewport.
Implement Tasks 1--3 in webGL
using
code base webGL
(which uses the ideas of
picking )