a minimal ray tracer