You can’t define this on program level. You can only control the render order of 3D objects via Object3D.renderOrder.