umbra 0.1.0-dev.4 copy "umbra: ^0.1.0-dev.4" to clipboard
umbra: ^0.1.0-dev.4 copied to clipboard

The core functionality for Umbra shaders which that helps Flutter developers to generate the necessary files for Flutter Shaders.

example/main.dart

import 'dart:io';

import 'package:umbra/umbra.dart';

Future<void> main() async {
  for (final file in [
    File('./shaders/simple.glsl'),
    File('./shaders/with_precision.glsl'),
    File('./shaders/with_uniforms.glsl'),
    File('./shaders/with_version.glsl'),
  ]) {
    final specification = ShaderSpecification.fromFile(file);

    final generator = RawShaderGenerator(specification);
    final rawBytes = await generator.generate();

    File(file.path.replaceAll('/shaders/', '/')).writeAsBytesSync(rawBytes);
  }
}
10
likes
140
pub points
39%
popularity

Publisher

verified publisherwolfenra.in

The core functionality for Umbra shaders which that helps Flutter developers to generate the necessary files for Flutter Shaders.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

equatable, mason

More

Packages that depend on umbra