Table of Contents

Combine meshes

API function: algo.combineMeshes

Use this feature to combine meshes and their assigned materials:

  • Combine several meshes into one mesh
  • Bake all materials from the combined meshes into a single material

The result is a similar looking model, but the number of draw calls is reduced.

These operations are performed:

  • Geometries are merged, but they aren't modified.
  • Texture coordinates are combined and repacked into a single atlas.
  • Material information is transferred to a single set of textures. This set is used by a single material that's applied to the combined mesh.

You can regenerate texture coordinates.

This feature bakes these maps:

  • Albedo
  • Normals
  • Opacity
  • Roughness
  • Specular
  • Metallic
  • Ambient occlusion

The output material contains the packed textures atlas: