light: fix bouncedebug
This commit is contained in:
parent
afc43b0c55
commit
b6fb5ecca2
|
|
@ -1645,13 +1645,7 @@ LightFace_Bounce(const bsp2_t *bsp, const bsp2_dface_t *face, const lightsurf_t
|
||||||
VectorScale(indirect, dirtscale, indirect);
|
VectorScale(indirect, dirtscale, indirect);
|
||||||
|
|
||||||
lightsample_t *sample = &lightmap->samples[i];
|
lightsample_t *sample = &lightmap->samples[i];
|
||||||
if (bouncedebug) {
|
VectorAdd(sample->color, indirect, sample->color);
|
||||||
/* Overwrite each point with the indirect lighting for that sample... */
|
|
||||||
VectorCopy(indirect, sample->color);
|
|
||||||
} else {
|
|
||||||
VectorAdd(sample->color, indirect, sample->color);
|
|
||||||
}
|
|
||||||
sample->light = 255;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue