How to display sea water with plugin combine with cesium UE

Firstly, I am developing in a completely local environment with custom imagery tile and terrain tile server.
My terrain tile treat sea surface as no data with height of 0. So when i use a plugin to display sea water on the sea, it is the same level with the sea surface of cesium so it does not show up properly. I try to raise the sea water up but it flow in to the land area. And worse is, when i set some boat to float in the sea using lat, lon and height, height = 0 means the boat is under the sea.
I am currently stuck at a solution for this problem. I am thinking using a polygon to restrict the sea area but then the part where the sea meet land look strange.
Do you guys have any solutions for this?
Thanks!

Hello @Tu_Tran , welcome to the forum!

It sounds like what you might want to do is work with the watermask material. I’m unsure if your custom terrain has any data other than a height of 0 to represent the water areas, I would suggest generating a texture for areas of water and reading that texture value to determine how water shows up. You have the choice then to either replace those areas with a water material, or hide it altogether.

I hope that helps,

Ben