]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Draw coronas with the same cscale whether gl_flashblend or not. Fixes brightness
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 5 Jun 2020 14:55:28 +0000 (14:55 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 5 Jun 2020 14:55:28 +0000 (14:55 +0000)
This should fix the ridiculously high brightness of coronas in pretty
much every game, when gl_flashblend is 1. This brings it closer to what
coronas looked like in 2014.

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

r_shadow.c

index 6adc4ccca16410ba8deda911c9a89730c538c83e..7426574a27095e829fcd212db93f909e6bacdfa7 100644 (file)
@@ -4663,10 +4663,7 @@ void R_Shadow_DrawCoronas(void)
                rtlight = r_refdef.scene.lights[i];
                if (rtlight->corona_visibility <= 0)
                        continue;
-               if (gl_flashblend.integer)
-                       R_DrawCorona(rtlight, rtlight->corona, rtlight->radius * rtlight->coronasizescale * 2.0f);
-               else
-                       R_DrawCorona(rtlight, rtlight->corona * r_coronas.value * 0.25f, rtlight->radius * rtlight->coronasizescale);
+               R_DrawCorona(rtlight, rtlight->corona * r_coronas.value * 0.25f, rtlight->radius * rtlight->coronasizescale);
        }
 }