I have all my cube faces sorted by (+X -X +Y -Y +Z -Z) in a single ibo and render them using glMultiDrawElements which allows me to select which sides to draw but I can't seem to find a way to select which faces I need.
The values involved should be the cameras position and viewing angle in combination with the chunks center position but how to calculate this exactly?
This would only need to work from outside the chunk but having something that works inside as well would be nice too.