Tuesday, September 24, 2019

c# - How do I achieve supersampling / anti-aliasing in pixel shaders?


I am trying to write a couple pixel shaders to apply to images similar to Photoshop effects. For example this effect:



enter image description here


But I noticed there is aliasing in my resulting image (the above image is a sample from the linked website).


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 a higher resolution and then downsizing the image, but I need to solve this in a pixel shader capacity.




No comments:

Post a Comment

Simple past, Present perfect Past perfect

Can you tell me which form of the following sentences is the correct one please? Imagine two friends discussing the gym... I was in a good s...