Lumino
ln::EnvironmentLight Class Reference

環境ライトのオブジェクトです。 More...

#include <Light.hpp>

Inheritance diagram for ln::EnvironmentLight:
ln::WorldObject

Public Member Functions

void setEnabled (bool enabled)
 ライトの有効状態を設定します。false の場合、ライトはシーンに影響しません。(default: true)
 
bool isEnabled () const
 ライトの有効状態を取得します。
 
void setColor (const Color &value)
 ディレクショナルライトの光源色を設定します。(default: White)
 
const ColorgetColor () const
 ディレクショナルライトの光源色を取得します。
 
void setAmbientColor (const Color &value)
 シーン全体の環境光の色を設定します。(default: 0.5, 0.5, 0.5)
 
const ColorgetAmbientColor () const
 シーン全体の環境光の色を取得します。
 
const ColorgetSkyColor ()
 空の環境光の色を取得します。
 
void setSkyColor (const Color &value)
 空の環境光の色を設定します。(default: Black)
 
const ColorgetGroundColor ()
 地面の環境光の色を取得します。
 
void setGroundColor (const Color &value)
 地面の環境光の色を設定します。(default: Black)
 
void setIntensity (float intensity)
 ライトの明るさを設定します。(default: 0.5)
 
float getIntensity () const
 ライトの明るさを取得します。
 
void setShadowEffectiveDistance (float value)
 視点からの、影を生成できる距離を指定します。 (default: 0.0f)
 
float shadowEffectiveDistance () const
 視点からの、影を生成できる距離を取得します。
 
void setShadowEffectiveDepth (float value)
 光源方向からの、影を生成できる距離を指定します。 (default: 0.0f) ※これはシャドウマップの深度値の範囲となります。
 
float shadowEffectiveDepth () const
 光源方向からの、影を生成できる距離を指定します。
 
EnvironmentLightComponentenvironmentLightComponent () const
 コンポーネントを取得します。
 
- Public Member Functions inherited from ln::WorldObject
void setPosition (const Vector3 &pos)
 このオブジェクトの位置を設定します。
 
void setPosition (float x, float y, float z=0.0f)
 このオブジェクトの位置を設定します。
 
const Vector3position () const
 このオブジェクトの位置を位置を取得します。
 
void setRotation (const Quaternion &rot)
 このオブジェクトの回転を設定します。
 
void setRotation (float x, float y, float z)
 このオブジェクトの回転をオイラー角から設定します(radian単位) 。回転順序は Z(Roll) > X(Pich) > Y(Yaw) です。
 
const Quaternionrotation () const
 このオブジェクトの回転を取得します。
 
void setScale (const Vector3 &scale)
 このオブジェクトの拡大率を設定します。
 
void setScale (float xyz)
 このオブジェクトの拡大率を設定します。
 
void setScale (float x, float y, float z=1.0f)
 このオブジェクトの拡大率を設定します。
 
const Vector3scale () const
 このオブジェクトの拡大率を取得します。
 
void setCenterPoint (const Vector3 &value)
 このオブジェクトのローカルの中心位置を設定します。
 
void setCenterPoint (float x, float y, float z=0.0f)
 このオブジェクトのローカルの中心位置を設定します。
 
const Vector3centerPoint () const
 このオブジェクトのローカルの中心位置を取得します。
 
void lookAt (const Vector3 &target)
 指定した座標を向くように、オブジェクトを回転させます。
 
void lookAt (float x, float y, float z)
 指定した座標を向くように、オブジェクトを回転させます。
 
void lookAt (const Vector3 &target, const Vector3 &up)
 指定した座標を向くように、オブジェクトを回転させます。
 
void lookAt (float x, float y, float z, const Vector3 &up)
 指定した座標を向くように、オブジェクトを回転させます。
 
void addComponent (Component *component)
 Component を追加します。
 
void removeComponent (Component *component)
 Component を除外します。
 
void addTag (const StringRef &tag)
 タグを追加します。
 
void removeTag (const StringRef &tag)
 タグを除外します。
 
bool hasTag (const StringRef &tag) const
 指定したタグを持っているかを確認します。
 
void destroy ()
 WorldObject を破棄します。 More...
 
bool destroyed () const
 destroy() が呼び出され、オブジェクトが破棄されようとしているか、または破棄されたかを確認します。実際の削除は、現在のフレームのアップデート処理後に行われます。
 
void removeFromParent ()
 このオブジェクトを直ちに World から除外します。このメソッドは World のアップデートシーケンス中に呼び出してはなりません。
 
Component * findComponentByType (const TypeInfo *type) const
 この WorldObject に含まれている Component のうち、指定した型である最初の Component を返します。
 
void addInto (World *world=nullptr)
 この WorldObject を指定した World へ追加します。省略した場合はデフォルトの World へ追加します。
 

Additional Inherited Members

- Protected Member Functions inherited from ln::WorldObject
virtual void onPreUpdate ()
 物理演算・衝突判定の前 (onCollisionStay() などはこの後)
 
virtual void onUpdate (float elapsedSeconds)
 フレーム更新
 
bool init ()
 WorldObject を作成します。
 

Detailed Description

環境ライトのオブジェクトです。

環境ライトは、アンビエントライティング、半球ライティング、ディレクショナルライトが統合された、 シーン全体のライティングをコントロールするためのオブジェクトです。

World はメインライトとして、1 つの EnvironmentLight がデフォルトで存在しています。


The documentation for this class was generated from the following file: