3D rendering engine based on ray tracing