{"repo":"agargaro/batched-mesh-extensions","free":true,"listed":false,"github":"https://github.com/agargaro/batched-mesh-extensions","clone":"git clone https://github.com/agargaro/batched-mesh-extensions.git","description":"Extension methods for BatchedMesh to accelerate raycasting and frustum culling, handle different uniforms for each instance, LOD and more.","language":"TypeScript","stars":135,"topics":["bvh","frustum-culling","performance","three-js","threejs","uniforms","webgl","webgpu","level-of-detail","lod"],"license":"MIT","category":"game-templates","readme_excerpt":"Three.ez - BatchedMesh extensions Simplify your three.js application development with three.ez ! three.ez/instanced-mesh - Enhanced InstancedMesh with features for performance and usability This library adds and overrides some BatchedMesh methods to improve performance and add new features. - Spatial indexing (dynamic BVH) : speed up raycasting and frustum culling. - Per-instance uniforms : assign unique shader data to individual instances. ( WebGLRenderer only) - Level of Detail (LOD) : dynamically adjust instance detail based on distance. Live Examples Using three.js vanilla - Will be added in the future. Or you consider to contribute with a PR. Using three.ez/main (WebGLRenderer) - Custom uniforms per instance - Compute a BVH - Compute a BVH and use three-mesh-bvh - LOD Need help? Join us on Discord or open an issue on GitHub. Like it? If you like this project, please leave a star. Thank you! ❤️ Documentation The documentation is available here. Installation You can install it via npm using the following command: Or you can import it from CDN: WebGLRenderer WebGPURenderer Extend BatchedMesh prototype To extend the BatchedMesh prototype with the new methods, you need to call the extendBatchedMeshPrototype() method at the top of your application. For more advanced use, it's also possible to manually update the BatchedMesh prototype because the new methods are all exported. Features Spatial indexing (dynamic BVH) To speed up raycasting and frustum culling , a spatial indexing","default_branch":null,"files":null,"tree":[],"storefront":"/r/agargaro","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/agargaro/batched-mesh-extensions/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}