16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 04:19:19 +02:00

New Components/ Prepare to new scene loading system

This commit is contained in:
2026-06-16 21:33:29 +02:00
parent 2c599cb419
commit cb739365b4
15 changed files with 712 additions and 57 deletions

View File

@@ -44,7 +44,7 @@ void LightSystem::Update(ECWorld& world, float dt)
light_array::free_light_record rec;
rec.position = transform.Position;
rec.direction = glm::vec3(0.f, -1.f, 0.f); // default downward; rotation support can be added later
rec.direction = glm::normalize(glm::mat3_cast(transform.Rotation) * glm::vec3(0.f, -1.f, 0.f));
rec.color = spot.Color;
rec.intensity = spot.Intensity;
rec.range = spot.Range;