mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-02-08 15:22:07 +00:00
alpha doesn't do anything useful for flames, so remove it.
This commit is contained in:
parent
4f8cabf049
commit
5c0eb38c1b
2 changed files with 10 additions and 12 deletions
|
@ -260,7 +260,7 @@ typedef struct {
|
||||||
float size;
|
float size;
|
||||||
float die, decay; // duration settings
|
float die, decay; // duration settings
|
||||||
float minlight; // lighting threshold
|
float minlight; // lighting threshold
|
||||||
float _color[4]; // RGBA
|
float _color[3]; // RGBA
|
||||||
float *color;
|
float *color;
|
||||||
} fire_t;
|
} fire_t;
|
||||||
|
|
||||||
|
|
|
@ -657,8 +657,8 @@ void R_DrawParticles (void)
|
||||||
Nifty ball of fire GL effect. Kinda a meshing of the dlight and
|
Nifty ball of fire GL effect. Kinda a meshing of the dlight and
|
||||||
particle engine code.
|
particle engine code.
|
||||||
*/
|
*/
|
||||||
float r_firecolor_flame[4]={0.9,0.7,0.3,1.0};
|
float r_firecolor_flame[3]={0.9,0.7,0.3};
|
||||||
float r_firecolor_light[4]={0.9,0.7,0.3,0}; // alpha not used
|
float r_firecolor_light[3]={0.9,0.7,0.3};
|
||||||
|
|
||||||
void
|
void
|
||||||
R_AddFire (vec3_t start, vec3_t end, entity_t *ent)
|
R_AddFire (vec3_t start, vec3_t end, entity_t *ent)
|
||||||
|
@ -764,11 +764,11 @@ R_DrawFire (fire_t *f)
|
||||||
|
|
||||||
// we're not - draw it
|
// we're not - draw it
|
||||||
glBegin (GL_TRIANGLE_FAN);
|
glBegin (GL_TRIANGLE_FAN);
|
||||||
glColor4fv (f->color);
|
glColor3fv (f->color);
|
||||||
for (i=0 ; i<3 ; i++)
|
for (i=0 ; i<3 ; i++)
|
||||||
vec[i] = f->origin[i] - vpn[i] * radius;
|
vec[i] = f->origin[i] - vpn[i] * radius;
|
||||||
glVertex3fv (vec);
|
glVertex3fv (vec);
|
||||||
glColor4f (0.0, 0.0, 0.0, 0.0);
|
glColor3f (0.0, 0.0, 0.0);
|
||||||
|
|
||||||
// don't panic, this just draws a bubble...
|
// don't panic, this just draws a bubble...
|
||||||
for (i=16 ; i>=0 ; i--)
|
for (i=16 ; i>=0 ; i--)
|
||||||
|
@ -813,7 +813,6 @@ R_UpdateFires (void)
|
||||||
if (f->die < cl.time || !f->size)
|
if (f->die < cl.time || !f->size)
|
||||||
continue;
|
continue;
|
||||||
f->size += f->decay;
|
f->size += f->decay;
|
||||||
f->color[3] /= 2.0;
|
|
||||||
R_DrawFire (f);
|
R_DrawFire (f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -829,17 +828,16 @@ R_FireColor_f (void)
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (Cmd_Argc() == 1) {
|
if (Cmd_Argc() == 1) {
|
||||||
Con_Printf ("r_firecolor %f %f %f %f\n",
|
Con_Printf ("r_firecolor %f %f %f\n",
|
||||||
r_firecolor_flame[0],
|
r_firecolor_flame[0],
|
||||||
r_firecolor_flame[1],
|
r_firecolor_flame[1],
|
||||||
r_firecolor_flame[2],
|
r_firecolor_flame[2]);
|
||||||
r_firecolor_flame[3]);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (Cmd_Argc() == 6) {
|
if (Cmd_Argc() == 5 || Cmd_Argc() == 6) {
|
||||||
Con_Printf ("Warning: obsolete 5th parameter to r_firecolor ignored\n");
|
Con_Printf ("Warning: obsolete 4th and 5th parameters to r_firecolor ignored\n");
|
||||||
} else if (Cmd_Argc() !=5) {
|
} else if (Cmd_Argc() !=5) {
|
||||||
Con_Printf ("Usage r_firecolor R G B A\n");
|
Con_Printf ("Usage r_firecolor R G B\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
for (i=0; i<4; i++) {
|
for (i=0; i<4; i++) {
|
||||||
|
|
Loading…
Reference in a new issue