Removing limit for point lights

This commit is contained in:
Dynamitos
2024-02-01 17:08:13 +01:00
parent f9a89f6592
commit 36aec0fa06
8 changed files with 76 additions and 16 deletions
+6
View File
@@ -8,6 +8,12 @@ PointLightActor::PointLightActor(PScene 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()
{