![]() |
Aether3D Game Engine
|
Directional light illuminates the Scene from a given direction. Ideal for sunlight. More...
#include <DirectionalLightComponent.hpp>
Public Member Functions | |
class GameObject * | GetGameObject () const |
bool | CastsShadow () const |
void | SetCastShadow (bool enable, int shadowMapSize) |
std::string | GetSerialized () const |
Friends | |
class | GameObject |
class | Scene |
Directional light illuminates the Scene from a given direction. Ideal for sunlight.
|
inline |
|
inline |
std::string ae3d::DirectionalLightComponent::GetSerialized | ( | ) | const |
void ae3d::DirectionalLightComponent::SetCastShadow | ( | bool | enable, |
int | shadowMapSize | ||
) |
enable | If true, the light will cast a shadow. |
shadowMapSize | Shadow map size in pixels. If it's invalid, it falls back to 512. |