diff options
author | sfan5 <sfan5@live.de> | 2020-08-12 11:52:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-12 11:52:50 +0200 |
commit | fff03931871b68e092e12bfce9056f760e8ec9dd (patch) | |
tree | 29bcd2222dca5be37f5db7efd4df807385e7a158 /src/nodedef.h | |
parent | 1c38027c3a72402d752a8150701a44753e22990e (diff) | |
download | hax-minetest-server-fff03931871b68e092e12bfce9056f760e8ec9dd.tar.gz hax-minetest-server-fff03931871b68e092e12bfce9056f760e8ec9dd.zip |
Render nodeboxes with opaque material if possible (#10122)
Diffstat (limited to 'src/nodedef.h')
-rw-r--r-- | src/nodedef.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/nodedef.h b/src/nodedef.h index d0da367ee..71c56bda9 100644 --- a/src/nodedef.h +++ b/src/nodedef.h @@ -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 */ |