From: havoc Date: Sun, 11 Sep 2016 23:06:22 +0000 (+0000) Subject: Enable shadowmapping on transparent surfaces. X-Git-Tag: xonotic-v0.8.5~88^2~40 X-Git-Url: http://git.xonotic.org/?a=commitdiff_plain;h=3356797550466b320ca897b33e6972ac6d15cefc;p=xonotic%2Fdarkplaces.git Enable shadowmapping on transparent surfaces. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12282 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_rsurf.c b/gl_rsurf.c index c86bf2f6..93dd027f 100644 --- a/gl_rsurf.c +++ b/gl_rsurf.c @@ -1449,7 +1449,7 @@ static void R_Q1BSP_DrawLight_TransparentCallback(const entity_render_t *ent, co // note: in practice this never actually receives batches R_Shadow_RenderMode_Begin(); R_Shadow_RenderMode_ActiveLight(rtlight); - R_Shadow_RenderMode_Lighting(false, true, false, (ent->flags & RENDER_NOSELFSHADOW) != 0); + R_Shadow_RenderMode_Lighting(false, true, rtlight->shadowmapatlassidesize != 0, (ent->flags & RENDER_NOSELFSHADOW) != 0); R_Shadow_SetupEntityLight(ent); for (i = 0;i < numsurfaces;i = j) {