Implementing GPU-based path tracing