Problems with FXAA and Points

Hello, I am applying FXAA to my scene, but this causes my points not to be rounded, if I remove the FXAA effect, it will be rounded again

this the pen

with FXAA

without FXAA

I believe this has to do with how FXAA implementation calculated slope. If i remember the code correctly, it taps diagonal pixels only to compute gradient, this means that for pixels that have only 1 neighbour of the same value directly above - gradient will be calculated as though there is nothing above. This leads to exactly the kind of errors that you see.

This is just an educated guess though. I’m not an expert on FXAA.