Merge pull request #1994 from Flakebi/credits
Fix transparency of fallback characters
This commit is contained in:
commit
cb5670c843
@ -7,5 +7,5 @@ out vec4 FragColor;
|
||||
void main()
|
||||
{
|
||||
vec4 res = texture(tex, uv);
|
||||
FragColor = vec4(res.xyz * col.xyz, res.a);
|
||||
FragColor = res * col;
|
||||
}
|
||||
|
@ -668,9 +668,9 @@ void ScalableFont::doDraw(const core::stringw& text,
|
||||
if (fallback[n])
|
||||
{
|
||||
// TODO: don't hardcode colors?
|
||||
static video::SColor orange(color.getAlpha(), 255, 100, 0);
|
||||
static video::SColor yellow(color.getAlpha(), 255, 220, 15);
|
||||
video::SColor title_colors[] = {yellow, orange, orange, yellow};
|
||||
video::SColor orange(color.getAlpha(), 255, 100, 0);
|
||||
video::SColor yellow(color.getAlpha(), 255, 220, 15);
|
||||
video::SColor title_colors[] = {orange, yellow, orange, yellow};
|
||||
|
||||
if (charCollector != NULL)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user