mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-30 08:40:39 +00:00
Cvar cleanup.
gl_smooth is now gl_dlight_smooth gl_smoothdlights was redundant, is now gone gl_flashblend is now gl_dlight_polyblend gl_lightmap added to enable/disable lightmap updates independently of use of gl_dlight_polyblend
This commit is contained in:
parent
20a885c174
commit
161973d75a
10 changed files with 97 additions and 63 deletions
|
@ -168,7 +168,7 @@ R_RenderDlights (void)
|
|||
int i;
|
||||
dlight_t *l;
|
||||
|
||||
if (!gl_flashblend->int_val)
|
||||
if (!gl_dlight_polyblend->int_val)
|
||||
return;
|
||||
|
||||
r_dlightframecount = r_framecount + 1; // because the count hasn't
|
||||
|
@ -176,8 +176,7 @@ R_RenderDlights (void)
|
|||
glDepthMask (GL_FALSE);
|
||||
glDisable (GL_TEXTURE_2D);
|
||||
glBlendFunc (GL_ONE, GL_ONE);
|
||||
if (gl_smoothdlights->int_val)
|
||||
glShadeModel (GL_SMOOTH);
|
||||
glShadeModel (GL_SMOOTH);
|
||||
|
||||
l = cl_dlights;
|
||||
for (i = 0; i < MAX_DLIGHTS; i++, l++) {
|
||||
|
@ -186,7 +185,7 @@ R_RenderDlights (void)
|
|||
R_RenderDlight (l);
|
||||
}
|
||||
|
||||
if (!gl_smooth->int_val)
|
||||
if (!gl_dlight_smooth->int_val)
|
||||
glShadeModel (GL_FLAT);
|
||||
glColor3ubv (lighthalf_v);
|
||||
glEnable (GL_TEXTURE_2D);
|
||||
|
@ -305,7 +304,7 @@ R_PushDlights (vec3_t entorigin)
|
|||
dlight_t *l;
|
||||
vec3_t lightorigin;
|
||||
|
||||
if (gl_flashblend->int_val)
|
||||
if (!gl_dlight_lightmap->int_val)
|
||||
return;
|
||||
|
||||
r_dlightframecount = r_framecount + 1; // because the count hasn't
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue