From 001de6ffbac83bcd41ecda075d79d265a69c7d42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20Juh=C3=A1sz?= Date: Thu, 1 Jun 2017 23:18:55 +0200 Subject: Do not shade inventory items with textures (#5869) This commit restores the old behavior: if an inventory item has an own inventory texture, it will not be shaded. --- src/wieldmesh.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/wieldmesh.h') 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 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) {} }; /* -- cgit v1.2.3