(D3D11) sample the font atlas correctly.

This commit is contained in:
aliaspider 2018-01-25 01:58:17 +01:00
parent 0cd2310a6f
commit ccc9d36949

View File

@ -77,14 +77,10 @@ SRC(
float4 PSMain(PSInput input) : SV_TARGET
{
return input.color * t0.Sample(s0, input.texcoord);
// return float4(1.0f, 1.0f, 1.0f, 1.0f);
// return input.color;
};
float4 PSMainA8(PSInput input) : SV_TARGET
{
// return t0.Sample(s0, input.texcoord).a;
return input.color * t0.Sample(s0, input.texcoord).a;
// return input.color;
return float4(input.color.rgb , input.color.a * t0.Sample(s0, input.texcoord).a);
};