summaryrefslogtreecommitdiff
path: root/assetFactory
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-04-25 02:29:20 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2023-04-25 02:29:20 +0100
commit870166e536aadef018cee2d93eba6b818607767c (patch)
tree94087cdf725d149406ac36838f3ef58bc18985d6 /assetFactory
parentRemove duplicate Tree-01-1 definition (diff)
downloadilt-870166e536aadef018cee2d93eba6b818607767c.tar.bz2
ilt-870166e536aadef018cee2d93eba6b818607767c.tar.xz
ilt-870166e536aadef018cee2d93eba6b818607767c.zip
Allow setting a flag to say (vertex) normals have been provided
Diffstat (limited to 'assetFactory')
-rw-r--r--assetFactory/modelFactoryMesh.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/assetFactory/modelFactoryMesh.h b/assetFactory/modelFactoryMesh.h
index 4eac7ee..012977a 100644
--- a/assetFactory/modelFactoryMesh.h
+++ b/assetFactory/modelFactoryMesh.h
@@ -47,6 +47,7 @@ struct ModelFactoryTraits : public OpenMesh::DefaultTraits {
struct ModelFactoryMesh : public OpenMesh::PolyMesh_ArrayKernelT<ModelFactoryTraits> {
ModelFactoryMesh();
+ bool normalsProvidedProperty {};
OpenMesh::FPropHandleT<bool> smoothFaceProperty;
OpenMesh::FPropHandleT<GLuint> materialFaceProperty;
OpenMesh::FPropHandleT<std::string> nameFaceProperty;