mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-26 06:20:48 +00:00
gl1: Temporary revert back Lightmap size to fix lights
Fix1ab6214f
,660f5728
This commit is contained in:
parent
660f5728c1
commit
e17db97176
3 changed files with 5 additions and 5 deletions
|
@ -261,7 +261,7 @@ LM_BeginBuildingLightmaps(model_t *m)
|
|||
{
|
||||
static lightstyle_t lightstyles[MAX_LIGHTSTYLES];
|
||||
int i;
|
||||
unsigned dummy[128 * 128] = {0};
|
||||
unsigned dummy[BLOCK_WIDTH * BLOCK_HEIGHT] = {0};
|
||||
|
||||
memset(gl_lms.allocated, 0, sizeof(gl_lms.allocated));
|
||||
|
||||
|
|
|
@ -373,7 +373,7 @@ R_BlendLightmaps(const model_t *currentmodel)
|
|||
base += (surf->dlight_t * BLOCK_WIDTH +
|
||||
surf->dlight_s) * LIGHTMAP_BYTES;
|
||||
|
||||
RI_BuildLightMap(surf, base, BLOCK_WIDTH * LIGHTMAP_BYTES,
|
||||
R_BuildLightMap(surf, base, BLOCK_WIDTH * LIGHTMAP_BYTES,
|
||||
&r_newrefdef, r_modulate->value, r_framecount);
|
||||
}
|
||||
}
|
||||
|
@ -508,7 +508,7 @@ R_RenderBrushPoly(entity_t *currententity, msurface_t *fa)
|
|||
smax = (fa->extents[0] >> fa->lmshift) + 1;
|
||||
tmax = (fa->extents[1] >> fa->lmshift) + 1;
|
||||
|
||||
RI_BuildLightMap(fa, (void *)temp, smax * 4,
|
||||
R_BuildLightMap(fa, (void *)temp, smax * 4,
|
||||
&r_newrefdef, r_modulate->value, r_framecount);
|
||||
R_SetCacheState(fa, &r_newrefdef);
|
||||
|
||||
|
|
|
@ -274,8 +274,8 @@ typedef struct msurface_s
|
|||
enum {
|
||||
// width and height used to be 128, so now we should be able to get the same lightmap data
|
||||
// that used 32 lightmaps before into one, so 4 lightmaps should be enough
|
||||
BLOCK_WIDTH = 1024,
|
||||
BLOCK_HEIGHT = 512,
|
||||
BLOCK_WIDTH = 128,
|
||||
BLOCK_HEIGHT = 128,
|
||||
LIGHTMAP_BYTES = 4,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue