/threejs-simple-template

A simple Three.js template.

Primary LanguageJavaScript

Three.js - Template - Simple

A simple template for a Three.js scene. Place all your static files like images, models, textures, etc. inside the public directory. The project uses Vite for the dev server and build. It already includes the plugin for converting text files to modules (.vs, .fs, .vert, .frag, .glsl, wgsl etc.).

Setup

Download Node.js. Run this followed commands:

# Install dependencies (only the first time)
npm install

# Run the local server at localhost:8080
npm run dev

# Build for production in the dist/ directory
npm run build