shader_buffers 1.1.0 copy "shader_buffers: ^1.1.0" to clipboard
shader_buffers: ^1.1.0 copied to clipboard

Using shaders to feed a shader. Make shaders simplier to use with a focus on the ShaderToy.com website.

example/example.md

import 'package:flutter/material.dart'; import 'package:shader_buffers/shader_buffers.dart';

void main() { runApp(MainApp()); }

class MainApp extends StatelessWidget { MainApp({super.key});

@override Widget build(BuildContext context) { final controller = ShaderController(); final mainLayer = LayerBuffer( shaderAssetsName: 'assets/shaders/mouse2.frag', ); return MaterialApp( themeMode: ThemeMode.dark, darkTheme: ThemeData.dark(useMaterial3: true), theme: ThemeData(scaffoldBackgroundColor: Colors.black), home: Scaffold( body: Padding( padding: const EdgeInsets.all(16), child: ShaderBuffers( controller: controller, // width: 350, // height: 200, mainImage: mainLayer, startPaused: false, ), ), ), ); } }

38
likes
160
points
196
downloads

Publisher

verified publishermarcobavagnoli.com

Weekly Downloads

Using shaders to feed a shader. Make shaders simplier to use with a focus on the ShaderToy.com website.

Repository (GitHub)
View/report issues

Topics

#shader #shadertoy

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter

More

Packages that depend on shader_buffers