mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 12:52:46 +00:00
enable the mirror code. no idea how well it works
This commit is contained in:
parent
1b74d305a8
commit
86d76ed39a
1 changed files with 24 additions and 21 deletions
|
@ -1059,8 +1059,28 @@ R_Clear (void)
|
||||||
glDepthRange (gldepthmin, gldepthmax);
|
glDepthRange (gldepthmin, gldepthmax);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
R_RenderScene (void)
|
||||||
|
{
|
||||||
|
R_SetupFrame ();
|
||||||
|
|
||||||
|
R_SetFrustum ();
|
||||||
|
|
||||||
|
R_SetupGL ();
|
||||||
|
|
||||||
|
R_PushDlights (vec3_origin);
|
||||||
|
|
||||||
|
R_MarkLeaves (); // done here so we know if we're in water
|
||||||
|
|
||||||
|
R_DrawWorld (); // adds static entities to the list
|
||||||
|
|
||||||
|
S_ExtraUpdate (); // don't let sound get messed up if going slow
|
||||||
|
|
||||||
|
R_DrawEntitiesOnList ();
|
||||||
|
|
||||||
|
R_RenderDlights ();
|
||||||
|
}
|
||||||
|
|
||||||
#if 0 // !!! FIXME, Zoid, mirror is disabled for now
|
|
||||||
void
|
void
|
||||||
R_Mirror (void)
|
R_Mirror (void)
|
||||||
{
|
{
|
||||||
|
@ -1101,7 +1121,7 @@ R_Mirror (void)
|
||||||
|
|
||||||
|
|
||||||
gldepthmin = 0;
|
gldepthmin = 0;
|
||||||
gldepthmax = 0.5;
|
gldepthmax = 1;//XXX 0.5;
|
||||||
glDepthRange (gldepthmin, gldepthmax);
|
glDepthRange (gldepthmin, gldepthmax);
|
||||||
glDepthFunc (GL_LEQUAL);
|
glDepthFunc (GL_LEQUAL);
|
||||||
|
|
||||||
|
@ -1123,7 +1143,6 @@ R_Mirror (void)
|
||||||
cl.worldmodel->textures[mirrortexturenum]->texturechain = NULL;
|
cl.worldmodel->textures[mirrortexturenum]->texturechain = NULL;
|
||||||
glColor4f (1, 1, 1, 1);
|
glColor4f (1, 1, 1, 1);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1147,23 +1166,7 @@ R_RenderView (void)
|
||||||
R_Clear ();
|
R_Clear ();
|
||||||
|
|
||||||
// render normal view
|
// render normal view
|
||||||
R_SetupFrame ();
|
R_RenderScene ();
|
||||||
|
|
||||||
R_SetFrustum ();
|
|
||||||
|
|
||||||
R_SetupGL ();
|
|
||||||
|
|
||||||
R_PushDlights (vec3_origin);
|
|
||||||
|
|
||||||
R_MarkLeaves (); // done here so we know if we're in water
|
|
||||||
|
|
||||||
R_DrawWorld (); // adds static entities to the list
|
|
||||||
|
|
||||||
S_ExtraUpdate (); // don't let sound get messed up if going slow
|
|
||||||
|
|
||||||
R_DrawEntitiesOnList ();
|
|
||||||
|
|
||||||
R_RenderDlights ();
|
|
||||||
|
|
||||||
R_DrawWaterSurfaces ();
|
R_DrawWaterSurfaces ();
|
||||||
|
|
||||||
|
@ -1174,5 +1177,5 @@ R_RenderView (void)
|
||||||
R_DrawViewModel ();
|
R_DrawViewModel ();
|
||||||
|
|
||||||
// render mirror view
|
// render mirror view
|
||||||
// R_Mirror ();
|
R_Mirror ();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue