GPU-accelerated real-time ray tracer implemented in OpenCL and CUDA