mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-24 20:51:35 +00:00
[vulkan] Fix broken dynamic light shadows
They weren't rendering properly at all due to the matrix updates getting overwritten by the light data (I'd forgotten to advance the packet data pointer).
This commit is contained in:
parent
8e7c21e36a
commit
fa6598c389
1 changed files with 1 additions and 0 deletions
|
@ -723,6 +723,7 @@ lighting_update_lights (const exprval_t **params, exprval_t *result,
|
|||
.dstOffset = sizeof (mat4f_t[lctx->dynamic_matrix_base]),
|
||||
.length = sizeof (mat4f_t[ndlight * 6]),
|
||||
};
|
||||
packet_data += mat_scatter.length;
|
||||
for (int i = 0; i < ndlight; i++) {
|
||||
cube_mats (&mats[i * 6], dynamic_lights[i]->origin);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue