Шейдеры на лампочки (#655)
* +light shader * fixed * toggling logic * nice * add option to settings --------- Co-authored-by: CaYpeN1 <artem7771art@gmail.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user