# Casting shadows on the ground plane

**URL:** <https://community.nianticspatial.com/t/casting-shadows-on-the-ground-plane/2359>\
**Category:** I'm Stuck\
**Created:** [July 7, 2022, 6:11am UTC](https://community.nianticspatial.com/t/casting-shadows-on-the-ground-plane/2359 "2022-07-07T06:11:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yasassri](https://sea2.discourse-cdn.com/niantic/user_avatar/community.nianticspatial.com/yasassri/32/705_2.png) [@yasassri](https://community.nianticspatial.com/u/yasassri)\
**Post date:** [July 7, 2022, 6:11am UTC](https://community.nianticspatial.com/t/casting-shadows-on-the-ground-plane/2359/1 "2022-07-07T06:11:18Z")

</div>

_Include the following details (edit as applicable):_

- **Issue category** : Contextual Awareness
- **Device type & OS version** : iOS
- **Host machine & OS version** : Mac M1
- **Issue Environment** : On Device

Description of the issue:

Hi everyone, I am trying to cast shadows from AR objects that I spawn. I am curious to know whether there’s any possibility of casting a shadow on AR Mesh (invisible mesh) created by the ARDK. My goal is to have the shadow on other AR objects and the real-world plane. (in the below example, I like to see my shadow on the floor as well).

I have enabled “Light Estimation” on ARDK also.

 ![IMG_8162.PNG](https://us1.discourse-cdn.com/niantic/original/1X/1dbe100c5fbef580a5937aefeb29fbfdda6dd148.jpeg)

Your suggestions are much appreciated. Thank you.

PS: Thank you so much @Dylan_Smit . It worked. I had to switch to URP and added the custom shader mentioned in this video. I really hope the Lightship team will give us in-built support for shadows to work seamlessly with occlusions.

Thanks again. This is solved now!

---

<div class="post-metadata">

**Author:** ![Julian\_Anderson](https://avatars.discourse-cdn.com/v4/letter/j/f0a364/32.png) [@Julian\_Anderson](https://community.nianticspatial.com/u/Julian_Anderson)\
**Post date:** [July 15, 2022, 2:05pm UTC](https://community.nianticspatial.com/t/casting-shadows-on-the-ground-plane/2359/2 "2022-07-15T14:05:23Z")

</div>

Curious as well.

---

<div class="post-metadata">

**Author:** ![Dylan\_Smit](https://sea2.discourse-cdn.com/niantic/user_avatar/community.nianticspatial.com/dylan_smit/32/562_2.png) [@Dylan\_Smit](https://community.nianticspatial.com/u/Dylan_Smit)\
**Post date:** [July 16, 2022, 12:50pm UTC](https://community.nianticspatial.com/t/casting-shadows-on-the-ground-plane/2359/3 "2022-07-16T12:50:33Z")

</div>

[![](https://us1.discourse-cdn.com/niantic/original/2X/0/0844760df06f9cf5a0fd05590c7a88628c820870.jpeg "Unity AR Foundation - How To Apply Shadows To Transparent AR Planes For More Realistic AR?") ](https://www.youtube.com/watch?v=QbAY963xp0c)

Follow this guide. Only 1 shadow cascade and no softshadows however, but it does work.  
Doesn’t play nice with occlusion sadly, until they add this: [Exclude mesh from Depth Occlusion - #4 by Dylan\_Smit](https://community.nianticspatial.com/t/exclude-mesh-from-depth-occlusion/1772/4)

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/niantic/user_avatar/community.nianticspatial.com/system/32/13_2.png) [@system](https://community.nianticspatial.com/u/system)\
**Post date:** [July 17, 2022, 2:09am UTC](https://community.nianticspatial.com/t/casting-shadows-on-the-ground-plane/2359/4 "2022-07-17T02:09:04Z")

</div>

Closed on July 17, 2022, 2:09am UTC

This topic was automatically closed 2 hours after the last reply. New replies are no longer allowed.
