glTF v2 importer morph targets support

This commit is contained in:
Sebastian Matusik
2018-07-05 14:28:29 +01:00
parent 624e5b4d1a
commit 3e3a785750
3 changed files with 107 additions and 4 deletions

View File

@@ -766,10 +766,17 @@ namespace glTF2
Ref<Accessor> indices;
Ref<Material> material;
struct Target {
AccessorList position, normal, tangent;
};
std::vector<Target> targets;
};
std::vector<Primitive> primitives;
std::vector<float> weights;
Mesh() {}
/// \fn void Read(Value& pJSON_Object, Asset& pAsset_Root)