From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Sun, 30 Apr 2023 01:44:01 +0000 (+1200) Subject: Make blurry vision darken the screen (#15926) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=818f23352e25b0cb65ac6f83807892e49f2be6a3;p=space-station-14.git Make blurry vision darken the screen (#15926) --- diff --git a/Content.Client/Eye/Blinding/BlurryVisionOverlay.cs b/Content.Client/Eye/Blinding/BlurryVisionOverlay.cs index 9ab90d16c9..34480544e9 100644 --- a/Content.Client/Eye/Blinding/BlurryVisionOverlay.cs +++ b/Content.Client/Eye/Blinding/BlurryVisionOverlay.cs @@ -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)); } } }