]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
gl_flashblend: don't ignore r_coronas and don't double the corona size xonotic-v0.8.5
authorbones_was_here <bones_was_here@xa.org.au>
Mon, 27 Jun 2022 18:17:20 +0000 (04:17 +1000)
committerbones_was_here <bones_was_here@xa.org.au>
Mon, 27 Jun 2022 18:23:21 +0000 (04:23 +1000)
Fixes ubercoronas and matches the master branch.

Signed-off-by: bones_was_here <bones_was_here@xa.org.au>
r_shadow.c

index 44fd8f2935fa0e498771014f924f39d02ce44b95..97822b794efcf988384b3ccfd4d16e3ea4d4b0ca 100644 (file)
@@ -6154,10 +6154,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);
        }
 }