# Math solution for soft shadows

**URL:** <https://discourse.threejs.org/t/math-solution-for-soft-shadows/33839>\
**Category:** Questions\
**Tags:** shadows\
**Created:** [January 19, 2022, 1:14pm UTC](https://discourse.threejs.org/t/math-solution-for-soft-shadows/33839 "2022-01-19T13:14:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LeenAlfalah](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/leenalfalah/32/18835_2.png) [@LeenAlfalah](https://discourse.threejs.org/u/LeenAlfalah)\
**Post date:** [January 19, 2022, 1:14pm UTC](https://discourse.threejs.org/t/math-solution-for-soft-shadows/33839/1 "2022-01-19T13:14:54Z")

</div>

Hello all ,i am familiar with threejs and with contact shadow and dynamic, baking…  
but i have a lot of objects in my scene and all of those types are not fit either of performance issue , or size issue (if i want to bake a texture of each object, cuz there an intro animation for each object so i cannot bake all shadows in one plane ), so maybe can i use on befor compile to add some fake shadoe to each obj??? i mean i saw a lot of shaders on shadertoy like this [Shader - Shadertoy BETA](https://www.shadertoy.com/view/4l3XD2)  
[Shader - Shadertoy BETA](https://www.shadertoy.com/view/MlGczG)  
can we make something familiar ??  
Thanks alot!!

---

<div class="post-metadata">

**Author:** ![drcmda](https://avatars.discourse-cdn.com/v4/letter/d/91b2a8/32.png) [@drcmda](https://discourse.threejs.org/u/drcmda)\
**Post date:** [January 20, 2022, 12:23pm UTC](https://discourse.threejs.org/t/math-solution-for-soft-shadows/33839/2 "2022-01-20T12:23:38Z")

</div>

you could check out contact shadows, there is a demo in the examples. you can now limit the frames it renders, for instance, 1, and it’s practically baked in from that moment on. or you let it run but then it starts to get expensive again bc it has to render the scene twice. looks like this: [Backdrop and cables - CodeSandbox](https://codesandbox.io/s/backdrop-and-cables-2ij9u?file=/src/App.js)

from what i have seen there is no easy way to get soft shadows.
