XMFresnelTerm

Calculates the Fresnel term for unpolarized light.

Syntax

XMVECTOR XMFresnelTerm(
         XMVECTOR CosIncidentAngle,
         XMVECTOR RefractionIndex
)  

Parameters

CosIncidentAngle
Type: XMVECTOR 

Vector consisting of the cosines of the incident angles.

RefractionIndex
Type: XMVECTOR 

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

Return value

Type: XMVECTOR 

Returns a vector containing the Fresnel term of each component.

Requirements

Header: Declared in directxmath.h.