Skip to content

shz_vec3_refract

Markdown
SHZ_INLINE shz_vec3_t shz_vec3_refract(shz_vec3_t incidence, shz_vec3_t normal, float eta) SHZ_NOEXCEPT;

Refracts the given 3D incidence vector against a surface with the given normal using the given refraction index ratio, eta.

NameTypeDescription
incidenceshz_vec3_t
normalshz_vec3_t
etafloat

shz_vec3_t