diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-06-06 19:58:38 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-06-06 19:58:38 +0200 |
| commit | b48db4cbb9d88da3c841a02c080f0a0bbcb73435 (patch) | |
| tree | 6df1a22840b1f188ce50ad35281709a80a1d23dd /client/splash/face/index.js | |
| parent | 8b4827e78a66c5f58cb52900483000896464f97f (diff) | |
updated faces
Diffstat (limited to 'client/splash/face/index.js')
| -rw-r--r-- | client/splash/face/index.js | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/client/splash/face/index.js b/client/splash/face/index.js index 46b7b847..9312cc52 100644 --- a/client/splash/face/index.js +++ b/client/splash/face/index.js @@ -4,12 +4,19 @@ import { faces, names } from './faces' import * as markers from './markers' import * as mesh from './mesh' +// import * as Editor from './editor' +import offsets from './all_faces_offsets' + +const faceOffsets = offsets() +const animating = true + export function init() { const name = choice(names) const face = faces[name] markers.build(face) - // mesh.load(name) - startAnimation() + if (animating) { + startAnimation() + } } export function startAnimation() { @@ -23,7 +30,7 @@ export function startAnimation() { obj: {}, duration: 0, finished: () => { - meshes = mesh.createFaceMeshes(geometry) + meshes = mesh.createFaceMeshes(geometry, faceOffsets[name]) meshes.wireframe.position.z -= 0.001 } }) |
