Client-side STL/OBJ color-material preview and 3MF export tool.
Live demo: prusa3d.github.io/Color-Mix-Shading
This app is a Vite React single-page app. Build it with:
npm run buildThe production output is written to dist/. The Vite config uses base: './' so generated asset URLs are relative and work on static hosts, including deployments served from a subpath.
- Framework preset:
Vite - Build command:
npm run build - Output directory:
dist
- Build command:
npm run build - Publish directory:
dist
- Framework preset:
Vite - Build command:
npm run build - Build output directory:
dist
A workflow at .github/workflows/deploy-pages.yml builds and deploys to GitHub Pages on every push to main (and can also be run manually via the Actions tab).
One-time setup (requires repo admin):
- Open the repo on GitHub → Settings → Pages.
- Under Build and deployment → Source, choose GitHub Actions.
- Push to
main(or run the Deploy to GitHub Pages workflow manually from the Actions tab) to trigger the first deploy. - Once the workflow completes, the site URL appears at the top of the Pages settings page and on the
github-pagesenvironment.
The Vite base: './' setting means the build works whether Pages serves the site from the root domain or a /<repo>/ subpath, so no extra config is needed.
The deployed app does not need a Node.js runtime. Node is only required during install/build. Mesh parsing, preview rendering, material assignment, and 3MF packaging all run in the browser.
Released under the MIT License.
