mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00:00
MeshMakeData: Explain members, and add grid size and minimap flag
This commit is contained in:
parent
c0ce918d77
commit
d044c27b5f
6 changed files with 49 additions and 35 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue