ctx = canvas.getContext('2d');

      const geometry = new THREE.PlaneBufferGeometry(menuWorldWidth, menuWorldHeight);
      const texture = new THREE.Texture(
        canvas,
        THREE.UVMapping,
        THREE.ClampToEdgeWrapping,
        THREE.ClampToEdgeWrapping,
        THREE.LinearMipMapLinearFilter,
        THREE.LinearFilter,
        THREE.RGBAFormat,
        THREE.UnsignedByteType,
        16
      );
      texture.needsUpdate = true;
      const material = new THREE.MeshBasicMaterial({
        