https://vimeo.com/448212258 Gradient descent is an optimization algorithm used to minimize some function by iteratively moving in the direction of steepest descent as defined by the negative of the gradient.
I think you need to define a brush falloff here, which is then round. I think they are called brush dynamics in Photoshop. And you better google for further advice. It's eons that i have used it ...