mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-19 15:30:50 +00:00
[vulkan] Fix the over-bright dynamic lights
I doubt they're anywhere near right, but they're much better. At least they're not just solid blocks of white.
This commit is contained in:
parent
3132aa91a8
commit
ada4f37b9d
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ add_dynamic_lights (msurface_t *surf, float *block)
|
|||
}
|
||||
if (dist < minlight) {
|
||||
float *out = block + (t * smax + s) * LUXEL_SIZE;
|
||||
float l = (rad - dist) * 256;
|
||||
float l = (rad - dist);
|
||||
VectorMultAdd (out, l, light->color, out);
|
||||
out[3] = 1;
|
||||
out += LUXEL_SIZE;
|
||||
|
|
Loading…
Reference in a new issue