react-three-gpu-pathtracer
react-three-gpu-pathtracer copied to clipboard
mergeGeometries vs mergeBufferGeometries with Three 0.161.0
When i want to use the path tracer component I always got this error:
import * as BufferGeometryUtils from 'three/addons/utils/BufferGeometryUtils.js';
./node_modules/three-gpu-pathtracer/src/utils/GeometryPreparationUtils.js
Attempted import error: 'mergeBufferGeometries' is not exported from 'three/examples/jsm/utils/BufferGeometryUtils.js' (imported as 'mergeBufferGeometries').
I figured out that three/addons/utils/BufferGeometryUtils.js has no mergeBufferGeometries export just a mergeGeometries.
I used R3F 8.15.16 and Nextjs 14.1,0
Are those two exports identical? How can I eliminate the error?