Real refraction & TIR in virtual layers