shadowGenerators serialized without light

Background

Version: 7.44.1
Engine: any
Browser: any

Desc

There is currently no doNotSerialize option for a ShadowGenerator, and a ShadowGenerator would be serialized even if the light of it marked with doNotSerialize.

Expected

  1. Add a doNotSerialize option to ShadowGenerator, and skip serialization if it’s true
  2. A ShadowGenerator should not be serialized if its light is marked with doNotSerialize. (https://playground.babylonjs.com/#ZBSXNP#1)

Actual

1 Like

Agree.

We will be happy to merge a PR about it!

2 Likes

agreed :smiley:

2 Likes
3 Likes