Files

Source for lib/shaders.iife.js

One bundle drives every shader block (each lists lib/shaders.iife.js in its registry-item.json). Each installs it into the project's shared compositions/lib folder, and the canvas's data-shader attribute picks the shader.

  • driver.js renders the canvas from HyperFrames time: on every hf-seek it steps the library's clock to that exact time, so preview and render draw the same frame.
  • build.mjs bundles the driver with shaders@4.0.0 and only the shaders it lists, then copies the result and its licence file into each shader block's lib/. A new block lists both lib files in its registry-item.json, like godrays, and adds its shader to that list; the build fills its lib/.

Build

npm ci
npm run build

package-lock.json pins every bundled package; their licenses are in ../lib/shaders.THIRD-PARTY-LICENSES.txt.