Now the ray tracer works properly for a simple cube mesh.