kekkorider / threejs-shield

Home Page:threejs-shield.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ThreeJS starter

This is a general template for ThreeJS applications. It uses ViteJS to create the bundle and Tweakpane for live updates.

Before we start

This has been developed with NodeJS 16.11.0; it should work with other versions too, but in case something doesn't work I recommend to switch to version 16.11.0 with nvm.

Setup

$ yarn install

Develop

Run

$ yarn dev

then open a new browser window and navigate to http://localhost:1234

Debug

The template uses dynamic imports to include the code to run the debug panel. To display it, simply append #debug to the URL, i.e. http://localhost:1234#debug.

Build

$ yarn build

About

threejs-shield.vercel.app

License:MIT License


Languages

Language:JavaScript 78.6%Language:GLSL 10.9%Language:CSS 5.5%Language:HTML 5.0%