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.
where the ray propagates from the medium with speed of sound c
1 into the medium with speed of sound c
2.