Minimal reusable template project: AR 8thwall + Three.js made with Vite.js
- Create
.env.local
file in the project root and add your 8th Wall key inside:
VITE_8THWALL_APP_KEY=xxxxxxxxxxxxxxxxxxxxxxxxx
- Run the following commands:
# Install dependencies (only the first time)
yarn
# Run the local server
yarn dev
# Build for production in the dist/ directory
yarn build
NOTE: if there is an issue with custom shaders, bloom effect etc.. try to downgrade the Three.js version (latest tested Three.js version working was 0.145.0 I just did update the project with [email protected])