diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-11-13 15:44:09 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-11-14 23:46:14 +0000 |
commit | b27c66cb2aaa897e4c18b3be3a0b121b6695e7e1 (patch) | |
tree | dec28585a610de4618d392fe72fd4e4968c2f636 /ui/sceneRenderer.h | |
parent | Pass the output framebuffer id to scene renderer (diff) | |
download | ilt-b27c66cb2aaa897e4c18b3be3a0b121b6695e7e1.tar.bz2 ilt-b27c66cb2aaa897e4c18b3be3a0b121b6695e7e1.tar.xz ilt-b27c66cb2aaa897e4c18b3be3a0b121b6695e7e1.zip |
Refactor shading output components
SceneShader and Camera are part of SceneRenderer
Diffstat (limited to 'ui/sceneRenderer.h')
-rw-r--r-- | ui/sceneRenderer.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/sceneRenderer.h b/ui/sceneRenderer.h index 9352fc9..50feaa2 100644 --- a/ui/sceneRenderer.h +++ b/ui/sceneRenderer.h @@ -1,6 +1,8 @@ #pragma once +#include "gfx/gl/camera.h" #include "gfx/gl/program.h" +#include "gfx/gl/sceneShader.h" #include "lib/glArrays.h" #include <functional> #include <glm/fwd.hpp> @@ -9,7 +11,9 @@ class SceneRenderer { public: explicit SceneRenderer(glm::ivec2 size, GLuint output); - void render(std::function<void()> content) const; + void render(std::function<void(const SceneShader &)> content) const; + + Camera camera; private: GLuint output; @@ -24,4 +28,5 @@ private: DeferredLightProgram lighting; glVertexArray displayVAO; glBuffer displayVBO; + SceneShader shader; }; |