Mirror Engine Logo
How To
Mirror Engine Logo

Variable: SORTMODE_FRONT2BACK

const SORTMODE_FRONT2BACK: number = 4

Mesh instances are sorted front to back. Depending on GPU and the scene, this option may give better performance than SORTMODE_MATERIALMESH due to reduced overdraw.