https://github.com/eguneys/webpack-three-hot
Three.js boilerplate with hot module reloading
https://github.com/eguneys/webpack-three-hot
boilerplate hot-reload threejs webpack
Last synced: 3 months ago
JSON representation
Three.js boilerplate with hot module reloading
- Host: GitHub
- URL: https://github.com/eguneys/webpack-three-hot
- Owner: eguneys
- License: mit
- Created: 2017-08-31T18:45:38.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-31T18:49:49.000Z (almost 9 years ago)
- Last Synced: 2025-08-08T05:48:46.295Z (11 months ago)
- Topics: boilerplate, hot-reload, threejs, webpack
- Language: JavaScript
- Size: 46.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# webpack-minimal
## Three.js API
* PerspectiveCamera(fov, aspect, near, far)
.position.set()
* WebGLRenderer({canvas, alpha, antialias})
.setSize(w, h);
.render(scene, camera)
* Scene()
* ShaderMaterial()
## Webpack API
* Hot module Reload
```
if (module.hot) {
module.hot.accept('./objects', () => {
state.objects = require('./objects').initObjects();
state.scene = renderWrap(state);
state.redrawNow();
});
}
```
### Dev Work
- [x] Hot module reload support