# SORTMODE_MATERIALMESH

Variable · category: Graphics

Source: https://github.com/playcanvas/engine/blob/f059dc005842f76e052cdf44d8370c8c7ec475ac/src/scene/constants.js#L1016

Mesh instances are sorted to minimize switching between materials and meshes to improve
rendering performance.

```ts
const SORTMODE_MATERIALMESH: 2 = 2
```
