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