# Shining Color for complex Polygons

**URL:** <https://community.cesium.com/t/shining-color-for-complex-polygons/3870>\
**Category:** CesiumJS\
**Created:** [March 16, 2016, 3:36pm UTC](https://community.cesium.com/t/shining-color-for-complex-polygons/3870 "2016-03-16T15:36:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![s.plaenitz](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@s.plaenitz](https://community.cesium.com/u/s.plaenitz)\
**Post date:** [March 16, 2016, 3:36pm UTC](https://community.cesium.com/t/shining-color-for-complex-polygons/3870/1 "2016-03-16T15:36:03Z")

</div>

Hello,

for polygons which are extruded the colors of all sides of the model are little bit different, which looking grat. It feels like shining. see picture  
[https://picload.org/image/wplwwcc/2d.png](https://picload.org/image/wplwwcc/2d.png)

if i have complex models, which polygons are describe one by one, then there is only one color with no shining effect. see picture  
[https://picload.org/image/wplwwcp/3d.png](https://picload.org/image/wplwwcp/3d.png)

so how i get this nice effect for all polygons?

i use 3dCityDB Viewer which use cesium for 3d Buildings.  
They use PolygonHierarchy to describe the buildings.  
[https://github.com/3dcitydb/3dcitydb-web-map](https://github.com/3dcitydb/3dcitydb-web-map)

i check the fabric material description but i don't get it working.

---

<div class="post-metadata">

**Author:** ![hannah](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/hannah/32/4509_2.png) [@hannah](https://community.cesium.com/u/hannah)\
**Post date:** [March 17, 2016, 2:35pm UTC](https://community.cesium.com/t/shining-color-for-complex-polygons/3870/2 "2016-03-17T14:35:04Z")

</div>

Hello,

How are you creating the models in the second picture? Are you still using polygons?

If so, Cesium doesn’t have official support for polygons that are not parallel to the earth surface. That could be why your lighting isn’t working.

Best,

Hannah

---

<div class="post-metadata">

**Author:** ![s.plaenitz](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@s.plaenitz](https://community.cesium.com/u/s.plaenitz)\
**Post date:** [March 17, 2016, 2:40pm UTC](https://community.cesium.com/t/shining-color-for-complex-polygons/3870/3 "2016-03-17T14:40:37Z")

</div>

Hello Hannah,

yes it think it use poygons for all surface which are described one by one.  
Whats about other models? How they are created? Are there some solutions?

Thanks

---

<div class="post-metadata">

**Author:** ![hannah](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/hannah/32/4509_2.png) [@hannah](https://community.cesium.com/u/hannah)\
**Post date:** [March 17, 2016, 3:52pm UTC](https://community.cesium.com/t/shining-color-for-complex-polygons/3870/4 "2016-03-17T15:52:40Z")

</div>

The best solution would be to represent your building models using glTF and use our new 3D tiles specification to load them. To learn more about 3D tiles, see this forum post: [https://groups.google.com/d/msg/cesium-dev/tCCooBxpZFU/7hxT\_E4pGgAJ](https://groups.google.com/d/msg/cesium-dev/tCCooBxpZFU/7hxT_E4pGgAJ)  
I can’t think of any workarounds using polygons other than to just use your first approach using extruded polygons.

Best,

Hannah
