diff options
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 } }) |
