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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user