added ui rendering
This commit is contained in:
@@ -6,6 +6,10 @@ float4 _main(
|
||||
uint triid: SV_PrimitiveID,
|
||||
) : SV_TARGET
|
||||
{
|
||||
return float4(0.2,0.2,0.2,1);
|
||||
float dist = SampleTexture(font, (input.uv+glyphPos)*glyphSize).x;
|
||||
float smoothing = 0.2;
|
||||
float alpha = smoothstep(0.5-smoothing, 0.5+smoothing, dist);
|
||||
if (alpha<0.01) discard;
|
||||
return float4(color);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user