Take the tour ×  I am trying to write a couple pixel shaders to
apply to images similar to Photoshop effects. For example this
effect: http://www.geeks3d.com/20110428/shader-library-swirl-
post-processing-filter-in-glsl/  But I noticed there is aliasing
in the resulting image. What can I do to prevent this? I
couldn't find any article that explains how to solve this. I
read some techniques like rendering in high res and then
downsizing the image, but I need to solve this in a pixel shader
capacity. But if there is something that could help, I would
appreciate it.  share|improve this question To do supersampling,
determine 4 point coordinates in your pixel (e.g. lying in
regular grid), look for 4 color samples in your texture and then
compute an average. –  Ivan Kuckir Mar 22 at 14:09 Thanks I did
something like that but got a blurry result. Even in places
where there is little effect, i.e. the center of the image. Also
I am not sure how much of a bigger rectangle should I use around
the pixel. I used very smal