1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 16:45:20 +02:00

Client map: do frustum culling via planes (#12710)

This commit is contained in:
DS
2022-09-18 15:28:53 +02:00
committed by GitHub
parent a428a0cf37
commit c9ed059d91
8 changed files with 113 additions and 42 deletions

View File

@@ -313,7 +313,7 @@ static scene::SMesh *createSpecialNodeMesh(Client *client, MapNode n,
std::vector<ItemPartColor> *colors, const ContentFeatures &f)
{
MeshMakeData mesh_make_data(client, false);
MeshCollector collector;
MeshCollector collector(v3f(0.0f * BS));
mesh_make_data.setSmoothLighting(false);
MapblockMeshGenerator gen(&mesh_make_data, &collector,
client->getSceneManager()->getMeshManipulator());