Custom Water Cesium

Is it possible to make water use a different material through a water mask or something similar?

Yes, but you’ll need to do it manually. First you need a Raster Overlay with the mask. If you have a GeoTIFF, for example, you can upload it to Cesium ion to tile as imagery, and then access it with a Cesium ion Raster Overlay. Next, you need a custom material that uses the mask value to select whether to render water or not. There’s no way to switch between two entirely separate materials (because both the water and non-water parts will be rendered in a single draw command), so you’ll need one material that chooses between the effects.

Doesn’t cesium world terrain have a default waterMask option in javascript though? Is it possible to use that in unity?

1 Like

It does, but we haven’t added support for it to Cesium for Unity, yet.

Is there any plan to add the support for the default water mask to Unity? Or maybe you could post some example how to do that manually with GeoTIFF?

It’s not currently a priority for the team at Cesium, but we would welcome a pull request if someone in the community implements it.

Is there any way to differentiate between water and land tiles (Google Earth) in Cesium for Unity? I see that Google Earth Pro has managed to do this but Google Earth Pro is still owned by Google.