# Problem with soft shadows

**URL:** <https://forum.babylonjs.com/t/problem-with-soft-shadows/33171>\
**Category:** Questions\
**Tags:** shadows, shadowgenerator\
**Created:** [August 18, 2022, 8:02pm UTC](https://forum.babylonjs.com/t/problem-with-soft-shadows/33171 "2022-08-18T20:02:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trusiak](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/trusiak/32/26207_2.png) [@Trusiak](https://forum.babylonjs.com/u/Trusiak)\
**Post date:** [August 18, 2022, 8:02pm UTC](https://forum.babylonjs.com/t/problem-with-soft-shadows/33171/1 "2022-08-18T20:02:50Z")

</div>

![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/1/3/132a2820406ef2a469ce3ada65d5d152524d554b.jpeg)

is any way to tone shadows on object itself without using hemisphere light?  
i mean, in this character we had hard shadows like here: [Babylon.js Playground](https://playground.babylonjs.com/#0TG0TB)  
i want to my shadows were more soft, but only on object itself (if i try to edit setDarkness etc, then my shadows on scene will be soften too - i dont want that).

the goal is that shadow on character was smooth

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [August 18, 2022, 8:48pm UTC](https://forum.babylonjs.com/t/problem-with-soft-shadows/33171/2 "2022-08-18T20:48:41Z")

</div>

One solution is to have a dedicated light for your mesh. You can specify it with: [Introduction To Lights | Babylon.js Documentation (babylonjs.com)](https://doc.babylonjs.com/divingDeeper/lights/lights_introduction#choosing-meshes-to-light)

---

<div class="post-metadata">

**Author:** ![Trusiak](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/trusiak/32/26207_2.png) [@Trusiak](https://forum.babylonjs.com/u/Trusiak)\
**Post date:** [August 19, 2022, 7:09am UTC](https://forum.babylonjs.com/t/problem-with-soft-shadows/33171/3 "2022-08-19T07:09:32Z")

</div>

i know, i tried use different light source - effect was same. ☹

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [September 16, 2022, 12:54pm UTC](https://forum.babylonjs.com/t/problem-with-soft-shadows/33171/4 "2022-09-16T12:54:25Z")

</div>

Hello just checking in if you need any more help with this @Trusiak

---

<div class="post-metadata">

**Author:** ![Aze](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/aze/32/23050_2.png) [@Aze](https://forum.babylonjs.com/u/Aze)\
**Post date:** [September 26, 2022, 1:41pm UTC](https://forum.babylonjs.com/t/problem-with-soft-shadows/33171/5 "2022-09-26T13:41:06Z")

</div>

Could you apply a PG about your question?  
I always use shadow filter to make a soft shadow.Like the demo you link,it use Blur ESM.If you want a smoother shadow,you can try the PCF or PCSS.  
In addition,Your scene appears to have no ambient lighting.Or you want to set a environment texture to provide some ambient lighting?
