[][src]Function pbrt::core::reflection::refract

pub fn refract(
    wi: &Vector3f,
    n: &Normal3f,
    eta: Float,
    wt: &mut Vector3f
) -> bool

Computes the refraction direction given an incident direction, a surface normal, and the ratio of indices of refraction (incident and transmitted).