mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 01:51:10 +00:00
Rework Mesh handling on scene importing.
-Reworked how meshes are treated by importer by using EditorSceneImporterMesh and EditorSceneImporterMeshNode. Instead of Mesh and MeshInstance, this allows more efficient processing of meshes before they are actually registered in the RenderingServer. -Integrated MeshOptimizer -Reworked internals of SurfaceTool to use arrays, making it more performant and easy to run optimizatons on.
This commit is contained in:
parent
06314c1b0e
commit
77a045e902
33 changed files with 8600 additions and 241 deletions
8
thirdparty/meshoptimizer/allocator.cpp
vendored
Normal file
8
thirdparty/meshoptimizer/allocator.cpp
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
// This file is part of meshoptimizer library; see meshoptimizer.h for version/license details
|
||||
#include "meshoptimizer.h"
|
||||
|
||||
void meshopt_setAllocator(void* (*allocate)(size_t), void (*deallocate)(void*))
|
||||
{
|
||||
meshopt_Allocator::Storage::allocate = allocate;
|
||||
meshopt_Allocator::Storage::deallocate = deallocate;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue