ray tracer preliminaries