I am reading a paper about layered materials. However, I am confused on the implementation of this paper. The following picture describe the layered material.
r_ab is a complex reflection coeffcient when going from medium a to medium b.
And in the code, there is:
float2 R12, phi12;
fresnelDielectric(LdotH, 1.0, eta_2, R12, phi12);
float2 R21 = R12;
I don't understand why is r_12 equal to r_21?