1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-06 17:41:04 +00:00

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.
This commit is contained in:
Dániel Juhász 2017-06-01 23:18:55 +02:00 committed by Loïc Blot
parent 1c69476d9f
commit 001de6ffba
5 changed files with 34 additions and 10 deletions

View file

@ -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) {}
};
/*