Correcting raytracing to entities