2026-08-04 18:32:37 +01:00
|
|
|
#ifndef HYDRADIRECTIONALSHADOWSOURCECOMPONENT
|
|
|
|
|
#define HYDRADIRECTIONALSHADOWSOURCECOMPONENT
|
2026-07-25 16:40:34 +01:00
|
|
|
|
|
|
|
|
#include "../../engine/HydraEngine.h"
|
|
|
|
|
|
2026-08-04 18:32:37 +01:00
|
|
|
struct HydraDirectionalShadowSourceComponent
|
2026-07-25 16:40:34 +01:00
|
|
|
{
|
|
|
|
|
uint32_t entity_id;
|
|
|
|
|
uint32_t cascade_count;
|
|
|
|
|
uint32_t shadow_texture_id;
|
2026-07-28 19:02:45 +01:00
|
|
|
uint32_t frame_buffer_id;
|
2026-07-25 16:40:34 +01:00
|
|
|
float near_plane[8];
|
|
|
|
|
float far_plane[8];
|
2026-07-28 00:26:04 +01:00
|
|
|
glm::mat4 light_space_proj[6];
|
|
|
|
|
glm::mat4 light_space_view[6];
|
2026-07-25 16:40:34 +01:00
|
|
|
};
|
2026-07-28 00:26:04 +01:00
|
|
|
|
2026-07-25 16:40:34 +01:00
|
|
|
#endif /* HYDRACASTERCOMPONENT */
|