Skip to content

shz_vec4_refract

Markdown
SHZ_INLINE shz_vec4_t shz_vec4_refract(shz_vec4_t incidence, shz_vec4_t normal, float eta) SHZ_NOEXCEPT;

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

NameTypeDescription
incidenceshz_vec4_t
normalshz_vec4_t
etafloat

shz_vec4_t