diff --git a/libs/gfx/include/psemek/gfx/attribs.hpp b/libs/gfx/include/psemek/gfx/attribs.hpp index 2b4e2210..895cc3e3 100644 --- a/libs/gfx/include/psemek/gfx/attribs.hpp +++ b/libs/gfx/include/psemek/gfx/attribs.hpp @@ -5,6 +5,7 @@ #include #include #include +#include #include #include @@ -202,6 +203,16 @@ namespace psemek::gfx using attrib_type = geom::matrix; }; + template + struct attrib_traits> + { + using attrib_type = geom::quaternion; + + static constexpr GLint size = 4; + static constexpr GLenum type = attrib_traits::type; + static constexpr GLboolean normalized = gl::FALSE; + }; + template struct attrib_traits> {