# Globe Materials，How to specify an area？

**URL:** <https://community.cesium.com/t/globe-materials-how-to-specify-an-area/8224>\
**Category:** CesiumJS\
**Created:** [April 28, 2019, 2:30am UTC](https://community.cesium.com/t/globe-materials-how-to-specify-an-area/8224 "2019-04-28T02:30:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shuidiBeida](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/shuidibeida/32/13930_2.png) [@shuidiBeida](https://community.cesium.com/u/shuidiBeida)\
**Post date:** [April 28, 2019, 2:30am UTC](https://community.cesium.com/t/globe-materials-how-to-specify-an-area/8224/1 "2019-04-28T02:30:24Z")

</div>

This effect is very good：

> **[Cesium Sandcastle](https://sandcastle.cesium.com/index.html?src=Globe%20Materials.html)**
>
> The Cesium Sandcastle provides an interactive environment for testing Cesium code.

But I don't want it to participate globally, just in the designated area.How can I achieve it?

---

<div class="post-metadata">

**Author:** ![omar](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/omar/32/1999_2.png) [@omar](https://community.cesium.com/u/omar)\
**Post date:** [April 30, 2019, 3:22pm UTC](https://community.cesium.com/t/globe-materials-how-to-specify-an-area/8224/2 "2019-04-30T15:22:47Z")

</div>

There’s currently no easy way to do this (beyond editing the source fragment shader I think). Long term, once terrain is integrated into the 3D Tiles engine, this would be much easier if you can simply swap out the material for individual tiles.

For now, one workaround is to drape a polygon with a material over terrain, so you can get the material you want on exactly the area you define. This has a good example of it:

[https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/index.html?src=Clamp%20to%20Terrain.html](https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/index.html?src=Clamp%20to%20Terrain.html)

Try the “textured polygon” dropdown. This can have any custom material/appearance so you could create a similar computation with a bit more work.

---

<div class="post-metadata">

**Author:** ![Ruediger\_Brand](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/ruediger_brand/32/4004_2.png) [@Ruediger\_Brand](https://community.cesium.com/u/Ruediger_Brand)\
**Post date:** [April 12, 2022, 8:53am UTC](https://community.cesium.com/t/globe-materials-how-to-specify-an-area/8224/3 "2022-04-12T08:53:24Z")

</div>

Hi @omar,

I think this could also be a requirement from us -

Rüdiger
