Improve text outlines

This commit is contained in:
Ravie 2024-01-08 21:52:14 +01:00
parent f3eaa10d7a
commit 2e44c02bbc

View file

@ -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));
}
}
}