I played around with the shadow system of Babylon lite and noticed that self shadowing generates a shader error and the shadows look broken:
Error while parsing WGSL: :93:44 error: unresolved type 'lightsUniforms'
@group(0) @binding(1) var<uniform> lights: lightsUniforms;
That only happens when using the PBR material. The standard material works correctly.
Working playground (standard): Babylon Lite Playground
Error playground (PBR): Babylon Lite Playground
The error is gone when line 48: torus.receiveShadows = true; is removed.