Calculating Refraction Vector

T = sin [theta]rM - cos[theta]rN
= sin[theta]r / sin[theta]i (N cos[theta]i - L) - cos[theta]r N
=( (ni / nr) (N cos[theta]i - L) - cos[theta]r N
= ((ni / nr) cos[theta]i - cos[theta]r) N - (ni / nr) L
= ((ni / nr) cos[theta]i - sqrt(1 - (ni / nr)2 sin2[theta]i) N - (ni / nr) L
|