batched-mesh-extensions
Extension methods for BatchedMesh to accelerate raycasting and frustum culling, handle different uniforms for each instance, LOD and more.
File Explorer
Download Latest Version (.zip)- codeql-config.yml
- codeql.yml
- docs.yml
- eslint.yml
- node.js.yml
- FUNDING.yml
- android-chrome-192x192.png
- android-chrome-512x512.png
- apple-touch-icon.png
- favicon-16x16.png
- favicon-32x32.png
- favicon.ico
- samoyed-mascot-moved.png
- samoyed-mascot.png
- site.webmanifest
- index.html
- stackblitz-package.json
- stackblitz-tsconfig.json
- stackblitz-vite.config.ts
- CodeWrapper.astro
- Example.astro
- OpenInStackblitz.astro
- stackblitz-template.ts
- types.ts
- Intro.astro
- intro.ts
- 00-introduction.mdx
- index.mdx
- config.ts
- index.ts
- index.ts
- index.ts
- index.ts
- index.ts
- [...slug].astro
- Loader.astro
- env.d.ts
- .gitignore
- astro.config.mjs
- CONTRIBUTE.md
- package-lock.json
- package.json
- tsconfig.build.json
- tsconfig.json
- bvh.ts
- LOD.ts
- three-mesh-bvh.ts
- uniforms.ts
- ComputeBVH.ts
- FrustumCulling.ts
- GetPositionAt.ts
- LOD.ts
- Raycasting.ts
- Uniforms.ts
- BatchedMeshBVH.ts
- MultiDrawRenderList.ts
- SquareDataTexture.ts
- ExtendBatchedMeshPrototype.common.ts
- ExtendBatchedMeshPrototype.webgl.ts
- ExtendBatchedMeshPrototype.webgpu.ts
- PatchBatchedMeshMaterial.ts
- CountUtils.ts
- SortingUtils.ts
- index.webgl.ts
- index.webgpu.ts
- .gitignore
- eslint.config.js
- index.html
- LICENSE
- package-lock.json
- package.json
- README.md
- tsconfig.build.json
- tsconfig.json
- vite.config.js
- vite.config.webgpu.js
# Installation Guide
1. Get the code
git clone https://github.com/agargaro/batched-mesh-extensions
Downloads the entire project code from GitHub to your computer.
cd batched-mesh-extensions
Moves into the project folder you just downloaded.
2. Node.js
Easy RecommendedPrerequisites
npm install @three.ez/batched-mesh-extensions
Downloads and installs the libraries listed in package.json.
"three": "https://cdn.jsdelivr.net/npm/three/build/three.module.js",
Type this command into your terminal and run it.
"three/addons/": "https://cdn.jsdelivr.net/npm/three/examples/jsm/",
Type this command into your terminal and run it.
"@three.ez/batched-mesh-extensions": "https://cdn.jsdelivr.net/npm/@three.ez/batched-mesh-extensions/build/webgl.js",
Type this command into your terminal and run it.
"bvh.js": "https://cdn.jsdelivr.net/npm/bvh.js/build/index.js",
Type this command into your terminal and run it.
After running the command, open the address shown in the terminal (usually something like http://localhost:3000) in your browser.
Pulled directly from this repo's README.
// repository documentation
Was this content helpful?
(0 ratings)
