diff options
author | quou <quou@disroot.org> | 2025-02-09 18:50:58 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2025-02-09 18:51:30 +1100 |
commit | 629dc808c595d65cda74a86975ebd780113f3431 (patch) | |
tree | 72d0c17600c6420fc2b834529d781dc43cc20317 /scene.cpp | |
parent | 1c86bb51da99df1950124d812eabcfe15af4f771 (diff) |
Properly send lights from the CPU
Diffstat (limited to 'scene.cpp')
-rw-r--r-- | scene.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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( |