Water foam using distance fields

I might have to do that for the water. For my grass I use a sphere mask to add some offset near the character. This works great for short grass but not for larger foliage. For the larger plants I just convert them to physics assets when the player gets close enough to interact with them and then replace them with a static instance when they walk away. Its a bit expensive but looks so **** good.

I tryied to recreate this one but without the same results. Screenshot resolution is too low so I can’t see everything
I guess the connection between “Animated Rim” part and “RimColor” part is a “ADD” node but note sure at all. Not sure neither about the “RimTexture”, I guess it’s some vertical stripes.
Plus I guess the effect works only with some specific float values but it’s hard to read them.

It only works in DX 11 and above.