Computer graphics in Game development
Ivan Belyavtsev
21.02.2020
\[\frac{\sin(\theta_o)}{\sin(\theta_i)}=\frac{v_o}{v_i}=\frac{n_i}{n_o}\]
\(T\) - Refraction ability \(R\) - Reflection ability
\[T+R = 1\]
\(R_s\) - reflectance for s-polarized light
\(R_p\) - reflectance for p-polarized light
\[R = \frac{R_s + R_p}{2}\]
\[R_s = \biggl|\frac{n_1\cos{\omega_i}-n_2\cos{\omega_o}}{n_1\cos{\omega_i}+n_2\cos{\omega_o}}\biggl|^2\]
\[R_p = \biggl|\frac{n_1\cos{\omega_o}-n_2\cos{\omega_i}}{n_1\cos{\omega_o}+n_2\cos{\omega_i}}\biggl|^2\]
1. McGuire M. The graphics codex. 2.14 ed. Casual Effects, 2018.