[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:
Bill Currie 2021-01-24 00:26:38 +09:00
parent 3132aa91a8
commit ada4f37b9d

View file

@ -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;