	directionalLight.shadow.frustumEdgeFalloff = 0.2;
		directionalLight.castShadow = true;
		scene.add(directionalLight);

		// gui
		const gui = new GUI();
		gui.add(params, 'instanceCount', 0, maxInstanceCount, 1).name('Instance Count').onChange(function(value) {
			geometries.forEach(geometry => {
				geometry.instanceCount = value;
			});
		});

		// stats
		const stats = new Stats();
		stats.showPanel(0);
		document.body.appendChild(stats.dom);

		const clock = new Clock();

		function loop(count) {
			r