]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_screen.c
Remove shadowvolume rendering entirely, now shadowmaps are the only kind of shadow.
[xonotic/darkplaces.git] / cl_screen.c
index 71a74c08d1d0db1c1d1df7e41e5f5295cf48e1d2..9507b9096cbcd55ab44e8d47d1a9caea93c30179 100644 (file)
@@ -2058,11 +2058,8 @@ void R_ClearScreen(qboolean fogcolor)
                VectorCopy(r_refdef.fogcolor, clearcolor);
        }
        // clear depth is 1.0
                VectorCopy(r_refdef.fogcolor, clearcolor);
        }
        // clear depth is 1.0
-       // LordHavoc: we use a stencil centered around 128 instead of 0,
-       // to avoid clamping interfering with strange shadow volume
-       // drawing orders
        // clear the screen
        // clear the screen
-       GL_Clear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | (vid.stencil ? GL_STENCIL_BUFFER_BIT : 0), clearcolor, 1.0f, 128);
+       GL_Clear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | (vid.stencil ? GL_STENCIL_BUFFER_BIT : 0), clearcolor, 1.0f, 0);
 }
 
 int r_stereo_side;
 }
 
 int r_stereo_side;