From 0c2f902238010903388b7d9a3af00979340eff2c Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Tue, 13 Aug 2024 13:18:24 +1000 Subject: add debug draw bbox and add topology to draw calls --- src/render/shadows.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/render/shadows.c') diff --git a/src/render/shadows.c b/src/render/shadows.c index 18a5f7a..499ec02 100644 --- a/src/render/shadows.c +++ b/src/render/shadows.c @@ -167,7 +167,7 @@ void Shadow_DrawDebugQuad() { GPU_EncodeBindShaderData(enc, 0, quad_data); GPU_EncodeSetVertexBuffer(enc, shadow_storage->quad.vertex_buffer); GPU_EncodeSetIndexBuffer(enc, shadow_storage->quad.index_buffer); - GPU_EncodeDrawIndexed(enc, shadow_storage->quad.geometry.indices->len); + GPU_EncodeDrawIndexedTris(enc, shadow_storage->quad.geometry.indices->len); GPU_CmdEncoder_EndRender(enc); } @@ -201,7 +201,7 @@ void Shadow_ShadowmapExecute(Shadow_Storage* storage, Mat4 light_space_transform GPU_EncodeBindShaderData(&shadow_encoder, 0, shader_data); GPU_EncodeSetVertexBuffer(&shadow_encoder, mesh->vertex_buffer); GPU_EncodeSetIndexBuffer(&shadow_encoder, mesh->index_buffer); - GPU_EncodeDrawIndexed(&shadow_encoder, mesh->geometry.indices->len); + GPU_EncodeDrawIndexedTris(&shadow_encoder, mesh->geometry.indices->len); } } -- cgit v1.2.3-70-g09d2