From bda9501ed2f18c42c361499ec8f234f2e576ab7e Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sat, 20 Jul 2024 22:33:17 +1000 Subject: pass shadow texture through to pbr function --- src/new_render/shadows.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/new_render/shadows.h') diff --git a/src/new_render/shadows.h b/src/new_render/shadows.h index 82439d4..0482d10 100644 --- a/src/new_render/shadows.h +++ b/src/new_render/shadows.h @@ -9,6 +9,7 @@ #include "render_types.h" typedef struct Shadow_Storage { + bool enabled; GPU_Renderpass* shadowmap_pass; GPU_Pipeline* shadowmap_pipeline; TextureHandle depth_texture; @@ -37,7 +38,7 @@ PUB void Shadow_Run(RenderEnt* entities, size_t entity_count); PUB void Shadow_DrawDebugQuad(); /** @brief Get the shadow texture generated from shadowmap pass */ -PUB Handle Shadow_GetShadowMapTexture(Shadow_Storage* storage); +PUB TextureHandle Shadow_GetShadowMapTexture(Shadow_Storage* storage); // --- Internal GPU_Renderpass* Shadow_RPassCreate(); // Creates the render pass -- cgit v1.2.3-70-g09d2