A boilerplate for three.js using vite for development.
-Includes a loading screen, nav bar, help/info container.
-A three.js renderer, composer with bloom and outline post processing passes, and camera already setup in seperate modules.
-A scene with walls with decal example, roof, floor with a custom reflector material, a glowing animated ball to show bloom postprocess.
-Mouse, touch and swipe events already setup with a raycaster. Includes an example of outline objects on mouse hover.
- JavaScript runtime node.js;
- Get the repository:
- clone the repository through your terminal:
git clone https://github.com/ReVHeaDRaZ/raz-threejs-boilerplate YOUR-PROJECT-NAME
;
- clone the repository through your terminal:
- Open your terminal or code editor to the path your project is located, and run:
To install the dependenciesnpm install
To run the development servernpm run dev
To build your app for productionnpm run build