mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
[vulkan] Add light count display
Enabled by 'developer lighting'. It was good for confirming that the lights in ad_e1m1 (Doom Hangar 16) were actually being output (over 600 of them sometimes, ouch). Turned out to be the color scale ambiguity.
This commit is contained in:
parent
fb4bb22048
commit
c6d73eaf64
1 changed files with 7 additions and 0 deletions
|
@ -52,7 +52,9 @@
|
|||
#include "QF/va.h"
|
||||
|
||||
#include "QF/scene/scene.h"
|
||||
#include "QF/ui/view.h"
|
||||
|
||||
#include "QF/Vulkan/qf_draw.h"
|
||||
#include "QF/Vulkan/qf_lighting.h"
|
||||
#include "QF/Vulkan/qf_texture.h"
|
||||
#include "QF/Vulkan/barrier.h"
|
||||
|
@ -118,6 +120,11 @@ update_lights (vulkan_ctx_t *ctx)
|
|||
light->color[3] *= style_intensities[ldata->lightstyles.a[i]];
|
||||
}
|
||||
}
|
||||
if (developer & SYS_lighting) {
|
||||
Vulkan_Draw_String (vid.conview->xlen - 32, 8,
|
||||
va (ctx->va_ctx, "%3d", light_data->lightCount),
|
||||
ctx);
|
||||
}
|
||||
|
||||
qfv_bufferbarrier_t bb = bufferBarriers[qfv_BB_Unknown_to_TransferWrite];
|
||||
bb.barrier.buffer = lframe->light_buffer;
|
||||
|
|
Loading…
Reference in a new issue