Weird shadow weird shadow

Hello, guys
I got weird results when generating shadows in the scene. The shadow of street light lacked details and was simplified to rectangle, and the shadow seemed to be superimposed on the zebra crossing on the ground, which was not clear enough.

image

I created a box in the scene for comparison. The box can generate shadows normally, but the shadow was very jagged.

my PG https://playground.babylonjs.com/#IFYDRS#201

You could probably use cascaded shadows instead ? @Evgeni_Popov is the king of the shadows :slight_smile:

1 Like

For such a scene you definitely want to use CSM:

https://playground.babylonjs.com/#IFYDRS#202

Doc: Cascaded Shadow Maps | Babylon.js Documentation

4 Likes

Thank you :smiley:

Thank you for your help! :smiley: