From aedaf4fc25a8e20409c155cd7d25e8e0823af92f Mon Sep 17 00:00:00 2001 From: ThereDrD <88589686+ThereDrD0@users.noreply.github.com> Date: Thu, 22 Aug 2024 05:08:56 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A8=D0=B5=D0=B9=D0=B4=D0=B5=D1=80=D1=8B=20?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=BB=D0=B0=D0=BC=D0=BF=D0=BE=D1=87=D0=BA=D0=B8?= =?UTF-8?q?=20(#655)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * +light shader * fixed * toggling logic * nice * add option to settings --------- Co-authored-by: CaYpeN1 --- .../Options/UI/Tabs/GraphicsTab.xaml | 1 + .../Options/UI/Tabs/GraphicsTab.xaml.cs | 23 +++-- .../Lighting/Shaders/LightingOverlay.cs | 95 ++++++++++++++++++ .../Lighting/Shaders/LightingOverlaySystem.cs | 25 +++++ .../Shaders/TogglingLightOverlaySystem.cs | 21 ++++ Content.Shared/DrawDepth/DrawDepth.cs | 8 +- .../Shaders/LightingOverlayComponent.cs | 27 +++++ Content.Shared/_White/WhiteCVars.cs | 7 ++ .../Structures/Lighting/base_lighting.yml | 37 +++---- .../Prototypes/_White/Shaders/shaders.yml | 5 + .../Effects/LightMasks/lightmask_lamp.png | Bin 0 -> 2556 bytes Resources/Textures/White/Shaders/light.swsl | 85 ++++++++++++++++ 12 files changed, 303 insertions(+), 31 deletions(-) create mode 100644 Content.Client/_White/Lighting/Shaders/LightingOverlay.cs create mode 100644 Content.Client/_White/Lighting/Shaders/LightingOverlaySystem.cs create mode 100644 Content.Client/_White/Lighting/Shaders/TogglingLightOverlaySystem.cs create mode 100644 Content.Shared/_White/Lighting/Shaders/LightingOverlayComponent.cs create mode 100644 Resources/Textures/Effects/LightMasks/lightmask_lamp.png create mode 100644 Resources/Textures/White/Shaders/light.swsl diff --git a/Content.Client/Options/UI/Tabs/GraphicsTab.xaml b/Content.Client/Options/UI/Tabs/GraphicsTab.xaml index 843a3f084a..11d35edd6a 100644 --- a/Content.Client/Options/UI/Tabs/GraphicsTab.xaml +++ b/Content.Client/Options/UI/Tabs/GraphicsTab.xaml @@ -41,6 +41,7 @@ +