First pass at blendshapes
[opengl.git] / blendshapes.hpp
diff --git a/blendshapes.hpp b/blendshapes.hpp
new file mode 100644 (file)
index 0000000..fd3bcc4
--- /dev/null
@@ -0,0 +1,10 @@
+#include "model.hpp"
+struct Blendshapes {
+       Model *model;
+       std::vector<glm::vec3> neutral;
+       std::vector<std::vector<glm::vec3>> deltas;
+};
+
+void createBlendshapes(std::vector<std::string> blendshapes, std::string neutral, Program p, Blendshapes *res);
+
+void interpolateBlendshapes(Blendshapes *b, std::vector<float> amounts);