public static bool isRenderLod(float x, float y, float z, float size, OcTree control) { if (!control.useLod) return size == control.sizes[control.maximumDetail]; return getDistSquare(control.getLocalCamPosition(), new Vector3(x + 0.5f, y + 0.5f, z + 0.5f), size) >= size * size * control.getLodDetail(); }