# How do I set a water mask material?

**URL:** <https://community.cesium.com/t/how-do-i-set-a-water-mask-material/22017>\
**Category:** Cesium for Unity\
**Created:** [January 19, 2023, 9:46pm UTC](https://community.cesium.com/t/how-do-i-set-a-water-mask-material/22017 "2023-01-19T21:46:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![petriw](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/petriw/32/12029_2.png) [@petriw](https://community.cesium.com/u/petriw)\
**Post date:** [January 19, 2023, 9:46pm UTC](https://community.cesium.com/t/how-do-i-set-a-water-mask-material/22017/1 "2023-01-19T21:46:46Z")

</div>

Hello!  
Is it possible to set up a water mask for ocean/lake rendering in the Cesium for Unity plugin?

Thank you!

---

<div class="post-metadata">

**Author:** ![Kevin\_Ring](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/kevin_ring/32/2003_2.png) [@Kevin\_Ring](https://community.cesium.com/u/Kevin_Ring)\
**Post date:** [January 20, 2023, 12:08am UTC](https://community.cesium.com/t/how-do-i-set-a-water-mask-material/22017/2 "2023-01-20T00:08:11Z")

</div>

Not yet. We will eventually bring something like Cesium for Unreal’s cartographic polygon system to Unity:

> **[Editing Tileset Materials](https://cesium.com/learn/unreal/unreal-edit-materials/#step-2-use-cartographic-polygons-with-a-material)**
>
> This tutorial explains how to use Cesium for Unreal to import models, both from Cesium ion and from one's owncomputer.

---

<div class="post-metadata">

**Author:** ![petriw](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/petriw/32/12029_2.png) [@petriw](https://community.cesium.com/u/petriw)\
**Post date:** [January 21, 2023, 4:48pm UTC](https://community.cesium.com/t/how-do-i-set-a-water-mask-material/22017/3 "2023-01-21T16:48:25Z")

</div>

Ok, thank you!

---

<div class="post-metadata">

**Author:** ![petriw](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/petriw/32/12029_2.png) [@petriw](https://community.cesium.com/u/petriw)\
**Post date:** [October 26, 2023, 6:56am UTC](https://community.cesium.com/t/how-do-i-set-a-water-mask-material/22017/4 "2023-10-26T06:56:22Z")

</div>

Hi, just wanted to follow up on this, are there any news or a roadmap for a water mask? Or do you have any good suggestions on how to render all the earths oceans using a specific material?

Thanks!

---

<div class="post-metadata">

**Author:** ![Kevin\_Ring](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/kevin_ring/32/2003_2.png) [@Kevin\_Ring](https://community.cesium.com/u/Kevin_Ring)\
**Post date:** [October 28, 2023, 10:31am UTC](https://community.cesium.com/t/how-do-i-set-a-water-mask-material/22017/5 "2023-10-28T10:31:24Z")

</div>

No news or roadmap commitment at the moment, but it did occur to me while re-reading this just now that there might be a way to do what you need even with current capabilities.

Basically, the idea is to create a GeoTIFF of your water mask, covering whatever area you need with whatever resolution is appropriate. Then upload it to Cesium ion to tile as imagery. Then, in Cesium for Unity, add a Cesium ion Raster Overlay and point it at the asset created from your GeoTIFF. At this point you should see the water mask drawn over the terrain.

The next step is to create a custom material that reads from the overlay texture and, instead of just blending it with the base color below, it instead renders a water effect for the pixels that the overlay indicates should be water.
