Function rs_pbrt::core::reflection::refract
source · pub fn refract(
wi: &Vector3f,
n: &Normal3f,
eta: Float,
wt: &mut Vector3f
) -> bool
Expand description
Computes the refraction direction given an incident direction, a surface normal, and the ratio of indices of refraction (incident and transmitted).