[UE4.23][HLSL] Need help converting ray-marched clouds into something that can be used in a particle system

Hi everyone,

I followed the Ryan Brucks Raymarched clouds blog post:

and the clouds look great.

But I need to get them in a particle system so I can control their movement and some of their parameters in the game world.

I think the code I need to change is: localcampos = (localcampos / (GetPrimitiveData(Parameters.PrimitiveId).LocalObjectBoundsMax.x * 2)) + 0.5;

My guess is that this is getting the bounds of the particle system not the particle but I don’t know what I need to replace that with to get it to read the mesh particles. If anyone has any ideas or need the full code to know what’s happening let me know.

Thanks,