mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
Real global textures (#6105)
* Real global textures * Add world-aligned textures * Update minimal to support world-aligned tiles * Update minimal
This commit is contained in:
parent
6bab695479
commit
75320e7e88
26 changed files with 469 additions and 160 deletions
|
@ -209,7 +209,8 @@ struct TileLayer
|
|||
texture_id == other.texture_id &&
|
||||
material_type == other.material_type &&
|
||||
material_flags == other.material_flags &&
|
||||
color == other.color;
|
||||
color == other.color &&
|
||||
scale == other.scale;
|
||||
}
|
||||
|
||||
/*!
|
||||
|
@ -298,6 +299,8 @@ struct TileLayer
|
|||
* a color then the color of the node owning this tile.
|
||||
*/
|
||||
video::SColor color;
|
||||
|
||||
u8 scale;
|
||||
};
|
||||
|
||||
/*!
|
||||
|
@ -325,6 +328,9 @@ struct TileSpec
|
|||
&& emissive_light == other.emissive_light;
|
||||
}
|
||||
|
||||
//! If true, the tile rotation is ignored.
|
||||
bool world_aligned = false;
|
||||
//! Tile rotation.
|
||||
u8 rotation = 0;
|
||||
//! This much light does the tile emit.
|
||||
u8 emissive_light = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue