ight);
    document.body.appendChild(renderer.domElement);

    window.addEventListener('resize', onWindowResize, false);
    function onWindowResize() {
      camera.aspect = window.innerWidth / window.innerHeight;
      camera.updateProjectionMatrix();
      renderer.setSize(window.innerWidth, window.innerHeight);
    }

    // Generate a Sierpinski pyramid one splat at a time via iteration
    const pyramid = new SplatMesh({
      constructSplats: (splats) => {
        const NUM_SPLATS = 500