1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-24 21:35:21 +02:00

Remove fast faces (#13216)

Co-authored-by: Lars <larsh@apache.org>
This commit is contained in:
Vitaliy
2023-04-08 21:17:15 +03:00
committed by GitHub
parent c2a9ac24ac
commit 35929d27e3
5 changed files with 208 additions and 695 deletions

View File

@@ -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();