Releases: gkjohnson/three-mesh-bvh
Releases · gkjohnson/three-mesh-bvh
Release list
v0.9.14
v0.9.13
v0.9.12
v0.9.11
Added
- WebGPURenderer : Added
BVHComputeDataclass for packing multi-object BVH scene data into GPU storage buffers for use in WebGPU compute shaders via the TSL node system.
Changed
- WebGPURenderer: Deprecated the
wgslFn/wgsl-based TSL node exports. These do not work correctly on most platforms due to WGSL restrictions on passing storage buffer pointers across function call boundaries. UseBVHComputeDatainstead. - BVH: Rename "maxLeafSize" to "targetLeafSize" to better reflect the option behavior.
Fixed
- Case where ObjectBVH would return an incorrect raycast hit with firstHitOnly.
- LineBVH, PointsBVH, SkinnedMeshBVH: Improved bounds traversal logic for firstHitOnly case.
v0.9.10
v0.9.9
Added
- Add tests for ObjectBVH, SkinnedMeshBVH
- ObjectBVH: Add "getObjectFromId", "getInstanceFromId" functions
- Moved "ObjectBVH" and "SkinnedMeshBVH" to core. These classes are still in development and APIs may change.
Changed
- BVHHelper: Handled case where the a root object does not have geometry.
Fixed
- ParallelMeshBVHWorker: Fix failure when reporting progress.
- ObjectBVH, SkinnedMeshBVH: Fix raycasting bugs for both classes
- ObjectBVH: Fix case where the first BatchedMesh instance would be skipped
v0.9.8
v0.9.7
Added
- BVH: Added support for "bvhcast" callback
Fixed
- BVHHelper: Rename "objectIndex" to "instanceId"
- BVHHelper: Enable "instanceId" to be set to - 1 to ignore the instance transform.
Changed
- MeshBVH: deprecated "maxLeafTris" option in favor of "maxLeafSize".
- MeshBVHHelper: deprecated class in favor of "BVHHelper".
- BVH: Changed internal shapecast callbacks
v0.9.6
Fixed
- BVHHelper: Fix "clone" function not cloning all fields.
- acceleratedRaycast: Fix case where raycasting will fail if "type" is modified.
- Update types.
- WGSL: Fix use of keyword as a variable.
Added
- PointsBVH, LineBVH, LineLoopBVH, LineSegmentsBVH: Added support for "refit" function.
- SkinnedMeshBVH for skinned meshes or morph target meshes to the examples directory.