cube raytracing works