# Generating planes with fake shadows projected onto the ground

**URL:** <https://forum.babylonjs.com/t/generating-planes-with-fake-shadows-projected-onto-the-ground/49289>\
**Category:** Questions\
**Tags:** lighting\
**Created:** [April 2, 2024, 6:56pm UTC](https://forum.babylonjs.com/t/generating-planes-with-fake-shadows-projected-onto-the-ground/49289 "2024-04-02T18:56:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mr\_Anderson](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mr_anderson/32/33232_2.png) [@Mr\_Anderson](https://forum.babylonjs.com/u/Mr_Anderson)\
**Post date:** [April 2, 2024, 6:56pm UTC](https://forum.babylonjs.com/t/generating-planes-with-fake-shadows-projected-onto-the-ground/49289/1 "2024-04-02T18:56:52Z")

</div>

I came up with this fake shadow plane projection under my rectangles in this scene and I am wondering if this even increases the performance compared to the shadow caster?  
Maybe there is a better way to fake something like this?

It’s a simple plane with a png applied and it rotates and moves together with the rectangles. If the rectangles are too high up into the air, it’s opacity goes down.

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/d/b/db4a5fa2c65893e9161bb7b86c85162dcd99bbb3.png)

---

<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:** [April 2, 2024, 7:52pm UTC](https://forum.babylonjs.com/t/generating-planes-with-fake-shadows-projected-onto-the-ground/49289/2 "2024-04-02T19:52:10Z")

</div>

Yes, it’s probably faster than real shadows, as shadows need an additional render target generation as well as some specific code in the material shaders to render shadows.

See also:

> [@Shadow Contact in Babylon - ambient occlusion](https://forum.babylonjs.com/t/shadow-contact-in-babylon-ambient-occlusion/47704/9):
>
> Here’s how you can do it on a plane with an opacity texture: I think we should discuss how we can package it so that it’s easy for users to take advantage of it…
