From b27c66cb2aaa897e4c18b3be3a0b121b6695e7e1 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 13 Nov 2022 15:44:09 +0000 Subject: Refactor shading output components SceneShader and Camera are part of SceneRenderer --- ui/sceneRenderer.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'ui/sceneRenderer.h') 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 #include @@ -9,7 +11,9 @@ class SceneRenderer { public: explicit SceneRenderer(glm::ivec2 size, GLuint output); - void render(std::function content) const; + void render(std::function content) const; + + Camera camera; private: GLuint output; @@ -24,4 +28,5 @@ private: DeferredLightProgram lighting; glVertexArray displayVAO; glBuffer displayVBO; + SceneShader shader; }; -- cgit v1.2.3