diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-11-23 19:35:34 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-11-23 19:35:34 +0000 |
commit | 35546b223856688ae08a64b0cf4f07c47e465ee7 (patch) | |
tree | 7c9c4636522eea4b789c54a455a3aeb30b3f7dfb /ui/gameMainWindow.cpp | |
parent | Add rendering support for point lights (diff) | |
download | ilt-35546b223856688ae08a64b0cf4f07c47e465ee7.tar.bz2 ilt-35546b223856688ae08a64b0cf4f07c47e465ee7.tar.xz ilt-35546b223856688ae08a64b0cf4f07c47e465ee7.zip |
Add light stage to renderable objects
Diffstat (limited to 'ui/gameMainWindow.cpp')
-rw-r--r-- | ui/gameMainWindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/gameMainWindow.cpp b/ui/gameMainWindow.cpp index 8e7e711..99bee48 100644 --- a/ui/gameMainWindow.cpp +++ b/ui/gameMainWindow.cpp @@ -61,6 +61,7 @@ GameMainWindow::environment(const SceneShader & s, const SceneRenderer & r) cons SceneRenderer::SceneProvider::environment(s, r); } void -GameMainWindow::lights(const SceneShader &) const +GameMainWindow::lights(const SceneShader & shader) const { + gameState->world.apply<Renderable>(&Renderable::lights, shader); } |