Generates and applies the lightmaps.
An array of entities (with model or render components) to render lightmaps for. If not supplied, the entire scene will be baked.
Optional
mode: number = BAKE_COLORDIRBaking mode. Can be:
Only lights with bakeDir=true will be used for generating the dominant light direction. Defaults to BAKE_COLORDIR.
The lightmapper is used to bake scene lights into textures.