Basic functionality of a ray tracer