At a Material Discontinuity between two different media, the wave vector is reinitialized using Snell’s law. First, the angle of incidence
θi is computed:
where ni is a unit vector in the direction of the incident ray and
ns is a unit vector normal to the material discontinuity.