Skip to content

Commit d6a4560

Browse files
authored
Merge branch 'master' into mob-sight
2 parents ed29795 + aaf8bd6 commit d6a4560

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

OpenDreamClient/Rendering/DreamViewOverlay.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,11 @@ public void DrawIcon(DrawingHandleWorld handle, Vector2i renderTargetSize, Rende
478478
handle.UseShader(GetBlendAndColorShader(iconMetaData, ignoreColor: true));
479479

480480
handle.SetTransform(CalculateDrawingMatrix(iconMetaData.TransformToApply, pixelPosition, frame.Size, renderTargetSize));
481-
handle.DrawTextureRect(frame, Box2.FromDimensions(Vector2.Zero, frame.Size), iconMetaData.ColorToApply);
481+
482+
Color colorToApply = iconMetaData.ColorToApply;
483+
colorToApply.A *= iconMetaData.AlphaToApply;
484+
485+
handle.DrawTextureRect(frame, Box2.FromDimensions(Vector2.Zero, frame.Size), colorToApply);
482486

483487
if (iconMetaData.Particles is not null) {
484488
handle.UseShader(GetBlendAndColorShader(iconMetaData, ignoreColor: true));

0 commit comments

Comments
 (0)