# Water Ocean Body: How to Add Foam to places where ocean collides with certain static meshes?

**URL:** <https://forums.unrealengine.com/t/water-ocean-body-how-to-add-foam-to-places-where-ocean-collides-with-certain-static-meshes/237129>\
**Category:** World Creation\
**Tags:** Water, unreal-engine\
**Created:** [June 24, 2021, 6:45am UTC](https://forums.unrealengine.com/t/water-ocean-body-how-to-add-foam-to-places-where-ocean-collides-with-certain-static-meshes/237129 "2021-06-24T06:45:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![GameplayProgger](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GameplayProgger](https://forums.unrealengine.com/u/GameplayProgger)\
**Post date:** [June 24, 2021, 6:45am UTC](https://forums.unrealengine.com/t/water-ocean-body-how-to-add-foam-to-places-where-ocean-collides-with-certain-static-meshes/237129/1 "2021-06-24T06:45:24Z")

</div>

How to Add Foam to places where ocean collides with for example cliffs?

---

<div class="post-metadata">

**Author:** ![GameplayProgger](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GameplayProgger](https://forums.unrealengine.com/u/GameplayProgger)\
**Post date:** [December 13, 2023, 9:43am UTC](https://forums.unrealengine.com/t/water-ocean-body-how-to-add-foam-to-places-where-ocean-collides-with-certain-static-meshes/237129/2 "2023-12-13T09:43:47Z")

</div>

2 years old bump

---

<div class="post-metadata">

**Author:** ![Utopia363](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Utopia363](https://forums.unrealengine.com/u/Utopia363)\
**Post date:** [June 21, 2024, 5:00pm UTC](https://forums.unrealengine.com/t/water-ocean-body-how-to-add-foam-to-places-where-ocean-collides-with-certain-static-meshes/237129/3 "2024-06-21T17:00:27Z")

</div>

Makes it 3 years, I really need my water body ocean to have foam.

---

<div class="post-metadata">

**Author:** ![AllenOo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AllenOo](https://forums.unrealengine.com/u/AllenOo)\
**Post date:** [December 18, 2025, 5:35am UTC](https://forums.unrealengine.com/t/water-ocean-body-how-to-add-foam-to-places-where-ocean-collides-with-certain-static-meshes/237129/4 "2025-12-18T05:35:33Z")

</div>

Hi, here is a easy way to calculate a foam mask in water material. U also can sample a foam Texture to the baseColor, then u will have a specific foam line

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/d/0/cd0c8e73ade269991aee000d0171161c4a0fc18e.jpeg)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/3/c/d3cb8e954ce849ca3d04f9e9dd36e08df808b5c3.jpeg)
