mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
MeshMakeData: Explain members, and add grid size and minimap flag
This commit is contained in:
@@ -309,8 +309,9 @@ void WieldMeshSceneNode::setExtruded(const std::string &imagename,
|
||||
static scene::SMesh *createSpecialNodeMesh(Client *client, MapNode n,
|
||||
std::vector<ItemPartColor> *colors, const ContentFeatures &f)
|
||||
{
|
||||
MeshMakeData mesh_make_data(client->ndef(), 1);
|
||||
MeshMakeData mesh_make_data(client->ndef(), 1, client->getMeshGrid());
|
||||
MeshCollector collector(v3f(0.0f * BS), v3f());
|
||||
mesh_make_data.m_generate_minimap = false;
|
||||
mesh_make_data.m_smooth_lighting = false;
|
||||
mesh_make_data.m_enable_water_reflections = false;
|
||||
MapblockMeshGenerator gen(&mesh_make_data, &collector);
|
||||
|
Reference in New Issue
Block a user