This is my current setup for building something with THREE.js with Vite using classes and shaders.
- node.js
- npm
- browser that supports WebGL
Run npm install
in the root of the project directory.
The command:
npm run dev
will start a local webserver combined with a watcher that recompiles every changed (typescript) file within this folder.
The main entrypoint is src/main.ts
.