aboutsummaryrefslogtreecommitdiff
path: root/src/wieldmesh.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wieldmesh.h')
-rw-r--r--src/wieldmesh.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/wieldmesh.h b/src/wieldmesh.h
index ef164c11f..faedce484 100644
--- a/src/wieldmesh.h
+++ b/src/wieldmesh.h
@@ -59,8 +59,13 @@ struct ItemMesh
* Stores the color of each mesh buffer.
*/
std::vector<ItemPartColor> buffer_colors;
+ /*!
+ * If false, all faces of the item should have the same brightness.
+ * Disables shading based on normal vectors.
+ */
+ bool needs_shading;
- ItemMesh() : mesh(NULL), buffer_colors() {}
+ ItemMesh() : mesh(NULL), buffer_colors(), needs_shading(true) {}
};
/*