From ad81de744d9fa27a34884383a51b261431ae5f2c Mon Sep 17 00:00:00 2001 From: Rezmason Date: Tue, 2 Aug 2022 21:25:54 -0700 Subject: [PATCH] Renamed ripples pass to mirror pass --- js/regl/main.js | 4 ++-- js/regl/{ripplesPass.js => mirrorPass.js} | 6 +++--- .../glsl/{ripplesPass.frag.glsl => mirrorPass.frag.glsl} | 0 3 files changed, 5 insertions(+), 5 deletions(-) rename js/regl/{ripplesPass.js => mirrorPass.js} (88%) rename shaders/glsl/{ripplesPass.frag.glsl => mirrorPass.frag.glsl} (100%) diff --git a/js/regl/main.js b/js/regl/main.js index 877ab96..11dc130 100644 --- a/js/regl/main.js +++ b/js/regl/main.js @@ -7,7 +7,7 @@ import makeStripePass from "./stripePass.js"; import makeImagePass from "./imagePass.js"; import makeResurrectionPass from "./resurrectionPass.js"; import makeQuiltPass from "./quiltPass.js"; -import makeRipplesPass from "./ripplesPass.js"; +import makeMirrorPass from "./mirrorPass.js"; import getLKG from "./lkgHelper.js"; import { setupCamera } from "../camera.js"; @@ -22,7 +22,7 @@ const effects = { image: makeImagePass, resurrection: makeResurrectionPass, resurrections: makeResurrectionPass, - ripples: makeRipplesPass, + mirror: makeMirrorPass, }; const dimensions = { width: 1, height: 1 }; diff --git a/js/regl/ripplesPass.js b/js/regl/mirrorPass.js similarity index 88% rename from js/regl/ripplesPass.js rename to js/regl/mirrorPass.js index 61d4404..ae81f31 100644 --- a/js/regl/ripplesPass.js +++ b/js/regl/mirrorPass.js @@ -21,7 +21,7 @@ export default ({ regl, config }, inputs) => { start = Date.now(); const output = makePassFBO(regl, config.useHalfFloat); - const ripplesPassFrag = loadText("shaders/glsl/ripplesPass.frag.glsl"); + const mirrorPassFrag = loadText("shaders/glsl/mirrorPass.frag.glsl"); const render = regl({ frag: regl.prop("frag"), uniforms: { @@ -39,14 +39,14 @@ export default ({ regl, config }, inputs) => { { primary: output, }, - Promise.all([ripplesPassFrag.loaded]), + Promise.all([mirrorPassFrag.loaded]), (w, h) => { output.resize(w, h); aspectRatio = w / h; }, () => { cameraTex(cameraCanvas); - render({ frag: ripplesPassFrag.text() }); + render({ frag: mirrorPassFrag.text() }); } ); }; diff --git a/shaders/glsl/ripplesPass.frag.glsl b/shaders/glsl/mirrorPass.frag.glsl similarity index 100% rename from shaders/glsl/ripplesPass.frag.glsl rename to shaders/glsl/mirrorPass.frag.glsl