mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
Clean up TileLayer::applyMaterialOptions
This commit is contained in:
parent
7d3f0628c4
commit
83fd837d75
5 changed files with 25 additions and 63 deletions
|
@ -84,9 +84,13 @@ struct TileLayer
|
|||
return !(*this == other);
|
||||
}
|
||||
|
||||
void applyMaterialOptions(video::SMaterial &material) const;
|
||||
|
||||
void applyMaterialOptionsWithShaders(video::SMaterial &material) const;
|
||||
/**
|
||||
* Set some material parameters accordingly.
|
||||
* @note does not set `MaterialType`
|
||||
* @param material material to mody
|
||||
* @param layer index of this layer in the `TileSpec`
|
||||
*/
|
||||
void applyMaterialOptions(video::SMaterial &material, int layer) const;
|
||||
|
||||
/// @return is this layer semi-transparent?
|
||||
bool isTransparent() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue