C++ renderer using raytracing