More lighting changes

This commit is contained in:
Dynamitos
2025-03-13 08:23:00 +01:00
parent 80f86ca95c
commit 51d759639e
11 changed files with 18 additions and 20 deletions
+2 -2
View File
@@ -4,8 +4,8 @@ using namespace Seele;
PointLightActor::PointLightActor(PScene scene) : Actor(scene) { attachComponent<Component::PointLight>(); }
PointLightActor::PointLightActor(PScene scene, Vector position, Vector color, float attenuation) : Actor(scene) {
attachComponent<Component::PointLight>(Vector4(position, 1), Vector4(color, attenuation));
PointLightActor::PointLightActor(PScene scene, Vector position, float intensity, Vector color, float attenuation) : Actor(scene) {
attachComponent<Component::PointLight>(Vector4(position, intensity), Vector4(color, attenuation));
}
PointLightActor::~PointLightActor() {}