Snapshot Rendering does not support Clustered Lighting

Enabling Clustered Lighting while using Snapshot Rendering causes the engine to crash (regardless of the mode).

I checked the documentation but did not find any mention that Clustered Lighting cannot be used with Snapshot Rendering, so I am reporting this issue.

repro: https://playground.babylonjs.com/#QAD7FB#1

I apologize if this information is already documented and I simply missed it.

Thank you for this great framework!

cc @Evgeni_Popov

Thanks for reporting, here’s the fix:

Thank you for the quick fix!