Light.
More...
#include <Light.hpp>
◆ Type
Light's type.
Enumerator |
---|
Point | A light placed infinitely far away. It affects everything in the scene.
|
Spot | A light with a punctual source. Affects every model in its radius. A light with conical area. Affects every model in its cone.
|
◆ ~Light()
virtual Light::~Light |
( |
| ) |
|
|
inlinevirtual |
◆ GetColor()
virtual Vec3 Light::GetColor |
( |
| ) |
const |
|
pure virtual |
- Returns
- Color in range 0-1.
◆ GetLightType()
virtual Type Light::GetLightType |
( |
| ) |
const |
|
pure virtual |
◆ SetCastShadow()
virtual void Light::SetCastShadow |
( |
bool |
enable, |
|
|
int |
shadowMapSize |
|
) |
| |
|
pure virtual |
- Parameters
-
enable | True, if the light casts shadow. Disabled by default. Shadows are currently only supported for directional lights. |
shadowMapSize | Shadow map's size in pixels. Width and height will be set to shadowMapSize. |
◆ SetColor()
virtual void Light::SetColor |
( |
const Vec3 & |
newColor | ) |
|
|
pure virtual |
- Parameters
-
newColor | Color. Values are in range 0-1. |
◆ SetConeAngle()
virtual void Light::SetConeAngle |
( |
float |
degrees | ) |
|
|
pure virtual |
- Parameters
-
degrees | Spot light's cone angle in degrees. |
◆ SetDirection()
virtual void Light::SetDirection |
( |
const Vec3 & |
newDirection | ) |
|
|
pure virtual |
- Parameters
-
newDirection | Normalized direction vector. Doesn't affect point lights. |
◆ SetPosition()
virtual void Light::SetPosition |
( |
const Vec3 & |
position | ) |
|
|
pure virtual |
◆ SetRadius()
virtual void Light::SetRadius |
( |
float |
radius | ) |
|
|
pure virtual |
- Parameters
-
radius | Radius. Not affected by scene graph. |
The documentation for this class was generated from the following file:
- /home/glaze/Documents/src/Aether3D_2013/Include/Light.hpp