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.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/new_render/shadows.c') diff --git a/src/new_render/shadows.c b/src/new_render/shadows.c index 758a969..df25e05 100644 --- a/src/new_render/shadows.c +++ b/src/new_render/shadows.c @@ -209,6 +209,6 @@ void Shadow_ShadowmapExecute(Shadow_Storage* storage, Mat4 light_space_transform GPU_CmdEncoder_EndRender(&shadow_encoder); // end renderpass } -Handle Shadow_GetShadowMapTexture(Shadow_Storage* storage) { - return (Handle){ .raw = storage->depth_texture.raw }; +TextureHandle Shadow_GetShadowMapTexture(Shadow_Storage* storage) { + return storage->depth_texture; } -- cgit v1.2.3-70-g09d2