I think I am encountering a bug when putting a Cascaded shadow generator in a babylon file. It is a little tricky to publish, because both sandbox & playground use the minimized versions of BJS. Here is the full scene using max with inlined JSON:
It dies in the
CascadedShadowGenerator constructor. Here is the stack from there down
Unsupported filter "2"!
The line numbers from stack are different source files, but line 725 is the last line of the constructor
this.usePercentageCloserFiltering = true;
This is a setter. I am not sure what happens, but as this problem is occurring in the constructor, and there is no opportunity to even specify a filter, I do not see how this could be fixed in JSON.