Skip to content

Commit

Permalink
Using LIGHTMAP_SIZE instead of a constant value
Browse files Browse the repository at this point in the history
  • Loading branch information
smallmodel committed Jul 19, 2023
1 parent eceef48 commit 58b8820
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/renderer/tr_surface.c
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ void RB_DrawTerrainTris(srfTerrain_t* p) {
tess.dlightBits |= dlightBits;
if (p->dlightMap[backEnd.smpFrame])
{
float lmScale = (1 / 128.0) / p->lmapStep;
float lmScale = (1.0 / LIGHTMAP_SIZE) / p->lmapStep;

for (i = p->iVertHead; i; i = g_pVert[i].iNext) {
assert(tess.numVertexes < SHADER_MAX_VERTEXES);
Expand Down

0 comments on commit 58b8820

Please sign in to comment.