Pre bindless

This commit is contained in:
Dynamitos committed 2025-05-07 16:08:12 +02:00
1 parent 3e36340b02
commit ed66635191
14 files changed
+120 -58

No files matched your search

+6 -2
View File
@@ -9,6 +9,10 @@ LightGather::~LightGather() {}
void LightGather::update() {
lightEnv->reset();
scene->view<Component::PointLight>([this](Component::PointLight& pointLight) { lightEnv->addPointLight(pointLight); });
scene->view<Component::DirectionalLight>([this](Component::DirectionalLight& dirLight) { lightEnv->addDirectionalLight(dirLight); });
scene->view<Component::PointLight, Component::Transform>(
[this](Component::PointLight& pointLight, Component::Transform& transform) { lightEnv->addPointLight(pointLight, transform); });
scene->view<Component::DirectionalLight, Component::Transform>(
[this](Component::DirectionalLight& dirLight, Component::Transform& transform) {
lightEnv->addDirectionalLight(dirLight, transform);
});
}