shadersUsage top-level constant

String const shadersUsage

What flutter3d help shaders prints.

Implementation

const String shadersUsage = '''
Usage: flutter3d shaders [--full-shaders] [--target native|web|any] [--json]

Writes flutter3d_generated/shaders/flutter3d.f3dshaders, the engine's shader
bundle, with the stages this project needs: the base every renderer opens
with, the lighting its converted models name, impostors when a rule bakes
them, the needs listed under `shaders:` in flutter3d_assets.yaml and the
ones its plugins declare. Every installed plugin's .f3dmat is compiled
beside it. The build hook does the same on every build; this is the same
step by hand, and what prints the bundle's size.

  --full-shaders  Every stage, whatever is declared (what the editor
                  carries). In the hook: `fullShaders: true` under
                  hooks: user_defines: <this project's name>: in
                  pubspec.yaml.
  --target        Which sections: native (Impeller), web (WebGL2) or any,
                  the default.
  --json          Print the result as JSON (format f3d.cli).''';