Soft Shadow example

Hi. Iam new to BJS.

I just want to ask, if this shadow-example is possible with BJS without too much knowledge?
Maybe there is a playground already to learn about those soft shadows?


Welcome aboard!

Yes, soft shadows are easy to setup:


thank you Evgeni.

I just happen to notice that the sandbox example runs at 5fps on my Macbook M1, I have never seen such a slow result, is there something special going on here to cause that
I was checking all shadows documentation and all other examples are running at 60fps

It is using PCSS as the shadow filtering technic, which is the most taxing one for performances. Not recommended for less capable GPU…


thanks for clarifying @Evgeni_Popov

Is this related to soft shadows only or for both: soft and hard shadow types also?

These kind of soft shadows (like the screenshot in the first post) can only be achieved with PCSS (which is the most taxing on performance). Or it can be faked (if shadows are static, you can bake them in your texture).