Client/Singularity: fix singularity using un-rotated viewport (#5117)
This commit is contained in:
@@ -15,6 +15,7 @@ namespace Content.Client.Singularity
|
||||
{
|
||||
[Dependency] private readonly IEntityManager _entityManager = default!;
|
||||
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
|
||||
[Dependency] private readonly IEyeManager _eyeManager = default!;
|
||||
|
||||
private const float MaxDist = 15.0f;
|
||||
|
||||
@@ -39,7 +40,7 @@ namespace Content.Client.Singularity
|
||||
{
|
||||
SingularityQuery(args.Viewport.Eye);
|
||||
|
||||
var viewportWB = args.WorldBounds;
|
||||
var viewportWB = _eyeManager.GetWorldViewport();
|
||||
// Has to be correctly handled because of the way intensity/falloff transform works so just do it.
|
||||
_shader?.SetParameter("renderScale", args.Viewport.RenderScale);
|
||||
foreach (SingularityShaderInstance instance in _singularities.Values)
|
||||
|
||||
Reference in New Issue
Block a user