1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 08:35:20 +02:00

Textures: introduce world-align overrides (#12540)

Many games do not care about world align textures, however texture packs should have the capabilities to change that if they have suitable textures. This commmit now introduces a node property override for world-align in particular to force a certain scale on the selected override tiles.
This commit is contained in:
SmallJoker
2022-08-13 08:52:16 +02:00
committed by GitHub
parent 8bf1609ccc
commit 023a1c2427
4 changed files with 71 additions and 52 deletions

View File

@@ -57,7 +57,8 @@ struct TextureOverride
{
std::string id;
std::string texture;
override_t target;
override_t target = 0;
u8 world_scale = 0;
// Helper function for checking if an OverrideTarget is found in
// a TextureOverride without casting