text-freetype2: Use GS_A8 type glyphs texture

Since glyphs are rendered by FT as 8-bit gray levels bitmaps, it would
be a waste of memory to cache glyphs in a RGBA texture.
This commit is contained in:
hwdro
2016-03-10 15:06:35 +02:00
parent ddc8e6fde2
commit e0592beab3
4 changed files with 7 additions and 9 deletions

View File

@@ -27,7 +27,8 @@ VertInOut VSDefault(VertInOut vert_in)
float4 PSDrawBare(VertInOut vert_in) : TARGET
{
return image.Sample(def_sampler, vert_in.uv) * vert_in.col;
vert_in.col.a *= image.Sample(def_sampler, vert_in.uv).a;
return vert_in.col;
}
float4 PSDrawMatrix(VertInOut vert_in) : TARGET