From: eihrul Date: Fri, 5 Feb 2010 03:02:29 +0000 (+0000) Subject: invert cull face settings when drawing model shadowmaps X-Git-Tag: xonotic-v0.1.0preview~230^2~532 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e86a434cc877999ea363e54643564ee83e632b4a;p=xonotic%2Fdarkplaces.git invert cull face settings when drawing model shadowmaps git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9937 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/r_shadow.c b/r_shadow.c index ba6ffae3..1e6aa9a7 100644 --- a/r_shadow.c +++ b/r_shadow.c @@ -4377,6 +4377,10 @@ void R_DrawModelShadowMaps(void) GL_Scissor(viewport.x + r_shadow_shadowmapborder, viewport.y + r_shadow_shadowmapborder, viewport.width - 2*r_shadow_shadowmapborder, viewport.height - 2*r_shadow_shadowmapborder); CHECKGLERROR + r_refdef.view.cullface_front = r_shadow_cullface_back; + r_refdef.view.cullface_back = r_shadow_cullface_front; + GL_CullFace(r_refdef.view.cullface_back); + for (i = 0;i < r_refdef.scene.numentities;i++) { ent = r_refdef.scene.entities[i];