Commit 024cf00
committed
Fix lighting for movable BSP entities
BSP model surfaces were wrongly flagged with the `bspSurface` bit which
only works for fixed-location world surfaces. This flag was causing the
code to skip setting up the model matrix for the lightMapping shader,
meaning normals and dynamic light positions were not correct.
So stop flagging BSP models as `bspSurface`. Also skip the other things
in R_AddWorldSurface, besides R_AddDrawSurf, because they are useless or
redundant.
This means that BSP entities (e.g. doors) will now generally be lit with
grid lighting rather than lightmaps.
Fixes Unvanquished/Unvanquished#3474.1 parent 1672200 commit 024cf00
2 files changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1489 | 1489 | | |
1490 | 1490 | | |
1491 | 1491 | | |
1492 | | - | |
| 1492 | + | |
1493 | 1493 | | |
1494 | 1494 | | |
1495 | 1495 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
| 197 | + | |
| 198 | + | |
198 | 199 | | |
199 | 200 | | |
200 | 201 | | |
| |||
0 commit comments