Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/safrmo/trois-template
Starter template for TroisJS
https://github.com/safrmo/trois-template
Last synced: 6 days ago
JSON representation
Starter template for TroisJS
- Host: GitHub
- URL: https://github.com/safrmo/trois-template
- Owner: SaFrMo
- Created: 2021-03-14T16:56:52.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-03-14T17:22:29.000Z (over 3 years ago)
- Last Synced: 2024-10-11T05:11:06.008Z (about 1 month ago)
- Language: Vue
- Size: 1.95 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Scaffold for [TroisJS](https://github.com/troisjs/trois) projects that supports standalone `.glsl, .vert, .frag` shader files.
Recommended use: Add this to your bash profile:
```sh
trois(){
npm init @vitejs/app "${1}"
cd "${1}"
rm -rf ./src/assets
rm ./src/components/HelloWorld.vue
npm i -D rollup-plugin-glslify sass
npm i three troisjs
npx degit safrmo/trois-template/template#main --force
npm i
cd ../
echo "Done. Run cd ${1} and npm run dev."
}alias troisjs="trois"
```Then run `trois your-project-name`.