comic_motion_shaders 0.1.1
comic_motion_shaders: ^0.1.1 copied to clipboard
GPU companion for comic_motion: FragmentShader real-time parallax, breathing, light sweep and vignette over exportLayers texture sets.
Changelog #
0.1.1 - 2026-09-29 #
- Docs: added an English README (the Chinese version now lives at
README_zh-CN.md); package description shortened.
0.1.0 #
Initial release.
RealtimeMotionView: FragmentShader realtime rendering of layered textures (consumes the core engine'sexportLayersoutput). A Ticker drives the breathing phase and sweep position; parallax uniforms are driven directly by external signals (touch/gyroscope).playing: falsefreezes the clock.- Uber-shader
assets/shaders/comic_motion.frag: a single fragment shader with uniform switches for four parameterized transforms — parallax / breathing / lightSweep / vignette; 4 sampler inputs, empty slots filled with 1x1 transparent placeholders. MotionUniforms: pure-Dart uniform mapping (layout contract constantskIndex*, range clamping, fixed-lengthdepthFactors).decodeLayerTextures: layered PNG bytes →ui.Imagelist (up to 4 layers).- Example: procedural placeholder layers + slider/FilterChip live tuning.
- Tests: uniform layout contract / clamping / clock mapping unit tests (golden tests of the shader itself are an optional follow-up).