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:
at line 229

I even looked round the forum and saw someone elses playground that got fixed:

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

Your camera.maxZ value is too big:

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.