1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 00:03:11 +01:00

Add insetting and outlining to OpenGL TTF rendering

This commit is contained in:
Michael Bernardi
2023-12-03 03:15:46 +01:00
parent 6162ff9b00
commit f64706e1d9
10 changed files with 106 additions and 210 deletions

View File

@@ -4,6 +4,7 @@ const int MASK_REMAP_COUNT = 3;
const int FLAG_NO_TEXTURE = (1 << 2);
const int FLAG_MASK = (1 << 3);
const int FLAG_CROSS_HATCH = (1 << 4);
const int FLAG_TTF_TEXT = (1 << 5);
uniform usampler2DArray uTexture;
uniform usampler2D uPaletteTex;
@@ -41,7 +42,14 @@ void main()
{
discard;
}
texel += fColour;
if ((fFlags & FLAG_TTF_TEXT) == 0)
{
texel += fColour;
}
else
{
texel = fColour;
}
}
else
{