pub fn vec3_refract_ratio(v: &Vec3, n: &Vec3, eta_ratio: Real) -> Option<Vec3>Expand description
Refract vector v (unit incident) through a surface with unit normal n.
eta_ratio = eta_i / eta_t. Returns None for total internal reflection.
This variant uses the eta_ratio parameter name convention.