sky clipping optimization

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2516 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-09-11 06:09:27 +00:00
parent 424ce727ed
commit f4c4ff7556
4 changed files with 46 additions and 27 deletions
+1
View File
@@ -543,6 +543,7 @@ void drawreflection(float hf, int w, int h, float changelod, bool refract)
glColor3f(1, 1, 1);
glDisable(GL_FOG);
glDepthFunc(GL_GREATER);
if(!refracting) skyfloor = max(skyfloor, hf);
draw_envbox(fog*4/3);
glDepthFunc(GL_LESS);
glEnable(GL_FOG);