diff --git a/package.json b/package.json index e0360fb6..5afcb141 100644 --- a/package.json +++ b/package.json @@ -51,6 +51,6 @@ "webpack-dev-server": "^4.7.4" }, "peerDependencies": { - "three": ">=0.144.0" + "three": ">=0.151.0" } } diff --git a/src/content/MSDFText.js b/src/content/MSDFText.js index a36c94bf..444326c1 100644 --- a/src/content/MSDFText.js +++ b/src/content/MSDFText.js @@ -1,5 +1,5 @@ import { Mesh } from 'three'; -import { mergeBufferGeometries } from 'three/examples/jsm/utils/BufferGeometryUtils.js'; +import { mergeGeometries } from 'three/examples/jsm/utils/BufferGeometryUtils.js'; import MSDFGlyph from './MSDFGlyph.js'; @@ -103,7 +103,7 @@ function buildText() { } ); - const mergedGeom = mergeBufferGeometries( translatedGeom ); + const mergedGeom = mergeGeometries( translatedGeom ); const mesh = new Mesh( mergedGeom, this.getFontMaterial() );