[Web GPU] Why doesn't the shadow appear?

When I write the code like above playground, I don’t see any shadows. Is there anything I missed?

the engine is webgpu.

Try to reduce the angle of the spot light I think it’s because the shadow quality lowers too much if the angle is too wide.

const light = new BABYLON.SpotLight("spot-light", new BABYLON.Vector3(25, 20, -25), new BABYLON.Vector3(-10, -10, 10), Math.PI * 0.5, 10, scene);
3 Likes

Thank you. What you said was the problem.

1 Like