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:
Joseph Carter 2000-05-18 04:34:26 +00:00
parent 1ce7197bab
commit 0c93f0d1f2
5 changed files with 66 additions and 87 deletions

View file

@ -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);
}
}