mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-22 02:11:19 +00:00
[vulkan] Enable all lights when camera out of map
Without shadows, this is quite the cheat, but noclip is a cheat anyway, so probably not that big a deal. It does, however, make noclip usable for debugging.
This commit is contained in:
parent
6962c5948a
commit
5864406f4d
1 changed files with 6 additions and 2 deletions
|
@ -98,8 +98,12 @@ find_visible_lights (vulkan_ctx_t *ctx)
|
|||
//double start = Sys_DoubleTime ();
|
||||
int flags = 0;
|
||||
|
||||
Mod_LeafPVS_set (leaf, model, 0, lframe->pvs);
|
||||
expand_pvs (lframe->pvs, model);
|
||||
if (leaf == model->brush.leafs) {
|
||||
memset (lframe->pvs, 0xff, sizeof (lframe->pvs));
|
||||
} else {
|
||||
Mod_LeafPVS_set (leaf, model, 0, lframe->pvs);
|
||||
expand_pvs (lframe->pvs, model);
|
||||
}
|
||||
for (int i = 0; i < model->brush.numleafs; i++) {
|
||||
if (lframe->pvs[i / 8] & (1 << (i % 8))) {
|
||||
flags |= model->brush.leaf_flags[i + 1];
|
||||
|
|
Loading…
Reference in a new issue