mirror of
https://git.code.sf.net/p/quake/nuq
synced 2025-02-16 17:11:21 +00:00
at last, fullbrights work fully :)
This commit is contained in:
parent
5cf177294d
commit
d2708c4bc1
3 changed files with 5 additions and 4 deletions
|
@ -103,6 +103,8 @@ extern PROC glVertexPointerEXT;
|
|||
// 1 pixel per triangle
|
||||
#define MAX_LBM_HEIGHT 480
|
||||
|
||||
#define MAX_GLTEXTURES 2048
|
||||
|
||||
#define TILE_SIZE 128 // size of textures generated by R_GenTiledSurf
|
||||
|
||||
#define SKYSHIFT 7
|
||||
|
|
|
@ -122,7 +122,6 @@ typedef struct
|
|||
int crc; // not really a standard CRC, but it works
|
||||
} gltexture_t;
|
||||
|
||||
#define MAX_GLTEXTURES 1024
|
||||
static gltexture_t gltextures[MAX_GLTEXTURES];
|
||||
static int numgltextures = 0;
|
||||
|
||||
|
|
|
@ -80,7 +80,7 @@ typedef struct glRect_s {
|
|||
} glRect_t;
|
||||
|
||||
glpoly_t *lightmap_polys[MAX_LIGHTMAPS];
|
||||
glpoly_t *fullbright_polys[MAX_MAP_TEXTURES*2+1];
|
||||
glpoly_t *fullbright_polys[MAX_GLTEXTURES];
|
||||
qboolean lightmap_modified[MAX_LIGHTMAPS];
|
||||
glRect_t lightmap_rectchange[MAX_LIGHTMAPS];
|
||||
|
||||
|
@ -549,12 +549,12 @@ R_RenderFullbrights (void)
|
|||
glpoly_t *p;
|
||||
float *v;
|
||||
|
||||
//glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
|
||||
//glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE);
|
||||
glBlendFunc(GL_ONE, GL_ONE);
|
||||
glEnable (GL_BLEND);
|
||||
glColor3f(1,1,1);
|
||||
|
||||
for (i=1; i<MAX_MAP_TEXTURES*2+1; i++) {
|
||||
for (i=1; i<MAX_GLTEXTURES; i++) {
|
||||
if (!fullbright_polys[i])
|
||||
continue;
|
||||
glBindTexture (GL_TEXTURE_2D, i);
|
||||
|
|
Loading…
Reference in a new issue