mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-18 14:08:19 +00:00
Improve text outlines
This commit is contained in:
parent
f3eaa10d7a
commit
2e44c02bbc
|
@ -465,8 +465,8 @@ private:
|
|||
if(GetX >= 0 && GetY >= 0 && GetX < w && GetY < h)
|
||||
{
|
||||
int Index = GetY * w + GetX;
|
||||
if(pIn[Index] > c)
|
||||
c = pIn[Index];
|
||||
float Mask = 1.f - clamp(length(vec2(sx, sy)) - OutlineCount, 0.f, 1.f);
|
||||
c = maximum(c, int(pIn[Index] * Mask));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue