fixed uv type

This commit is contained in:
2025-12-01 05:03:43 +03:00
parent 9a22cda382
commit 3471b44f9b
3 changed files with 15 additions and 14 deletions

View File

@@ -11,13 +11,14 @@
namespace omath::primitives
{
template<class T = Vector3<float>>
template<class VecType = Vector3<float>, class UvT = Vector2<float>>
struct Vertex final
{
using VectorType = T;
using VectorType = VecType;
using UvType = UvT;
VectorType position;
VectorType normal;
VectorType uv;
UvType uv;
};
template<typename T> concept HasPosition = requires(T vertex) { vertex.position; };