diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-08-13 13:18:24 +1000 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-08-13 13:18:24 +1000 |
commit | 0c2f902238010903388b7d9a3af00979340eff2c (patch) | |
tree | b718d72d8761769ec4aefbfd74cbb2d695f89741 /src/render/shadows.c | |
parent | 43d915b2ceb3f5e439c09c772e9ebc7542c1a2bb (diff) |
add debug draw bbox and add topology to draw calls
Diffstat (limited to 'src/render/shadows.c')
-rw-r--r-- | src/render/shadows.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } } |