mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 17:35:37 +02: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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user