Шейдеры на лампочки (#655)

* +light shader

* fixed

* toggling logic

* nice

* add option to settings

---------

Co-authored-by: CaYpeN1 <artem7771art@gmail.com>
This commit is contained in:
ThereDrD
2024-08-22 05:08:56 +03:00
committed by GitHub
parent d8a616fdea
commit aedaf4fc25
12 changed files with 303 additions and 31 deletions

View File

@@ -0,0 +1,27 @@
using Robust.Shared.GameStates;
using Robust.Shared.Utility;
using static Robust.Shared.Utility.SpriteSpecifier;
namespace Content.Shared._White.Lighting.Shaders;
/// <summary>
/// This is used for LightOverlay
/// </summary>
[RegisterComponent, NetworkedComponent]
public sealed partial class LightingOverlayComponent : Component
{
[DataField, ViewVariables(VVAccess.ReadWrite)]
public bool Enabled = true;
[DataField]
public SpriteSpecifier Sprite = new Texture(new ResPath("Effects/LightMasks/lightmask_lamp.png"));
[DataField]
public float Offsetx = -0.5f;
[DataField]
public float Offsety = 0.5f;
[DataField]
public Color? Color;
}