r, float32MemPointer, READ_SIZE * READ_SIZE);

				// Update the THREE JS heightmap based on the current Float32 buffer
				function updateThreeHeightMap(offsetX, offsetY) {
					const textureImageData = displacementContext2D.getImageData(offsetX, offsetY, READ_SIZE, READ_SIZE);
					float32MemoryBuffer.forEach((_o, i) => {
						for (let j = 0; j < 3; j++) {
							textureImageData.data[i * 4 + j] = float32MemoryBuffer[i] * 10;
						}
					});
					displacementContext2D.putImageData(textureImageData, offs