I want to add vegetation to my rocky semi-desert scene of Himalayan mountains, using geometry nodes. In that scenery, vegetation only grows in valleys, where water would sometimes flow. Note that by 'valleys' I mean:
- Slopes between hills.
- Flat surfaces in various heights, surrounded by mountains.
The OPPOSITE of the tree distribution in this picture:

How do I do that procedurally, meaning without weight painting the valleys by hand? I tried to find some vector math trick, but failed to do so. Please help!
A few more simplified examples:

In the image above, the bottom area will be chosen, since it's flat and has a higher surrounding.

In the image above, the crevice at the center will be chosen, but not the flat slopes that wrap it.

In the image above, the normals are shown. The left side will be chosen, and the right side will not. This is because the normals meet each other only on the left side. How do I achieve that?








