]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix sun shadows in ANGLE (#35757)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Mon, 10 Mar 2025 04:17:53 +0000 (15:17 +1100)
committerGitHub <noreply@github.com>
Mon, 10 Mar 2025 04:17:53 +0000 (15:17 +1100)
I think I fat-fingered a ctrl-Z on this at some point but the intermediate blur is necessary.

Content.Client/Light/SunShadowOverlay.cs

index de8b5ed49056a6ced98efa7fd34ac6ef8981e72d..38bb9276764a272e72d4ccf29a3f9565fb4fff8f 100644 (file)
@@ -134,7 +134,7 @@ public sealed class SunShadowOverlay : Overlay
                 Color.Transparent);
 
             // Slightly blur it just to avoid aliasing issues on the later viewport-wide blur.
-            _clyde.BlurRenderTarget(viewport, _target, _target, eye, 1f);
+            _clyde.BlurRenderTarget(viewport, _target, _blurTarget!, eye, 1f);
 
             // Draw stencil (see roofoverlay).
             args.WorldHandle.RenderInRenderTarget(viewport.LightRenderTarget,