diff --git a/libs/gfx/include/psemek/gfx/mesh.hpp b/libs/gfx/include/psemek/gfx/mesh.hpp index 13a7af77..8cd44622 100644 --- a/libs/gfx/include/psemek/gfx/mesh.hpp +++ b/libs/gfx/include/psemek/gfx/mesh.hpp @@ -154,6 +154,12 @@ namespace psemek::gfx static constexpr GLboolean normalized = gl::FALSE_; }; + template + struct attrib_traits> + { + using attrib_type = geom::matrix; + }; + template struct attrib_traits> { @@ -167,7 +173,7 @@ namespace psemek::gfx template struct attrib_traits> { - using attrib_type = T; + using attrib_type = typename attrib_traits::attrib_type; static constexpr GLint size = attrib_traits::size; static constexpr GLenum type = attrib_traits::type;