Cloud shadows (#298)

* not worked

* fix

* Update CP14CloudShadowsComponent.cs

* more params in component
This commit is contained in:
Ed
2024-07-03 17:33:38 +03:00
committed by GitHub
parent d54d27cda4
commit 7477b7c869
7 changed files with 128 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
using System.Numerics;
using Content.Client.Parallax;
using Content.Client.Weather;
using Content.Shared._CP14.DayCycle;
using Content.Shared._CP14.WorldEdge;
using Content.Shared.Salvage;
using Content.Shared.Weather;
@@ -73,12 +74,17 @@ public sealed partial class StencilOverlay : Overlay
DrawRestrictedRange(args, restrictedRangeComponent, invMatrix);
}
//CP14 World Edge overlay
//CP14 Overlays
if (_entManager.TryGetComponent<CP14CloudShadowsComponent>(mapUid, out var shadows))
{
DrawCloudShadows(args, shadows, invMatrix);
}
if (_entManager.TryGetComponent<CP14WorldEdgeComponent>(mapUid, out var worldEdge))
{
DrawWorldEdge(args, worldEdge, invMatrix);
}
//CP14 World Edge overlay end
//CP14 Overlays end
args.WorldHandle.UseShader(null);
args.WorldHandle.SetTransform(Matrix3x2.Identity);