Basic 3d raytracer