diff options
| author | Vitaliy <numzer0@yandex.ru> | 2023-04-08 21:17:15 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-08 20:17:15 +0200 |
| commit | 35929d27e3a93085c3a27180c1805711dcfe95d5 (patch) | |
| tree | 5b7326c17d27103ae2876078b888df70eacc2283 /src/client/content_mapblock.h | |
| parent | c2a9ac24ac2e74b111b4bbdf42ee3a62514bc7a2 (diff) | |
| download | minetest-35929d27e3a93085c3a27180c1805711dcfe95d5.tar.xz | |
Remove fast faces (#13216)
Co-authored-by: Lars <larsh@apache.org>
Diffstat (limited to 'src/client/content_mapblock.h')
| -rw-r--r-- | src/client/content_mapblock.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/content_mapblock.h b/src/client/content_mapblock.h index b13748cbc..2f01dc7f6 100644 --- a/src/client/content_mapblock.h +++ b/src/client/content_mapblock.h @@ -99,11 +99,10 @@ public: float vertical_tiling = 1.0); // cuboid drawing! - void drawCuboid(const aabb3f &box, TileSpec *tiles, int tilecount, - const LightInfo *lights , const f32 *txc, u8 mask = 0); + template <typename Fn> + void drawCuboid(const aabb3f &box, TileSpec *tiles, int tilecount, const f32 *txc, u8 mask, Fn &&face_lighter); void generateCuboidTextureCoords(aabb3f const &box, f32 *coords); - void drawAutoLightedCuboid(aabb3f box, const f32 *txc = NULL, - TileSpec *tiles = NULL, int tile_count = 0, u8 mask = 0); + void drawAutoLightedCuboid(aabb3f box, f32 const *txc = nullptr, TileSpec *tiles = nullptr, int tile_count = 0, u8 mask = 0); u8 getNodeBoxMask(aabb3f box, u8 solid_neighbors, u8 sametype_neighbors) const; // liquid-specific @@ -154,6 +153,7 @@ public: float offset_h, float offset_v = 0.0); // drawtypes + void drawSolidNode(); void drawLiquidNode(); void drawGlasslikeNode(); void drawGlasslikeFramedNode(); |
