]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Make blurry vision darken the screen (#15926)
authorLeon Friedrich <60421075+ElectroJr@users.noreply.github.com>
Sun, 30 Apr 2023 01:44:01 +0000 (13:44 +1200)
committerGitHub <noreply@github.com>
Sun, 30 Apr 2023 01:44:01 +0000 (11:44 +1000)
Content.Client/Eye/Blinding/BlurryVisionOverlay.cs

index 9ab90d16c99d0e6712d2292a31a81e1cdc0f2b61..34480544e94e8921386f0e76da011704de9aaed2 100644 (file)
@@ -55,11 +55,11 @@ namespace Content.Client.Eye.Blinding
             // Maybe gradually shrink the view-size?
             // Make the effect only apply to the edge of the viewport?
             // Actually make it blurry??
-            var opacity =  0.5f * _magnitude / BlurryVisionComponent.MaxMagnitude;
+            var opacity =  0.75f * _magnitude / BlurryVisionComponent.MaxMagnitude;
             var worldHandle = args.WorldHandle;
             var viewport = args.WorldBounds;
             worldHandle.SetTransform(Matrix3.Identity);
-            worldHandle.DrawRect(viewport, Color.White.WithAlpha(opacity));
+            worldHandle.DrawRect(viewport, Color.Black.WithAlpha(opacity));
         }
     }
 }