5 std::vector<glm::vec3> deltas;
9 struct BlendshapeModel {
11 std::vector<glm::vec3> neutral;
12 std::vector<Blendshape> blendshapes;
13 std::vector<std::vector<float>> animation;
14 unsigned long curFrame = 0;
17 typedef std::pair<int, int> VertIdx;
19 void loadBlendshapes(std::string dir, Program p, BlendshapeModel *bsModel);
20 /* void createBlendshapes(std::vector<std::string> blendshapes, std::string neutral, Program p, BlendshapeModel *res); */
22 void interpolateBlendshapes(BlendshapeModel *b);
24 void solveWeights(BlendshapeModel *b, std::map<VertIdx, glm::vec3> manips);
26 void stepBlendshapeAnim(BlendshapeModel *b);