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