]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
do not use light scissoring on deferred lighting mode, it often yields
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 28 Mar 2011 07:16:34 +0000 (07:16 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 28 Mar 2011 07:16:34 +0000 (07:16 +0000)
strange artifacts on shadowless lights

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10973 d7cf8633-e32d-0410-b094-e92efae38249

r_shadow.c

index 062892e411f031ce02083e96d00bc4df0c28d094..bef3f2c339f97e8a3784380d5e697770b99a6554 100644 (file)
@@ -2973,7 +2973,7 @@ int bboxedges[12][2] =
 
 qboolean R_Shadow_ScissorForBBox(const float *mins, const float *maxs)
 {
-       if (!r_shadow_scissor.integer)
+       if (!r_shadow_scissor.integer || r_shadow_usingdeferredprepass)
        {
                r_shadow_lightscissor[0] = r_refdef.view.viewport.x;
                r_shadow_lightscissor[1] = r_refdef.view.viewport.y;