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