diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-11-23 19:07:18 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-11-23 19:07:18 +0000 |
commit | 50d6f63fb28c82a35e68914fe941b685d26f6e89 (patch) | |
tree | 4a86d800d36341aedee7319307675cd1e6e5b784 /ui/sceneRenderer.cpp | |
parent | Support setting a viewPort uniform for those shaders which need it (diff) | |
download | ilt-50d6f63fb28c82a35e68914fe941b685d26f6e89.tar.bz2 ilt-50d6f63fb28c82a35e68914fe941b685d26f6e89.tar.xz ilt-50d6f63fb28c82a35e68914fe941b685d26f6e89.zip |
Add rendering support for point lights
Diffstat (limited to 'ui/sceneRenderer.cpp')
-rw-r--r-- | ui/sceneRenderer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/sceneRenderer.cpp b/ui/sceneRenderer.cpp index dc8e440..a97387e 100644 --- a/ui/sceneRenderer.cpp +++ b/ui/sceneRenderer.cpp @@ -79,6 +79,7 @@ SceneRenderer::render(const SceneProvider & scene) const glActiveTexture(GL_TEXTURE1); glBindTexture(GL_TEXTURE_2D, gNormal); scene.environment(shader, *this); + scene.lights(shader); // Lighting pass glBindFramebuffer(GL_FRAMEBUFFER, output); |