Unity 2022 hdrp water foam generator

How is it possible in unity 2022.3?
I can’t go with unity6, so any way to working out this?

I tried a particle system with a decal layer and I put the water surface on the same decal layer like the particle system. Not worked.

Also tried to add a decal to the water, not worked.

After this I just added a spotlight with a cookie/reflector, and that is worked.

So how can I project an animated foam on the surface of the water in unity 2022?

Thanks

IIRC, in 2022 LTS, You should be able to do this with a simple decal projector (it will only project in grayscale), no color information.

For this to work, you need to check “decal on transparent” on your decal projector since water is considered a transparent in HDRP.

1 Like

Vfx graph can do this on the water surface or not? https://youtu.be/nqhkB8CG8pc?si=KTz3boAoMZAAAJcU

I tried this and yeah it is working. Unfortunatelly I have a night scene so I can’t see anything from that decal.

It would be good if I can colorize it.

Any other ways?

Emissive decal doesn’t work on the water surface if that’s what you are asking.
But even with the foam generators in Unity 6, if there’s little lighting, foam will be difficult to see as well. It’s a lighting issue not a rendering issue I believe.

Ok I found a better way in unity 2022, so basically I have a particle system on a custom layer. And a camera culling mask with this layer. And I use a spotlight with a reflector on with this renderTexture as the cookie. And voila, it is now animated and can colorize and it is only on the water layer (layer2)

1 Like

Hi
Can you add me on Discord? I want to ask something.
My Discord: v0xel