LearnOpenGL/src/Renderer/OutlinePass.h
Nigel 85263312cd Refactor
Refactoring the render engine to feel a little better organized. One major issue remains with the model not rendering at the time. Possibly this is solved after fixing the outline render pass
2023-02-03 16:33:02 +01:00

29 lines
605 B
C++

#pragma once
#include <glm/glm.hpp>
#include "RenderPass.h"
#include "FrameBuffer.h"
#include "RenderBuffer.h"
#include "../model.h"
#include "../Primitives/texture.h"
#include "../Primitives/camera.h"
class OutlinePass : RenderPass {
public:
void Render() override;
OutlinePass (Model& sceneObject, glm::mat4& model , glm::mat4& projection, Camera& camera) ;
~OutlinePass();
private:
FrameBuffer m_outlineFrameBuffer;
RenderBuffer m_outlineRenderBuffer;
Texture* m_depthTexture;
glm::mat4 model;
glm::mat4 projection;
Model& m_model;
Camera& camera;
};