mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00: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:
parent
8bf1609ccc
commit
023a1c2427
4 changed files with 71 additions and 52 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue