Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 762 Bytes

GENERATE.md

File metadata and controls

31 lines (24 loc) · 762 Bytes

Generate bunch of filters

1. View list of shaders available for processing

flutter pub run flutter_gpu_video_filters

2. Find filters you need and generate new shader

flutter pub run flutter_gpu_video_filters generate --filters Brightness,Contrast

3. Add new shader file to list of assets in pubspec.yaml

# The following section is specific to Flutter packages.
flutter:
  uses-material-design: true
  assets:
    - shaders/Brightness+Contrast.glsl

4. Create new configuration

class BrightnessContrastFilterConfiguration extends BunchFilterConfiguration {
  BrightnessContrastFilterConfiguration()
      : super('shaders', [GPUBrightnessConfiguration(), GPUContrastConfiguration()]);
}