mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-06-01 09:32:36 +00:00
Skybox support - just add env/*.tga!
Bring your own Cmd_LoadSky_f (), I haven't done that or the server code yet.
This commit is contained in:
parent
1ce7197bab
commit
0c93f0d1f2
5 changed files with 66 additions and 87 deletions
|
@ -1412,9 +1412,8 @@ void R_DrawWorld (void)
|
|||
|
||||
glColor3f (1,1,1);
|
||||
memset (lightmap_polys, 0, sizeof(lightmap_polys));
|
||||
#ifdef QUAKE2
|
||||
// Be sure to clear the skybox --KB
|
||||
R_ClearSkyBox ();
|
||||
#endif
|
||||
|
||||
R_RecursiveWorldNode (cl.worldmodel->nodes);
|
||||
|
||||
|
@ -1422,9 +1421,8 @@ void R_DrawWorld (void)
|
|||
|
||||
R_BlendLightmaps ();
|
||||
|
||||
#ifdef QUAKE2
|
||||
// Draw the skybox --KB
|
||||
R_DrawSkyBox ();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
@ -1738,10 +1736,10 @@ void GL_BuildLightmaps (void)
|
|||
GL_CreateSurfaceLightmap (m->surfaces + i);
|
||||
if ( m->surfaces[i].flags & SURF_DRAWTURB )
|
||||
continue;
|
||||
#ifndef QUAKE2
|
||||
//#ifndef QUAKE2
|
||||
if ( m->surfaces[i].flags & SURF_DRAWSKY )
|
||||
continue;
|
||||
#endif
|
||||
//#endif
|
||||
BuildSurfaceDisplayList (m->surfaces + i);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue