jasonandrewth / TypedThreeViteStarter

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

License:MIT License


Languages

Language:TypeScript 90.3%Language:GLSL 4.0%Language:HTML 2.5%Language:JavaScript 1.9%Language:CSS 1.3%