Simple Raycasting rendering using a bit for OpenGL