# I want a shadow effect , need't Ground, what can I do?

**URL:** <https://forum.babylonjs.com/t/i-want-a-shadow-effect-needt-ground-what-can-i-do/22772>\
**Category:** Questions\
**Created:** [August 3, 2021, 7:11am UTC](https://forum.babylonjs.com/t/i-want-a-shadow-effect-needt-ground-what-can-i-do/22772 "2021-08-03T07:11:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![haoguang\_shen](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/haoguang_shen/32/17576_2.png) [@haoguang\_shen](https://forum.babylonjs.com/u/haoguang_shen)\
**Post date:** [August 3, 2021, 7:11am UTC](https://forum.babylonjs.com/t/i-want-a-shadow-effect-needt-ground-what-can-i-do/22772/1 "2021-08-03T07:11:33Z")

</div>

![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/d/e/deb45697f38a41326685dc85796d070da2011a5e.jpeg)

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [August 3, 2021, 8:11am UTC](https://forum.babylonjs.com/t/i-want-a-shadow-effect-needt-ground-what-can-i-do/22772/2 "2021-08-03T08:11:14Z")

</div>

> **[Shadows | Babylon.js Documentation](https://doc.babylonjs.com/divingDeeper/lights/shadows)**
>
> Learn how to leverage shadows in Babylon.js

---

<div class="post-metadata">

**Author:** ![haoguang\_shen](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/haoguang_shen/32/17576_2.png) [@haoguang\_shen](https://forum.babylonjs.com/u/haoguang_shen)\
**Post date:** [August 3, 2021, 8:21am UTC](https://forum.babylonjs.com/t/i-want-a-shadow-effect-needt-ground-what-can-i-do/22772/3 "2021-08-03T08:21:39Z")

</div>

I don’t know When I don’t set ground , shadow how to set ?

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/d/7/d7f116f1c94811402297b2f0b7170d237d230bb2.jpeg)

---

<div class="post-metadata">

**Author:** ![haoguang\_shen](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/haoguang_shen/32/17576_2.png) [@haoguang\_shen](https://forum.babylonjs.com/u/haoguang_shen)\
**Post date:** [August 3, 2021, 8:28am UTC](https://forum.babylonjs.com/t/i-want-a-shadow-effect-needt-ground-what-can-i-do/22772/4 "2021-08-03T08:28:27Z")

</div>

If I set ground , I can get shadow,

```auto
    private createGround():void{
        var ground = Mesh.CreateGround("ground", 35, 35, 10, this.scene);
        ground.position = new Vector3(0, -2, 0),
        ground.checkCollisions = true;
        ground.receiveShadows = true;
    }

```

when I don’t set ground ,what cant I do?

---

<div class="post-metadata">

**Author:** ![haoguang\_shen](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/haoguang_shen/32/17576_2.png) [@haoguang\_shen](https://forum.babylonjs.com/u/haoguang_shen)\
**Post date:** [August 3, 2021, 8:35am UTC](https://forum.babylonjs.com/t/i-want-a-shadow-effect-needt-ground-what-can-i-do/22772/5 "2021-08-03T08:35:52Z")

</div>

If i want a shadow, “Ground” it is necessary to receive shadow?

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [August 3, 2021, 9:54am UTC](https://forum.babylonjs.com/t/i-want-a-shadow-effect-needt-ground-what-can-i-do/22772/6 "2021-08-03T09:54:38Z")

</div>

Maybe you want this:

> **[ShadowOnly Material | Babylon.js Documentation](https://doc.babylonjs.com/toolsAndResources/assetLibraries/materialsLibrary/shadowOnlyMat)**
>
> The Babylon.js materials library ShadowOnlyMaterial displays only shadows casted by a light on a receiving object.

But you will still need an object on which the shadow is projected, there’s no way around that.

---

<div class="post-metadata">

**Author:** ![haoguang\_shen](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/haoguang_shen/32/17576_2.png) [@haoguang\_shen](https://forum.babylonjs.com/u/haoguang_shen)\
**Post date:** [August 3, 2021, 10:01am UTC](https://forum.babylonjs.com/t/i-want-a-shadow-effect-needt-ground-what-can-i-do/22772/7 "2021-08-03T10:01:15Z")

</div>

Yes, this is I want ,thanks!!
