# SORTMODE_FRONT2BACK

Variable · category: Graphics

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

Mesh instances are sorted front to back. Depending on GPU and the scene, this option may give
better performance than [SORTMODE_MATERIALMESH](https://api.playcanvas.com/engine/variables/SORTMODE_MATERIALMESH.md) due to reduced overdraw.

```ts
const SORTMODE_FRONT2BACK: 4 = 4
```
