2Dpawn/depth of field/problem

I made a masked material on a plane

image

It works with the sky

image

Maybe you can give a specific example?