Shadows refusing to work

I have been trying to add shadows to my game, however, they just refuse to work even though I have checked my code against examples. My shadow camera covers the whole map, I use the correct shading material, and tell each mesh to cast a shadow and recieve one, so I am out of ideas on what’s wrong here. Here is the script (see the code from line 1-34, and the createFloor, and the last part of the createWalls function as those deal with creating shadows).
script.js (16.4 KB)