/* ================ R_RenderScene ================ */ void R_RenderScene (void) { R_SetupScene (); //johnfitz -- this does everything that should be done once per call to RenderScene Fog_EnableGFog (); //johnfitz Sky_DrawSky (); //johnfitz R_DrawWorld (); S_ExtraUpdate (); // don't let sound get messed up if going slow R_DrawShadows (); //johnfitz -- render entity shadows R_DrawEntitiesOnList (false); //johnfitz -- false means this is the pass for nonalpha entities R_DrawTextureChains_Water (); //johnfitz -- drawn here since they might have transparency R_DrawEntitiesOnList (true); //johnfitz -- true means this is the pass for alpha entities R_RenderDlights (); //triangle fan dlights -- johnfitz -- moved after water R_DrawParticles (); Fog_DisableGFog (); //johnfitz R_DrawViewModel (); //johnfitz -- moved here from R_RenderView R_ShowTris (); //johnfitz R_ShowBoundingBoxes (); //johnfitz }
void R_RenderScene(void) { R_PushDlights(); Light_Animate(); r_framecount++; R_SetupScene(); Fog_EnableGFog(); //johnfitz Sky_Draw(); //johnfitz World_Draw(); S_ExtraUpdate(); // don't let sound get messed up if going slow R_DrawShadows(); R_DrawEntitiesOnList(false); World_DrawWater(); R_DrawEntitiesOnList(true); Particle_Draw(); Light_Draw(); Fog_DisableGFog(); R_DrawViewModel(); Video_ShowBoundingBoxes(); }