An open API service indexing awesome lists of open source software.

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

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