Shadows not working at all

I was simply testing out some stuff with the default rendering pipeline and some other stuff, then I tried to add some simple shadows. I looked round the documentation and theres even a snippet for it but it just doesnt work. Heres the playground: https://playground.babylonjs.com/#VUJG26#1
at line 229

I even looked round the forum and saw someone elses playground that got fixed: https://playground.babylonjs.com/#TWANP3#2

I tried copying that but it still didn’t work. I dont know whats wrong please help.

Your camera.maxZ value is too big:

https://playground.babylonjs.com/#VUJG26#2

1 Like

Oh, thanks. I had no clue that would affect it I always set it to something big at first so I dont run into problems with distant meshes later and forget about the clipping.