Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const Primitives = require("../");
const AsyncPreloader = require("async-preloader").default;
const createCamera = require("perspective-camera");
const createOrbitControls = require("orbit-controls");
const dat = require("dat.gui");
const triangulate = require("geom-triangulate");
const createMesh = require("./mesh.js");
const regl = require("./context.js");
// Setup
const camera = createCamera({
fov: Math.PI / 4,
near: 0.1,
far: 100,
viewport: [0, 0, window.innerWidth, window.innerHeight]
});
const controls = createOrbitControls({