Function wt::fresnel¶
Defined in File fresnel.hpp
Function Documentation¶
-
inline fresnel_ret_t wt::fresnel(c_t eta_12, const dir3_t &w, const dir3_t &n = {0, 0, 1}) noexcept¶
Computes the Fresnel coefficients as well as refracted ray direction at an interface. w is assumed to point away from the surface.
- Parameters:
eta_12 – Refractive-index ratio