Lumino
ln::SpotLightComponent Class Reference

スポットライトのコンポーネントです。 More...

#include <LightComponent.hpp>

Inherits ln::VisualComponent.

Public Member Functions

void setEnabled (bool enabled)
 ライトの有効状態を設定します。false の場合、ライトはシーンに影響しません。(default: true)
 
bool isEnabled () const
 ライトの有効状態を取得します。
 
void setColor (const Color &color)
 ライトカラーを設定します。(default: White)
 
const ColorgetColor () const
 ライトカラーを取得します。
 
void setIntensity (float intensity)
 ライトの明るさを設定します。(default: 1.0)
 
float getIntensity () const
 ライトの明るさを取得します。
 
void setRange (float range)
 ライトの影響範囲を設定します。(default: 10.0)
 
float getRange () const
 ライトの影響範囲を取得します。
 
void setAttenuation (float attenuation)
 ライトの減衰を設定します。(default: 1.0)
 
float getAttenuation () const
 ライトの減衰を取得します。
 
void setAngle (float angle)
 スポットライトのコーン角度を設定します。(ラジアン単位、default: PI / 3)
 
float getAngle () const
 スポットライトのコーン角度を取得します。(ラジアン単位)
 
void setPenumbra (float penumbra)
 スポットライトのコーン角度に対する減衰率を設定します。(0..1, default: 0.1)
 
float getPenumbra () const
 スポットライトのコーン角度に対する減衰率を設定します。
 

Detailed Description

スポットライトのコンポーネントです。


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