refract
Returns the refraction direction for a given incident vector
self
, surface normalnormal
and ratio of indices of refraction,eta
. When total internal reflection occurs, a zero vector will be returned.self
andnormal
must be normalized.Panics
Will panic if
self
ornormal
is not normalized whenglam_assert
is enabled.
Arguments
- _self :
Vec3
- No Documentation 🚧 - normal :
Vec3
- No Documentation 🚧 - eta :
f32
- No Documentation 🚧
Returns
- arg0 :
Vec3
- No Documentation 🚧