mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-23 08:09:31 -07:00
Removing holoplay for now.
This commit is contained in:
@@ -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() });
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user