Why doesn't this lightmap capture the correct shadow?
I got it now. The problem was that the floor and walls had their normal flipped. After I checked backface culling, this became obvious. Fixing the normal direction solved the problem.