shadowDepthWrapper getting error with an async adding with standalone: true

First a small typo in shadow’s document playground named “Fixed shadows“, semicolon in line 7 should be a comma to make the playground work.

document link: Babylon.js docs

typo playground link: https://playground.babylonjs.com/#PNQRY1#80

Then my problem playground link: https://playground.babylonjs.com/#PNQRY1#246

I added a shadowDepthWrapper in settimeout with standalone: true in line 96, and getting error. Now I had to add shadowdepthwrapper to all my materials in my situation to escape the problem, is it expected?

Thanks for reporting and the reproduction, here’s the fix: