1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-16 18:05:22 +02:00

Render nodeboxes with opaque material if possible (#10122)

This commit is contained in:
sfan5
2020-08-12 11:52:50 +02:00
committed by GitHub
parent 1c38027c3a
commit fff0393187
3 changed files with 68 additions and 3 deletions

View File

@@ -418,6 +418,7 @@ struct ContentFeatures
void reset();
void serialize(std::ostream &os, u16 protocol_version) const;
void deSerialize(std::istream &is);
/*!
* Since vertex alpha is no longer supported, this method
* adds opacity directly to the texture pixels.
@@ -427,6 +428,17 @@ struct ContentFeatures
*/
void correctAlpha(TileDef *tiles, int length);
#ifndef SERVER
/*
* Checks if any tile texture has any transparent pixels.
* Prints a warning and returns true if that is the case, false otherwise.
* This is supposed to be used for use_texture_alpha backwards compatibility.
*/
bool textureAlphaCheck(ITextureSource *tsrc, const TileDef *tiles,
int length);
#endif
/*
Some handy methods
*/