Shadow Artifacts

Hello everybody,

I have a weird shadow artifact with shadows sometimes which creates stripes:
https://www.babylonjs-playground.com/#IFYDRS#131

It becomes even weirder with usePercentageCloserFiltering set to false: https://www.babylonjs-playground.com/#IFYDRS#132

This is really well seen here with cascaded shadow but I also have the same issue with simple shadow.

I tried to play with shadowMinZ or the biais as suggested in these other topics here and here but with no result at all: https://www.babylonjs-playground.com/#IFYDRS#133

If you change the bias to 0.05 or larger, the stripes disappear: https://www.babylonjs-playground.com/#IFYDRS#134

Is it better?

https://www.babylonjs-playground.com/#IFYDRS#136

Thanks to both of you.

It was indeed a mix of the biais and forceBackFacesOnly in order to make it better.
I realize the shadow parameters really depends on the scene and we can not have parameters working in every cases and situations.

Bye :wink:

1 Like