Shadows - need to fix frame buffers

This commit is contained in:
Confideo-IOM
2026-07-28 00:26:04 +01:00
parent 3810f74e81
commit d48097c645
54 changed files with 623 additions and 100 deletions
@@ -2,6 +2,7 @@
#define HYDRASHADOWSOURCESYSTEM
#include "../../engine/HydraObject.h"
#include "../HydraSystem.h"
#include "../components/HydraShadowSourceComponent.h"
#include <GLMIncludes.h>
#include <queue>
@@ -10,8 +11,15 @@ class HydraShadowSourceSystem : public HydraSystem
public:
virtual void Initialise() override;
protected:
virtual void InitialiseComponent(HydraID entity_id) override;
void UpdateSystem(float delta_t_seconds) override {}
void InitialiseComponent(HydraID entity_id) override;
void UpdateSystem(float delta_t_seconds) override;
private:
void _UpdateDirectionalLight(HydraID entity_id);
void _InitialiseDirectionalLight(HydraID entity_id);
void _WriteToGPU(std::vector<HydraShadowSourceComponent> shadows);
HydraID m_shadow_buffer_id = INVALID_HYDRA_ID;
};
#endif /* HYDRASHADOWCASTERSYSTEM */