# Shadow map showing holes instead surface

**URL:** <https://community.cesium.com/t/shadow-map-showing-holes-instead-surface/39749>\
**Category:** CesiumJS\
**Created:** [April 2, 2025, 1:32pm UTC](https://community.cesium.com/t/shadow-map-showing-holes-instead-surface/39749 "2025-04-02T13:32:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hans\_meier](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/hans_meier/32/26136_2.png) [@hans\_meier](https://community.cesium.com/u/hans_meier)\
**Post date:** [April 2, 2025, 1:32pm UTC](https://community.cesium.com/t/shadow-map-showing-holes-instead-surface/39749/1 "2025-04-02T13:32:55Z")

</div>

Hello everyone

I am working with the shadow map, Cesium JS. it is a mountain on left side and the shadow must definitely be a surface.

 ![grafik](https://global.discourse-cdn.com/cesium/original/3X/4/0/40212791990f7ba4a4208828b5b9679a8f6f1130.jpeg)

viewer.scene.shadowMap.enabled = true;  
viewer.scene.shadowMap.size = 4096;  
viewer.scene.shadowMap.softShadows = true;  
viewer.scene.shadowMap.darkness = 0.5;  
viewer.scene.shadowMap.normalOffsetBias = 0.05;  
viewer.scene.shadowMap.polygonOffsetBias = 0.5;

are there some solution? I tryed several “solution” e.g. (viewer.scene.shadowMap.filter = Cesium.ShadowMapFilter.PCFSoft) but nothing is working.

---

<div class="post-metadata">

**Author:** ![Gabby\_Getz](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/gabby_getz/32/7838_2.png) [@Gabby\_Getz](https://community.cesium.com/u/Gabby_Getz)\
**Post date:** [April 4, 2025, 5:13pm UTC](https://community.cesium.com/t/shadow-map-showing-holes-instead-surface/39749/2 "2025-04-04T17:13:01Z")

</div>

Hi @hans_meier. Is the terrain that could be causing the shadow offscreen? If so, it could have been culled. This is documented in [Shadows do not consider terrain that is outside of the rendered scene · Issue #9641 · CesiumGS/cesium · GitHub](https://github.com/CesiumGS/cesium/issues/9641).

---

<div class="post-metadata">

**Author:** ![hans\_meier](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/hans_meier/32/26136_2.png) [@hans\_meier](https://community.cesium.com/u/hans_meier)\
**Post date:** [April 7, 2025, 2:18pm UTC](https://community.cesium.com/t/shadow-map-showing-holes-instead-surface/39749/3 "2025-04-07T14:18:23Z")

</div>

Thank you @Gabby_Getz. So far I understan is there no solution that works proberly. I think we will tray with a secon camera.  
Do you have any good information or solution on how to visualize the dawn and dusk (sunrise)? I have made some attempts with the Sandcastl Atmosphare but did not achieve anything nice.
