1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-22 17:18:39 +00:00

Fix alpha for liquid nodes (#5494)

This commit is contained in:
Dániel Juhász 2017-05-19 07:46:10 +02:00 committed by Loïc Blot
parent 674400523e
commit 75c393c915
2 changed files with 34 additions and 27 deletions

View file

@ -382,13 +382,13 @@ struct ContentFeatures
void serializeOld(std::ostream &os, u16 protocol_version) const;
void deSerializeOld(std::istream &is, int version);
/*!
* Since vertex alpha is no lnger supported, this method
* adds instructions to the texture names to blend alpha there.
* Since vertex alpha is no longer supported, this method
* adds opacity directly to the texture pixels.
*
* tiledef, tiledef_special and alpha must be initialized
* before calling this.
* \param tiles array of the tile definitions.
* \param length length of tiles
*/
void correctAlpha();
void correctAlpha(TileDef *tiles, int length);
/*
Some handy methods