XMFresnelTerm 関数 (directxmath.h)

非分極化光のフレネル項を計算します。

構文

XMVECTOR XM_CALLCONV XMFresnelTerm(
  [in] FXMVECTOR CosIncidentAngle,
  [in] FXMVECTOR RefractionIndex
) noexcept;

パラメーター

[in] CosIncidentAngle

入射角度のコサインで構成されるベクトル。

[in] RefractionIndex

入射角度に対応するマテリアルの屈折インデックスで構成されるベクトル。

戻り値

各コンポーネントの Fresnel 項を含むベクターを返します。

解説

プラットフォームの要件

Windows SDK for Windows 8 を使用する Microsoft Visual Studio 2010 または Microsoft Visual Studio 2012。 Win32 デスクトップ アプリ、Windows ストア アプリ、Windows Phone 8 アプリでサポートされます。

要件

   
対象プラットフォーム Windows
ヘッダー directxmath.h

関連項目

DirectXMath ライブラリユーティリティ関数