Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Commit 3114029

Browse files
authored
Merge pull request #379 from UnityTech/text_shadow
Fix text shadow on emoji.
2 parents 7044769 + 9ba87f1 commit 3114029

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Runtime/ui/renderer/cmdbufferCanvas/rendering/canvas_impl.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1055,8 +1055,9 @@ void _drawTextBlob(TextBlob? textBlob, uiOffset offset, uiPaint paint) {
10551055
}
10561056

10571057
if (paint.maskFilter != null && paint.maskFilter.Value.sigma != 0) {
1058-
this._drawWithMaskFilter(textBlobBounds, paint, paint.maskFilter.Value, null, null, false, 0, 0, tex,
1059-
textBlobBounds, mesh, notEmoji, this.___drawTextDrawMeshCallback);
1058+
this._drawWithMaskFilter(textBlobBounds, paint, paint.maskFilter.Value, null, null, false, 0, 0,
1059+
notEmoji ? tex : EmojiUtils.image.texture,
1060+
textBlobBounds, mesh, true, this.___drawTextDrawMeshCallback);
10601061
return;
10611062
}
10621063

0 commit comments

Comments
 (0)