Software raytracer and rasterizer