Non-realtime C ray-tracer