Fix frustum culling and depth sorting for scenegraph ui.