Question by
robinking · Jan 25, 2017 at 12:53 AM ·
c#graphicstexture2danti-aliasing
Can I anti-aliase a Texture2D I am creating in code with SetPixel?
I am making a puzzle game in which the player can create their own level shapes. I have code that creates a little block icon of that shape for the level select screen. (Where there's floor, add a dot. Where not, don't.) However, it comes out with jaggies. I don't want to turn anti-aliasing ON, as such - I would like to anti-aliase the icon as I'm generating it to smooth out the edges. Can anyone recommend a good tutorial/algorithm for this?
Hope I've explained that okay... thanks!
Comment