Шейдеры на лампочки (#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,25 @@
|
||||
using Robust.Client.Graphics;
|
||||
using Robust.Shared.Prototypes;
|
||||
|
||||
namespace Content.Client._White.Lighting.Shaders;
|
||||
|
||||
public sealed class LightingOverlaySystem : EntitySystem
|
||||
{
|
||||
[Dependency] private readonly IOverlayManager _overlayManager = default!;
|
||||
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
|
||||
private LightingOverlay _lightingOverlay = default!;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
|
||||
_lightingOverlay = new LightingOverlay(EntityManager, _prototypeManager);
|
||||
_overlayManager.AddOverlay(_lightingOverlay);
|
||||
}
|
||||
|
||||
public override void Shutdown()
|
||||
{
|
||||
base.Shutdown();
|
||||
_overlayManager.RemoveOverlay(_lightingOverlay);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user