2023-03-09 17:39:57 +01:00
|
|
|
#include "DirectionalLightActor.h"
|
|
|
|
|
|
|
|
|
|
using namespace Seele;
|
|
|
|
|
|
|
|
|
|
DirectionalLightActor::DirectionalLightActor(PScene scene)
|
|
|
|
|
: Actor(scene)
|
|
|
|
|
{
|
|
|
|
|
attachComponent<Component::DirectionalLight>();
|
|
|
|
|
}
|
|
|
|
|
|
2024-02-01 17:07:51 +01:00
|
|
|
DirectionalLightActor::DirectionalLightActor(PScene scene, Vector color, Vector direction)
|
|
|
|
|
: Actor(scene)
|
|
|
|
|
{
|
|
|
|
|
attachComponent<Component::DirectionalLight>(Vector4(color, 0), Vector4(direction, 0));
|
|
|
|
|
}
|
|
|
|
|
|
2023-03-09 17:39:57 +01:00
|
|
|
DirectionalLightActor::~DirectionalLightActor()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Component::DirectionalLight& DirectionalLightActor::getDirectionalLightComponent()
|
|
|
|
|
{
|
|
|
|
|
return accessComponent<Component::DirectionalLight>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const Component::DirectionalLight& DirectionalLightActor::getDirectionalLightComponent() const
|
|
|
|
|
{
|
|
|
|
|
return accessComponent<Component::DirectionalLight>();
|
|
|
|
|
}
|