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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user