Function directx_math::XMFresnelTerm[][src]

pub fn XMFresnelTerm(
    CosIncidentAngle: FXMVECTOR,
    RefractionIndex: FXMVECTOR
) -> FXMVECTOR

Calculates the Fresnel term for unpolarized light.

Parameters

CosIncidentAngle Vector consisting of the cosines of the incident angles.

RefractionIndex Vector consisting of the refraction indices of the materials corresponding to the incident angles.

Return value

Returns a vector containing the Fresnel term of each component.

Reference

https://docs.microsoft.com/en-us/windows/win32/api/directxmath/nf-directxmath-XMFresnelTerm