I'm creating a mograph style setup when a mask moves up some geo which is used to affect the pscale of some geo scattered on the surface.
I'm trying to add a gradient to the mask I've created. So that the top of the mask is white/value of 1 and if gradually fades to black/0.
This is so the geo at the top has the highest pscale value and it slowly fades out.
The mask is animated and moves up the box so the gradient needs to follow the mask opposed to being over the whole geo.
I've thought of various ways to do it but they all seem very long winded... For instance, using a pop sim and the age attribute. Or combining two masks from two separate transfer sources.
Vex would be ideal but my understanding is very basic... finding the highest point in the mask on the Y axis and then measuring the distance of each subsequent point from it and using that value to multiply the mask to create the gradient.
Am I over complicating this?
Hope someone can help

