Three.js + Vite + TypeScript starter
npx degit pachoclo/vite-threejs-ts-template threejs-project

- Geometry
- Material
- Mesh
- Ambient Light
- Point Light
- Camera
- Scene
- Canvas
- Renderer (WebGL)
- Loading Manager
- Orbit Controls
- Drag Controls
- Grid
- Antialias enabled
- Transparent canvas
- Responsive renderer and camera (to canvas size)
- Animation Loop
- Shadows
- Stats (FPS, ms)
- Full screen (double-click on canvas)
- Debug GUI
- Three.js
- TypeScript
- Vite
Installation
npm i
Run dev mode
npm run dev
Build
npm run build
Run build
npm run preview