summaryrefslogtreecommitdiff
path: root/scene.cpp
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2025-02-09 18:50:58 +1100
committerquou <quou@disroot.org>2025-02-09 18:51:30 +1100
commit629dc808c595d65cda74a86975ebd780113f3431 (patch)
tree72d0c17600c6420fc2b834529d781dc43cc20317 /scene.cpp
parent1c86bb51da99df1950124d812eabcfe15af4f771 (diff)
Properly send lights from the CPU
Diffstat (limited to 'scene.cpp')
-rw-r--r--scene.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/scene.cpp b/scene.cpp
index 89f6f75..d162eda 100644
--- a/scene.cpp
+++ b/scene.cpp
@@ -5,6 +5,7 @@
void update_scene(
Model_Scene& ms,
Device* dev,
+ const Lighting& lighting,
const Camera& cam,
World& w
) {
@@ -13,7 +14,7 @@ void update_scene(
auto& m = v.get<C_Model>();
m.i->transform = t.mat;
}
- ms.update(cam, dev);
+ ms.update(cam, lighting, dev);
}
std::pair<Entity_Id, int> scene_pick(