Skip to content

Commit

Permalink
render above
Browse files Browse the repository at this point in the history
  • Loading branch information
amylizzle committed Feb 20, 2025
1 parent de1ba9f commit e5c568b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions OpenDreamClient/Rendering/DreamViewOverlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -456,11 +456,6 @@ public void DrawIcon(DrawingHandleWorld handle, Vector2i renderTargetSize, Rende
var frame = iconMetaData.GetTexture(this, handle);
var pixelPosition = (iconMetaData.Position + positionOffset) * EyeManager.PixelsPerMeter;

if(iconMetaData.Particles is not null) {
handle.UseShader(GetBlendAndColorShader(iconMetaData, ignoreColor: true));
iconMetaData.Particles.Draw(handle, CalculateDrawingMatrix(iconMetaData.TransformToApply, pixelPosition, iconMetaData.Particles.RenderSize, renderTargetSize));
}

//if frame is null, this doesn't require a draw, so return NOP
if (frame == null)
return;
Expand All @@ -472,6 +467,11 @@ public void DrawIcon(DrawingHandleWorld handle, Vector2i renderTargetSize, Rende

handle.SetTransform(CalculateDrawingMatrix(iconMetaData.TransformToApply, pixelPosition, frame.Size, renderTargetSize));
handle.DrawTextureRect(frame, Box2.FromDimensions(Vector2.Zero, frame.Size));

if(iconMetaData.Particles is not null) {
handle.UseShader(GetBlendAndColorShader(iconMetaData, ignoreColor: true));
iconMetaData.Particles.Draw(handle, CalculateDrawingMatrix(iconMetaData.TransformToApply, pixelPosition, iconMetaData.Particles.RenderSize, renderTargetSize));
}
}

/// <summary>
Expand Down

0 comments on commit e5c568b

Please sign in to comment.