mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-28 14:42:38 +00:00
Adds r_dynamic cvar for software rendering.
This commit is contained in:
parent
e3d3f3d73c
commit
e128c229dc
3 changed files with 16 additions and 7 deletions
|
@ -176,6 +176,7 @@ cvar_t *r_maxedges;
|
|||
cvar_t *r_numedges;
|
||||
cvar_t *r_aliastransbase;
|
||||
cvar_t *r_aliastransadj;
|
||||
cvar_t *r_dynamic;
|
||||
|
||||
extern cvar_t *scr_fov;
|
||||
|
||||
|
@ -264,6 +265,9 @@ void R_Init (void)
|
|||
r_aliastransbase = Cvar_Get ("r_aliastransbase","200",0,"None");
|
||||
r_aliastransadj = Cvar_Get ("r_aliastransadj","100",0,"None");
|
||||
|
||||
r_dynamic = Cvar_Get ("r_dynamic","1",0,
|
||||
"Toggles dynamic lighting: 1 - On 0 - Off");
|
||||
|
||||
#ifdef GLQUAKE
|
||||
gl_flashblend = Cvar_Get ("gl_flashblend","1",0,"None");
|
||||
#else
|
||||
|
@ -886,8 +890,9 @@ void R_DrawBEntitiesOnList (void)
|
|||
continue;
|
||||
}
|
||||
|
||||
R_MarkLights (&cl_dlights[k], 1<<k,
|
||||
clmodel->nodes + clmodel->hulls[0].firstclipnode);
|
||||
if (r_dynamic->value)
|
||||
R_MarkLights (&cl_dlights[k], 1<<k,
|
||||
clmodel->nodes + clmodel->hulls[0].firstclipnode);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -42,6 +42,7 @@
|
|||
#include <draw.h>
|
||||
#include <server.h>
|
||||
|
||||
extern cvar_t *r_dynamic;
|
||||
|
||||
/*
|
||||
===============
|
||||
|
@ -511,7 +512,8 @@ void R_SetupFrame (void)
|
|||
|
||||
R_CheckVariables ();
|
||||
|
||||
R_AnimateLight ();
|
||||
if (r_dynamic->value)
|
||||
R_AnimateLight ();
|
||||
|
||||
r_framecount++;
|
||||
|
||||
|
|
|
@ -87,6 +87,8 @@ cvar_t *gl_cshiftpercent;
|
|||
|
||||
cvar_t *v_contentblend;
|
||||
|
||||
extern cvar_t *r_dynamic;
|
||||
|
||||
float v_dmg_time, v_dmg_roll, v_dmg_pitch;
|
||||
|
||||
extern int in_forward, in_forward2, in_back;
|
||||
|
@ -1001,8 +1003,8 @@ cl.simangles[ROLL] = 0; // FIXME
|
|||
if (!cl.paused /* && (sv.maxclients > 1 || key_dest == key_game) */ )
|
||||
V_CalcRefdef ();
|
||||
}
|
||||
|
||||
R_PushDlights ();
|
||||
if (r_dynamic->value)
|
||||
R_PushDlights ();
|
||||
#if 0
|
||||
if (lcd_x->value) {
|
||||
/*
|
||||
|
@ -1019,8 +1021,8 @@ cl.simangles[ROLL] = 0; // FIXME
|
|||
R_RenderView ();
|
||||
|
||||
vid.buffer += vid.rowbytes>>1;
|
||||
|
||||
R_PushDlights ();
|
||||
if (r_dynamic->value)
|
||||
R_PushDlights ();
|
||||
|
||||
r_refdef.viewangles[YAW] += lcd_yaw->value*2;
|
||||
for (i=0 ; i<3 ; i++)
|
||||
|
|
Loading…
Reference in a new issue