Removing holoplay for now.

This commit is contained in:
Rezmason
2025-05-06 08:14:03 -07:00
parent f3cd449c7d
commit 6663c92f99
6 changed files with 24 additions and 980 deletions

View File

@@ -1,9 +1,8 @@
import { makePassFBO, makePass } from "./utils.js";
import quiltPassFrag from "../../shaders/glsl/quiltPass.frag.glsl";
import { loadText, makePassFBO, makePass } from "./utils.js";
// Multiplies the rendered rain and bloom by a loaded in image
export default ({ regl, config, lkg }, inputs) => {
export default ({ regl, cache, config, lkg }, inputs) => {
if (!lkg.enabled) {
return makePass({
primary: inputs.primary,
@@ -12,6 +11,7 @@ export default ({ regl, config, lkg }, inputs) => {
const output = makePassFBO(regl, config.useHalfFloat);
const quiltPassFrag = loadText(cache, "shaders/glsl/quiltPass.frag.glsl");
const render = regl({
frag: regl.prop("frag"),
uniforms: {
@@ -24,11 +24,11 @@ export default ({ regl, config, lkg }, inputs) => {
{
primary: output,
},
null,
quiltPassFrag.loaded,
(w, h) => output.resize(w, h),
(shouldRender) => {
if (shouldRender) {
render({ frag: quiltPassFrag });
render({ frag: quiltPassFrag.text() });
}
},
);