	};

		updateMeshes(API.count);
		toggleRenderingMethod(API.method);

		// gui

		const gui = new GUI();
		gui.add(API, 'method', ['Batched', 'Regular']).onChange(toggleRenderingMethod);
		gui.add(API, 'count', 1, MAX_INSTANCE_COUNT, 1).onChange(updateMeshes);
		gui.add(API, 'dynamic', 0, MAX_INSTANCE_COUNT, 1);
		gui.add(batchedMesh, 'sortObjects');
		gui.add(batchedMesh, 'perObjectFrustumCulled');

		const selectedFolder = gui.addFolder('Selected');
		selectedFolder.addColor(API.selected, 'color').onChang