Platform SDK: DirectX |
D3DMATERIAL7 型は、Direct3DDevice7.GetMaterial および Direct3DDevice7.SetMaterial メソッドの呼び出しで、マテリアル プロパティを指定する。
Type D3DMATERIAL7 ambient As D3DCOLORVALUE diffuse As D3DCOLORVALUE emissive As D3DCOLORVALUE power As Single specular As D3DCOLORVALUE End Type
マテリアルのためのスペキュラ ハイライトを止めるには、Power メンバを 0 にセットする。スペキュラ色成分の設定を 0 にするだけでは十分ではない。