diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-02-24 19:30:30 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-02-24 19:30:30 +0000 |
commit | 7d0decccaac3aa564b549d91a36279e7aca0814e (patch) | |
tree | 749ceff26556ed201a055b8d8a70636b50c562f7 /assetFactory/modelFactoryMesh.h | |
parent | Support for model colours mixed with textures (diff) | |
download | ilt-7d0decccaac3aa564b549d91a36279e7aca0814e.tar.bz2 ilt-7d0decccaac3aa564b549d91a36279e7aca0814e.tar.xz ilt-7d0decccaac3aa564b549d91a36279e7aca0814e.zip |
Support for recursive colouring of asset factory faces
Updates colours in sample model.
Diffstat (limited to 'assetFactory/modelFactoryMesh.h')
-rw-r--r-- | assetFactory/modelFactoryMesh.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/assetFactory/modelFactoryMesh.h b/assetFactory/modelFactoryMesh.h index d0ffc26..7d222f5 100644 --- a/assetFactory/modelFactoryMesh.h +++ b/assetFactory/modelFactoryMesh.h @@ -20,11 +20,12 @@ namespace OpenMesh { } struct ModelFactoryTraits : public OpenMesh::DefaultTraits { - FaceAttributes(OpenMesh::Attributes::Normal | OpenMesh::Attributes::Status); + FaceAttributes(OpenMesh::Attributes::Normal | OpenMesh::Attributes::Status | OpenMesh::Attributes::Color); EdgeAttributes(OpenMesh::Attributes::Status); VertexAttributes(OpenMesh::Attributes::Normal | OpenMesh::Attributes::Status); using Point = OpenMesh::glmvec<float, 3>; using Normal = OpenMesh::glmvec<float, 3>; + using Color = OpenMesh::glmvec<float, 4>; }; struct ModelFactoryMesh : public OpenMesh::PolyMesh_ArrayKernelT<ModelFactoryTraits> { |