Misc bugfixes, including q3bsp-rtlights and bloom. Matrix use clarifications. Working towards skeletal glsl code.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3890 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2011-07-30 14:14:56 +00:00
parent 4dba0e3f28
commit 729d6181c2
70 changed files with 2062 additions and 1311 deletions

View file

@ -247,13 +247,6 @@ R_Init
*/
void GLR_ReInit (void)
{
#if 0
extern int gl_bumpmappingpossible;
if (gl_bumpmappingpossible)
GenerateNormalisationCubeMap();
else
normalisationCubeMap = 0;
#endif
netgraphtexture = GL_AllocNewTexture(0, 0);
R_InitBloomTextures();
@ -717,9 +710,8 @@ static void R_ImportRTLights(char *entlump)
VectorCopy(color, dl->color);
dl->flags = 0;
dl->flags |= LFLAG_REALTIMEMODE;
dl->flags |= (pflags & PFLAGS_CORONA)?LFLAG_ALLOW_FLASH:0;
dl->flags |= (pflags & PFLAGS_CORONA)?LFLAG_FLASHBLEND:0;
dl->flags |= (pflags & PFLAGS_NOSHADOW)?LFLAG_NOSHADOWS:0;
dl->flags |= LFLAG_ALLOW_PPL;
dl->style = style+1;
//FIXME: cubemaps if skin >= 16
@ -833,7 +825,7 @@ static void R_LoadRTLights(void)
dl->radius = radius;
VectorCopy(rgb, dl->color);
dl->die = 0;
dl->flags = flags|LFLAG_ALLOW_PPL;
dl->flags = flags;
/*if (*cubename)
{
dl->fov = 90;