Support retrieving specific channels from gltf_animation

This commit is contained in:
Nikita Lisitsa 2023-08-02 19:18:35 +03:00
parent 5630ae2da3
commit 95e99e4104

View file

@ -185,6 +185,10 @@ namespace psemek::gfx
* geom::scale(scale_(time)).transform();
}
gltf_scale_animation const & scale() const { return scale_; }
gltf_rotation_animation const & rotation() const { return rotation_; }
gltf_translation_animation const & translation() const { return translation_; }
private:
gltf_scale_animation scale_;
gltf_rotation_animation rotation_;