Skip to content

shz_vec2_refract

Markdown
SHZ_INLINE shz_vec2_t shz_vec2_refract(shz_vec2_t incidence, shz_vec2_t normal, float eta) SHZ_NOEXCEPT;

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

NameTypeDescription
incidenceshz_vec2_t
normalshz_vec2_t
etafloat

shz_vec2_t