I've some text geometry that I want to gradually fade out based on some geometry (two boxes in this case).
Any suggestions on how to achieve such a effect?
EDIT: Here is a blend file based on Jakemoyo answer:
Geometry Nodes tree that looks like this.
Then you just access that value with a shader tree that looks like this.
Result: