From fc8ea1d828a6b00c3c0ac0ed31c45fdad61a0c9c Mon Sep 17 00:00:00 2001 From: "K. S. Ernest (iFire) Lee" Date: Fri, 9 Apr 2021 22:44:36 -0700 Subject: Update with experimental mesh optimizer. Normals being optimized has better quality now. Test simplify once and then use a slightly less tolerant error for the target error. --- modules/meshoptimizer/register_types.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'modules') diff --git a/modules/meshoptimizer/register_types.cpp b/modules/meshoptimizer/register_types.cpp index a03310f518..77cc82a4e2 100644 --- a/modules/meshoptimizer/register_types.cpp +++ b/modules/meshoptimizer/register_types.cpp @@ -35,6 +35,7 @@ void register_meshoptimizer_types() { SurfaceTool::optimize_vertex_cache_func = meshopt_optimizeVertexCache; SurfaceTool::simplify_func = meshopt_simplify; + SurfaceTool::simplify_with_attrib_func = meshopt_simplifyWithAttributes; SurfaceTool::simplify_scale_func = meshopt_simplifyScale; SurfaceTool::simplify_sloppy_func = meshopt_simplifySloppy; } -- cgit v1.2.3