instanced-mesh

(โ˜… 446)

Enhanced InstancedMesh with frustum culling, fast raycasting (using a BVH), sorting, visibility, LOD, skinning and more.

  • .gitignore
  • eslint.config.js
  • index.html
  • LICENSE
  • package-lock.json
  • package.json
  • README.md
  • tsconfig.build.json
  • tsconfig.json
  • vite.config.js

# Installation Guide

1. Get the code
git clone https://github.com/agargaro/instanced-mesh

Downloads the entire project code from GitHub to your computer.

cd instanced-mesh

Moves into the project folder you just downloaded.

2. Node.js

Easy Recommended
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Node.js Node.js must be installed to use npm. The LTS version is recommended.
npm install @three.ez/instanced-mesh

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/instanced-mesh": "https://cdn.jsdelivr.net/npm/@three.ez/instanced-mesh/build/index.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