summaryrefslogtreecommitdiff
path: root/src/new_render/shadows.h
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-07-20 22:33:17 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-07-20 22:33:17 +1000
commitbda9501ed2f18c42c361499ec8f234f2e576ab7e (patch)
tree841146a0f17d168926dabdf536a6ab0f208bf13c /src/new_render/shadows.h
parentdc8952e6650aae6297915bf118e1f7b1259d235d (diff)
pass shadow texture through to pbr function
Diffstat (limited to 'src/new_render/shadows.h')
-rw-r--r--src/new_render/shadows.h3
1 files changed, 2 insertions, 1 deletions
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