Documenting the passes and config variables.

This commit is contained in:
Rezmason
2021-10-20 21:39:04 -07:00
parent 4c6ff879fd
commit d285697640
5 changed files with 66 additions and 36 deletions

View File

@@ -1,5 +1,13 @@
import { loadText, make1DTexture, makePassFBO, makePass } from "./utils.js";
// Matrix Resurrections isn't in theaters yet,
// and this version of the effect is still a WIP.
// Criteria:
// Upward-flowing glyphs should be golden
// Downward-flowing glyphs should be tinted slightly blue on top and golden on the bottom
// Cheat a lens blur, interpolating between the texture and bloom at the edges
export default (regl, config, inputs) => {
const output = makePassFBO(regl, config.useHalfFloat);
const { backgroundColor } = config;