defer to showing a pixel than not.

DDX and DDY nodes in the material graph. Tell you how “big” the pixel is in mesh space.

Wrap this material on a sphere and you can see it get redder/greener the further away it is in the screen (so, the more of the object is covered by a specific pixel.)

More info: