Skip to content

Commit

Permalink
LIGHTMAPS: Fix aliasmodel lighting when using DECOUPLED_LM.
Browse files Browse the repository at this point in the history
  • Loading branch information
dsvensson committed Jan 25, 2025
1 parent 9adb697 commit 259a323
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/r_rlight.c
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,8 @@ static int RecursiveLightPoint(vec3_t color, mnode_t *node, const vec3_t start,
continue; // no lightmaps
}

ds = (int)((float)DotProduct(mid, surf->texinfo->vecs[0]) + surf->texinfo->vecs[0][3]);
dt = (int)((float)DotProduct(mid, surf->texinfo->vecs[1]) + surf->texinfo->vecs[1][3]);
ds = (int)((float)DotProduct(mid, surf->lmvecs[0]) + surf->lmvecs[0][3]);
dt = (int)((float)DotProduct(mid, surf->lmvecs[1]) + surf->lmvecs[1][3]);
if (ds < surf->texturemins[0] || dt < surf->texturemins[1]) {
continue;
}
Expand Down

0 comments on commit 259a323

Please sign in to comment.