shaderify 0.0.3
shaderify: ^0.0.3 copied to clipboard
That's a helper to add shaders easily, with some variables like time, mouse position, and size.
example/lib/main.dart
import 'package:flutter/widgets.dart';
import 'package:shaderify/shaderify.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return const Directionality(
textDirection: TextDirection.ltr,
child: ShaderWidget(shaderPath: "shaders/myshader.frag"),
);
}
}