lightmapUsage top-level constant

String const lightmapUsage

What flutter3d help lightmap prints.

Implementation

const String lightmapUsage = '''
usage: dart run flutter3d_build:lightmap [options] <level.json> ...

Bakes the light a level's walls throw on each other into
<level>.lightmap.bin beside each level, the sidecar the level loader reads.
Deterministic: two bakes of one level are the same bytes, so a committed
map that differs from a fresh bake is a level nobody re-baked.

  --density <n>   texels per metre of face; default 4
  --bounces <n>   how many times light bounces; default 2
  --samples <n>   rays a texel sends each bounce; default 64
  --direct        bake the direct light and its shadows in as well, to look
                  at the unwrap; a shipped map leaves them to the renderer
''';