I wounder if there is a possible way to scale a (player)sprite using a black and white value from a another sprite.
Imagine two layers with a sprite in each layer.
The layer at top is the player sprite and the bottom is the scale reference.
The scale reference has a gradient of black and white.
White being at front and black being in the back.
A depth pass.
I want the player sprite, when it's on top of this scale reference / depth pass to scale according to the color value it's on top of.
White=1= 100% in scale
Black=0= 0% in scale.
How do I set this up?