# glTF model's shadow

**URL:** <https://community.cesium.com/t/gltf-models-shadow/5286>\
**Category:** CesiumJS\
**Created:** [March 15, 2017, 3:48am UTC](https://community.cesium.com/t/gltf-models-shadow/5286 "2017-03-15T03:48:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sunflower](https://avatars.discourse-cdn.com/v4/letter/s/a5b964/32.png) [@Sunflower](https://community.cesium.com/u/Sunflower)\
**Post date:** [March 15, 2017, 3:48am UTC](https://community.cesium.com/t/gltf-models-shadow/5286/1 "2017-03-15T03:48:05Z")

</div>

Hello,

I have a question of glTF model.

On this perspective,model is normal

[![](https://lh3.googleusercontent.com/-meBvfxHloVc/WMi1EVQvMDI/AAAAAAAAAAg/YZ2bGwMYEbAh7SN6jYOaLVrmn5cCwHxGQCL4C/s400/QQ%25E5%259B%25BE%25E7%2589%258720170315111624.jpg)](https://lh3.googleusercontent.com/-meBvfxHloVc/WMi1EVQvMDI/AAAAAAAAAAg/YZ2bGwMYEbAh7SN6jYOaLVrmn5cCwHxGQCL4C/s1600/QQ%25E5%259B%25BE%25E7%2589%258720170315111624.jpg)

But when I change perspective,Some places will darken,I want to remove this effect,what should I do?

[![](https://lh3.googleusercontent.com/-oYKiEMU0gjw/WMi2IBXTWuI/AAAAAAAAAAc/SRi5p2YeuVwCfttCTruF1aMGCurCNFWlACL4C/s400/QQ%25E5%259B%25BE%25E7%2589%258720170315111628.jpg)](https://lh3.googleusercontent.com/-oYKiEMU0gjw/WMi2IBXTWuI/AAAAAAAAAAc/SRi5p2YeuVwCfttCTruF1aMGCurCNFWlACL4C/s1600/QQ%25E5%259B%25BE%25E7%2589%258720170315111628.jpg)

Thanks,

Zhang

---

<div class="post-metadata">

**Author:** ![sean\_lilley](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/sean_lilley/32/2083_2.png) [@sean\_lilley](https://community.cesium.com/u/sean_lilley)\
**Post date:** [March 15, 2017, 11:21pm UTC](https://community.cesium.com/t/gltf-models-shadow/5286/2 "2017-03-15T23:21:15Z")

</div>

One way would be adding some ambient color to your model. It looks like lighting is based on the camera rather than the sun, so if you are viewing a slanted surface it will appear dark.

---

<div class="post-metadata">

**Author:** ![Sunflower](https://avatars.discourse-cdn.com/v4/letter/s/a5b964/32.png) [@Sunflower](https://community.cesium.com/u/Sunflower)\
**Post date:** [March 16, 2017, 2:10am UTC](https://community.cesium.com/t/gltf-models-shadow/5286/3 "2017-03-16T02:10:07Z")

</div>

Can you give me code example?  
Thanks  
在 2017年3月16日星期四 UTC+8上午7:21:15，Sean Lilley写道：

---

<div class="post-metadata">

**Author:** ![sean\_lilley](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/sean_lilley/32/2083_2.png) [@sean\_lilley](https://community.cesium.com/u/sean_lilley)\
**Post date:** [March 16, 2017, 10:48pm UTC](https://community.cesium.com/t/gltf-models-shadow/5286/4 "2017-03-16T22:48:58Z")

</div>

Actually can you send over the model, it will be easier for me to check that way.
