Change brush tip shape

I am trying to get a soft squared brush to paint with. I tried using a png texture of such a square with the color connected to the opacity of the brush output, but it leaves a distance between each square depending on the size of the brush, so the squares aren’t “connected”. Basically, I want the airbrush from krita or photoshop, with a square tip, that’s all. Any tips?