Port the "Fluido" GPU fluid-simulation effect family from the Mac app

Verbatim engine copy (fluid.js + effects.js + visualizer.js) plus the
fluid.js script tag in output.html. 102 new audio-reactive ink-in-water
presets. Not yet deployed to the device (offline at commit time).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
lucianoandClaude Fable 5 committed 2026-07-17 14:49:01 +02:00
1 parent 6f06de59dc
commit e0e5377fa1
4 files changed
+409 -2

No files matched your search

+5
View File
@@ -94,6 +94,11 @@ class Visualizer {
render(timeSec, audio) {
const gl = this.gl, u = this.u, e = this.effect;
if (e.isFluid && window.FluidSim) {
if (!this.fluid) this.fluid = new window.FluidSim(gl);
this.fluid.render(timeSec, audio, e, this.canvas);
return;
}
gl.useProgram(this.program);
gl.bindBuffer(gl.ARRAY_BUFFER, this.vbo);
gl.enableVertexAttribArray(this.aPos);