Branch free refract and reflect