# Multiplicative Shadows

**URL:** <https://forum.babylonjs.com/t/multiplicative-shadows/23286>\
**Category:** Questions\
**Created:** [August 23, 2021, 8:03am UTC](https://forum.babylonjs.com/t/multiplicative-shadows/23286 "2021-08-23T08:03:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Urpgor](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/urpgor/32/17886_2.png) [@Urpgor](https://forum.babylonjs.com/u/Urpgor)\
**Post date:** [August 23, 2021, 8:03am UTC](https://forum.babylonjs.com/t/multiplicative-shadows/23286/1 "2021-08-23T08:03:34Z")

</div>

Hi!

I’ve got the following situation. I have a scene that is basically modeled from real images including real image textures and we really want to keep this realistic look. Now I would need a shadow for some of the objects (some already include one). The problem is that I cannot really add light sources and do traditional lighting and shadowing since this would interfere with the already “baked in” lighting of the real images.  
So all I would need is the actual shadow without making the scene anyhow brighter. Or in other words a multiplicative instead of a additive shadow. I know that I can write a custom shader and access the shadow depth textures to do the shadowing there but this would only be the fallback solution.

Option #2 would be to disable all view dependent lighting effects and make the whole scene darker. Then we can add light sources and do traditional shadowing/lighting of non-shadowed areas.

Is there a way to achieve this kind of effect with babylonjs and its built-in methods?

Thx already in advance! 🙂

---

<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 23, 2021, 8:38am UTC](https://forum.babylonjs.com/t/multiplicative-shadows/23286/2 "2021-08-23T08:38:06Z")

</div>

Maybe [ShadowOnly Material | Babylon.js Documentation](https://doc.babylonjs.com/toolsAndResources/assetLibraries/materialsLibrary/shadowOnlyMat) can help, or the _excludedMeshes_ / _includedOnlyMeshes_ arrays of a light ([Introduction To Lights | Babylon.js Documentation](https://doc.babylonjs.com/divingDeeper/lights/lights_introduction#choosing-meshes-to-light)).

Else, I think you will need to do some custom shader code.
