34 lines
720 B
C++
34 lines
720 B
C++
#ifndef HYDRASHADOWPIPELINE
|
|
#define HYDRASHADOWPIPELINE
|
|
|
|
#include "../engine/HydraObject.h"
|
|
#include "../windowmanager/HydraRenderSettings.h"
|
|
#include "HydraPipeline.h"
|
|
#include "HydraRenderStage.h"
|
|
|
|
#include <vector>
|
|
|
|
class HydraRenderStage;
|
|
|
|
class HydraShadowPipeline : public HydraPipeline
|
|
{
|
|
public:
|
|
void Initialise() override;
|
|
void Shutdown() override;
|
|
void Render() override;
|
|
private:
|
|
void _CreateUBOs();
|
|
|
|
void _CreateRenderStage();
|
|
void _UpdateUBO(uint32_t shadow_idx);
|
|
void _BindFrameBufferAttachments(HydraID entity_id);
|
|
HydraID m_per_frame_ubo = INVALID_HYDRA_ID;
|
|
|
|
|
|
};
|
|
|
|
#endif /* HYDRADEFERREDPIPELINE */
|
|
|
|
|
|
|