diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-07-14 23:55:18 +1000 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-07-14 23:55:18 +1000 |
commit | b9315f9cb625db09c3c41d8adf5230a67510bef7 (patch) | |
tree | 8e02010d4e29c82ec9310b02b7924f4c8456ef6f /src/new_render/shadows.h | |
parent | 529a603128d5e9dc4701322f44961f165e2183e1 (diff) |
wip shadows
Diffstat (limited to 'src/new_render/shadows.h')
-rw-r--r-- | src/new_render/shadows.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/new_render/shadows.h b/src/new_render/shadows.h index 82ded5c..81711de 100644 --- a/src/new_render/shadows.h +++ b/src/new_render/shadows.h @@ -6,9 +6,17 @@ #pragma once #include "defines.h" #include "ral.h" +#include "ral_impl.h" +#include "ral_types.h" #include "render_types.h" -typedef struct Shadow_Storage Shadow_Storage; +typedef struct Shadow_Storage { + GPU_Renderpass* shadowmap_pass; + GPU_Pipeline* pipeline; + bool debug_quad_enabled; + TextureHandle depth_texture; + // TODO: Some statistics tracking +} Shadow_Storage; typedef struct Camera Camera; typedef struct Mat4 Mat4; @@ -26,4 +34,5 @@ PUB Handle Shadow_GetShadowMapTexture(Shadow_Storage* storage); // --- Internal GPU_Renderpass* Shadow_RPassCreate(); // Creates the render pass GPU_Pipeline* Shadow_PipelineCreate(GPU_Renderpass* rpass); // Creates the pipeline -void Shadow_ShadowmapExecute(Shadow_Storage* storage, Mat4 light_space_transform, RenderEnt* entites, size_t entity_count); +void Shadow_ShadowmapExecute(Shadow_Storage* storage, Mat4 light_space_transform, RenderEnt* entities, size_t entity_count); +void Shadow_RenderDebugQuad(); |