Implement optimized pixel-art antialiasing mode for non-integer world zoom.

This commit is contained in:
Paul Chote
2019-11-24 15:27:51 +00:00
committed by tovl
parent cd368b43df
commit 860117daf9
3 changed files with 47 additions and 1 deletions

View File

@@ -172,5 +172,10 @@ namespace OpenRA.Graphics
{
shader.SetBool("EnableDepthPreview", enabled);
}
public void SetAntialiasingPixelsPerTexel(float pxPerTx)
{
shader.SetVec("AntialiasPixelsPerTexel", pxPerTx);
}
}
}