refract

Returns the refraction direction for a given incident vector self, surface normal normal and ratio of indices of refraction, eta. When total internal reflection occurs, a zero vector will be returned. self and normal must be normalized.

Panics

Will panic if self or normal is not normalized when glam_assert is enabled.

Arguments

  • _self : Vec3 - No Documentation 🚧
  • normal : Vec3 - No Documentation 🚧
  • eta : f32 - No Documentation 🚧

Returns

  • arg0 : Vec3 - No Documentation 🚧