mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-18 14:19:30 -07:00
By default, camera features are disabled; they're opted into by URL param and browser prompt.
This commit is contained in:
@@ -9,6 +9,7 @@ import makeResurrectionPass from "./resurrectionPass.js";
|
||||
import makeQuiltPass from "./quiltPass.js";
|
||||
import makeRipplesPass from "./ripplesPass.js";
|
||||
import getLKG from "./lkgHelper.js";
|
||||
import { setupCamera } from "../camera.js";
|
||||
|
||||
const effects = {
|
||||
none: null,
|
||||
@@ -67,6 +68,10 @@ export default async (canvas, config) => {
|
||||
|
||||
const lkg = await getLKG(config.useHoloplay, true);
|
||||
|
||||
if (config.useCamera) {
|
||||
await setupCamera();
|
||||
}
|
||||
|
||||
// All this takes place in a full screen quad.
|
||||
const fullScreenQuad = makeFullScreenQuad(regl);
|
||||
const effectName = config.effect in effects ? config.effect : "plain";
|
||||
|
||||
Reference in New Issue
Block a user