mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Update mesh collector and move it to a separate file (#6904)
* Update MeshCollector * Simplify MeshCollector
This commit is contained in:
parent
8986a9e605
commit
9fcc0c1217
8 changed files with 222 additions and 291 deletions
|
@ -27,6 +27,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include "mesh.h"
|
||||
#include "content_mapblock.h"
|
||||
#include "mapblock_mesh.h"
|
||||
#include "client/meshgen/collector.h"
|
||||
#include "client/tile.h"
|
||||
#include "log.h"
|
||||
#include "util/numeric.h"
|
||||
|
@ -304,7 +305,7 @@ void WieldMeshSceneNode::setExtruded(const std::string &imagename,
|
|||
scene::SMesh *createSpecialNodeMesh(Client *client, content_t id, std::vector<ItemPartColor> *colors)
|
||||
{
|
||||
MeshMakeData mesh_make_data(client, false, false);
|
||||
MeshCollector collector(false);
|
||||
MeshCollector collector;
|
||||
mesh_make_data.setSmoothLighting(false);
|
||||
MapblockMeshGenerator gen(&mesh_make_data, &collector);
|
||||
gen.renderSingle(id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue