/TypedThreeViteStarter

My starter template for basic three.js stuff with typescript and vite.

Primary LanguageTypeScriptMIT LicenseMIT

Vite THREE.js starter

This is my current setup for building something with THREE.js with Vite using classes and shaders.

Requirements

  • node.js
  • npm
  • browser that supports WebGL

Installation

Run npm install in the root of the project directory.

Run

The command:

npm run dev

will start a local webserver combined with a watcher that recompiles every changed (typescript) file within this folder.

Developing

The main entrypoint is src/main.ts.