Releases: gkjohnson/three-mesh-bvh
Releases · gkjohnson/three-mesh-bvh
v0.9.4
Added
- Docs for bvhcast function.
- More usage of "PURE" annotations.
- Added "version" field to serialized data.
- Add support for "shiftTriangleOffsets" function.
Changed
- Changed the internal storage of child indices from uint32 offsets to node indices. Old serialized data will continue to work via a "fixup" step while logging a warning.
v0.9.3
Fixed
- Fixed dependencies on WebGPURenderer compute nodes.
- Fixed MeshBVH.bvhcast passing "NaN"
nodeIndexvalues to callbacks when more than one group was present. - Fixed triangles being included in the BVH when they were not included in a groups range (eg exclude triangles in group gaps).
- Ensure "triangle bounds" buffer is limited to the size it needs to be to avoid unnecessary memory overhead.
- Remove limitation preventing "indirect" BVHs from being generated for BatchedMesh instances.
- Raycasting will now return the correct material index aligned with three.js' results including when geometry with overlapping groups are used.
v0.9.2
Added
- Types for web workers.
- Add tsl functions for running bvh raycasting and distance queries via compute shaders.
- Add "three-mesh-bvh/worker" export.
- Add "three-mesh-bvh/webgpu" export.
Fixed
- Type definitions.
- Case where raycasting results would not match three.js' behavior.
- Case where "intersectsGeometry" would throw an error if a geometry without an index was provided.
- MeshBVHHelper: fix types to align with docs.
- MeshBVHHelper: fix case where "update" causes an error if "mesh" is not provided.
- MeshBVH: Fixed case where generating a bvh for a sub geometry was significantly slower, impacting BatchedMesh generation.
v0.9.1
v0.9.0
v0.8.3
v0.8.2
v0.8.1
v0.8.0
v0.7.8 (Deprecated)
deprecated due to three.js version incompatibility. Use v0.8.0.
Fixed
- Failure with older versions of three.js in some bundlers.