mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-23 12:22:26 +00:00
renders: fix BSPX lightmaps
Look to:
* #16 R_RecursiveLightPoint returning total black color when
DECOUPLED_LM lump is present
* d740355147
This commit is contained in:
parent
51407d7139
commit
84f5fd2c97
1 changed files with 2 additions and 5 deletions
|
@ -111,7 +111,6 @@ R_RecursiveLightPoint(const msurface_t *surfaces, const mnode_t *node,
|
|||
const msurface_t *surf;
|
||||
int s, t, ds, dt;
|
||||
int i;
|
||||
mtexinfo_t *tex;
|
||||
byte *lightmap;
|
||||
int maps;
|
||||
int r;
|
||||
|
@ -162,10 +161,8 @@ R_RecursiveLightPoint(const msurface_t *surfaces, const mnode_t *node,
|
|||
continue; /* no lightmaps */
|
||||
}
|
||||
|
||||
tex = surf->texinfo;
|
||||
|
||||
s = DotProduct(mid, tex->vecs[0]) + tex->vecs[0][3];
|
||||
t = DotProduct(mid, tex->vecs[1]) + tex->vecs[1][3];
|
||||
s = DotProduct(mid, surf->lmvecs[0]) + surf->lmvecs[0][3];
|
||||
t = DotProduct(mid, surf->lmvecs[1]) + surf->lmvecs[1][3];
|
||||
|
||||
if ((s < surf->texturemins[0]) ||
|
||||
(t < surf->texturemins[1]))
|
||||
|
|
Loading…
Reference in a new issue