While playing with three.js and shaders I found myself writing up the same boilerplate code again and again. So here is the template I kept writing.
three.js will be updated upon every release.
-
Clone this repo
git clone git@github.com:olejrosendahl/threejs-boilerplate-shader.git
-
Delete the existing git repository by running
rm -rf .git
. -
Initialize a new git repository with
git init
,git add .
andgit commit -m "Initial commit"
. -
Run
python -m SimpleHTTPServer
to start the local web server. -
Go to
http://localhost:8000
and you should see the app running!
- three.js
- Use three.js r74
- Update viewport on window resize.
- Use three.js r72
- Added three.js setup code and spinning cube animation.