diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-06-23 01:11:28 +1000 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-06-23 01:11:28 +1000 |
commit | 17f0db6607534c5bf1ba96153fabd3fdbb399ed9 (patch) | |
tree | c6531c6c688e9719817ac4c06127affc1313f5d3 /src/renderer/renderpasses.h | |
parent | d20356fd426ccea1866fbda798864a378303bbbd (diff) |
wip: debug quad shader
Diffstat (limited to 'src/renderer/renderpasses.h')
-rw-r--r-- | src/renderer/renderpasses.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/renderer/renderpasses.h b/src/renderer/renderpasses.h index 3ee3b6e..5a5ffee 100644 --- a/src/renderer/renderpasses.h +++ b/src/renderer/renderpasses.h @@ -10,6 +10,7 @@ */ #pragma once #include "ral.h" +#include "ral_types.h" #include "render_types.h" // Shadowmap pass @@ -22,13 +23,31 @@ gpu_renderpass* renderpass_blinn_phong_create(); void renderpass_blinn_phong_execute(gpu_renderpass* pass, render_entity* entities, size_t entity_count); + typedef struct ren_shadowmaps { u32 width; u32 height; gpu_renderpass* rpass; gpu_pipeline* static_pipeline; + gpu_pipeline* debug_quad; + texture_handle depth_tex; } ren_shadowmaps; +typedef struct model_uniform { + mat4 model; +} model_uniform; +typedef struct lightspace_tf_uniform { + mat4 lightSpaceMatrix; +} lightspace_tf_uniform; + +typedef struct debug_quad_uniform { + texture_handle depthMap; +} debug_quad_uniform; + +shader_data_layout model_uniform_layout(void* data); +shader_data_layout lightspace_uniform_layout(void* data); +shader_data_layout debug_quad_layout(void* data); + void ren_shadowmaps_init(ren_shadowmaps* storage); gpu_renderpass* shadowmaps_renderpass_create(); |