How to make this mask effect

Thanks for help

i tried to use polygon with holes, but i found the polygon can’t cover whole globe, so anyway can make this happen?

Hello @lzio,

In order to accomplish something like this, you would have to write a custom globe material, which would involve writing a custom shader that adds a color to the globe everywhere outside the bounds of a polygonal region. You can see other custom globe materials in this sandcastle example: Cesium Sandcastle
And the Materials are defined here: cesium/Material.js at master · CesiumGS/cesium · GitHub

Best regards,

Cesium Staff

1 Like

Hi hannah,

That’s exactly what I want!

Thanks for the reply.