Help adapting render target to pivot painter system

How can I adapt this render target system(https://www.raywenderlich.com/6314-c...nreal-engine-4) to my pivot painter 2 foliage system?

My foliage system(copied from content example and adpted to pivot painter 2):

https://forums.unrealengine.com/filedata/fetch?id=1859304&d=1612453657

What I need to do:

https://forums.unrealengine.com/filedata/fetch?id=1859305&d=1612453775

The shader that I create following the tutorial mencioned:

https://forums.unrealengine.com/filedata/fetch?id=1859306&d=1612453775

I need to adapt the render target to work in the pivot painter 2 shader because the render target works with multiples actors and I can create trails and other things with it.

Any Ideas?