# Custom transparent ground that receives shadows, show mirror and use diffuseTexture

**URL:** <https://forum.babylonjs.com/t/custom-transparent-ground-that-receives-shadows-show-mirror-and-use-diffusetexture/15066>\
**Category:** Questions\
**Created:** [October 20, 2020, 4:35pm UTC](https://forum.babylonjs.com/t/custom-transparent-ground-that-receives-shadows-show-mirror-and-use-diffusetexture/15066 "2020-10-20T16:35:35Z")\
**Posts on this page:** 1\
**Showing post:** 7

<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:** [October 21, 2020, 10:31am UTC](https://forum.babylonjs.com/t/custom-transparent-ground-that-receives-shadows-show-mirror-and-use-diffusetexture/15066/7 "2020-10-21T10:31:51Z")

</div>

I think what you want is to keep the shadow and the mirror and have everything else transparent?

Maybe this will work for you:

[https://playground.babylonjs.com/#9KLUBA#4](https://playground.babylonjs.com/#9KLUBA#4)

If the `shadow` variable is strictly less than 1 it means the pixel is at least partly in shadow. And the `if (color.r != 0.2 || color.g != 0.2 || color.b != 0.3)` check is to test against the clear color.

---

_[View the full topic](https://forum.babylonjs.com/t/custom-transparent-ground-that-receives-shadows-show-mirror-and-use-diffusetexture/15066)._
