diff options
author | Dániel Juhász <juhdanad@gmail.com> | 2017-04-21 15:34:59 +0200 |
---|---|---|
committer | Zeno- <kde.psych@gmail.com> | 2017-04-21 23:34:59 +1000 |
commit | 1ffb180868ffcec6812cd3aac8f56ffefb91c8bc (patch) | |
tree | 2b7dc1d209bda384fbd995dc7f13ffdd3587818f /src/nodedef.h | |
parent | 2ad74a9e8b9da48aef62346de6cd55f304c6440d (diff) | |
download | hax-minetest-server-1ffb180868ffcec6812cd3aac8f56ffefb91c8bc.tar.gz hax-minetest-server-1ffb180868ffcec6812cd3aac8f56ffefb91c8bc.zip |
Soft node overlay (#5186)
This commit adds node overlays, which are tiles that are drawn on top of
other tiles.
Diffstat (limited to 'src/nodedef.h')
-rw-r--r-- | src/nodedef.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nodedef.h b/src/nodedef.h index 83968ce27..4d3bacc6c 100644 --- a/src/nodedef.h +++ b/src/nodedef.h @@ -280,6 +280,8 @@ struct ContentFeatures #endif float visual_scale; // Misc. scale parameter TileDef tiledef[6]; + // These will be drawn over the base tiles. + TileDef tiledef_overlay[6]; TileDef tiledef_special[CF_SPECIAL_COUNT]; // eg. flowing liquid // If 255, the node is opaque. // Otherwise it uses texture alpha. @@ -405,7 +407,7 @@ struct ContentFeatures } #ifndef SERVER - void fillTileAttribs(ITextureSource *tsrc, TileSpec *tile, TileDef *tiledef, + void fillTileAttribs(ITextureSource *tsrc, TileLayer *tile, TileDef *tiledef, u32 shader_id, bool use_normal_texture, bool backface_culling, u8 material_type); void updateTextures(ITextureSource *tsrc, IShaderSource *shdsrc, |