MonoGame/クラスライブラリ/DirectionalLightクラス
DirectionalLightクラスは、主にBasicEffectクラスで使われている平行光源を表すクラスである。
継承
- System.Object
- Microsoft.Xna.Framework.Graphics.DirectionalLight
名前空間
構文
public sealed class DirectionalLight
コンストラクタ
| 名称 | 概要 | |
|---|---|---|
| public | DirectionalLight |
プロパティ
| 名称 | 概要 | |
|---|---|---|
| public | Enabled | 光源の有効化、無効化 |
| public | Direction | 光源の方向 |
| public | DiffuseColor | 光源の色。ポリゴンに色が点いている場合は掛け合わせて出力される。 |
| public | SpecularColor | 光源の反射光の色。まともに反射光を計算すると非現実的なので簡易的に色を付けようという代物。 |