is there a way to add foam around an island? I'm trying to create a shader that creates a sea foam around an island, is there a way to make it with just the shader?, i'm using an ocean modifier for the sea, and I want to make a factor in the mix shader that mixes by considering the intersecting line between the sea mesh and the islands.
I achieved the following result.  Apologies for the &quot;before&quot; shot, it's the only thing I have:

I have this &quot;gulf&quot; scene where my beaches are just planes sticking into the &quot;ocean&quot;.  That's a plane with a big Ocean modifier and a 20m Solidify modifier.

What I found was that in your ocean's node tree you can use an Ambient Occlusion node set to Inside and that appears to make it aware of intersections through the final mesh after all the modifiers are calculated.

I used various methods to add noise to this and used it as the factor of a Mix Shader for the surface material.