Lets say i have a single VAO creating a chess-board.
Its made up of normals, vertices and indices using a simple shader which colors the board alternating by using the modulo function on the coordinates…
How would I implement picking?
I found out from other threads here that raytracing is the way to go, but thats where i struggle really hard to implement.
Data is made of Vector3 for the vertices and normals, uint for the indices.
If you implement a ray intersection approach, then having a VAO, or VBO is completely irrelevant, because you’re not going to use OpenGL for this. You do the math manually and on the CPU.