
			renderer.readRenderTargetPixels(
				pickingTexture,
				0, // x
				0, // y
				1, // width
				1, // height
				pixelBuffer );

			const id =
          ( pixelBuffer[ 0 ] << 0 ) |
          ( pixelBuffer[ 1 ] << 8 ) |
          ( pixelBuffer[ 2 ] << 16 );

			return id;

		}

	}

	const pickHelper = new GPUPickHelper();

	const maxClickTimeMs = 200;
	const maxMoveDeltaSq = 5 * 5;
	const startPosition = {};
	let startTimeMs;

	function getCanvasRelativePosition( event ) {

		const rect = canvas.getBoun