onRenderItemsRegistered method
Called after this component registers its render items, on mount and on
every re-registration (mesh assignment, refreshMaterials).
Subclasses that decorate the registered items (the LOD component tags them with its selection) must do so here rather than in onMount, or the decoration is lost when the items are rebuilt.
Implementation
@override
void onRenderItemsRegistered() {
// Tag the items the base class just registered so the encoder selects a
// level per view instead of drawing the highest-detail fallback. Runs on
// every re-registration, so the tags survive material refreshes.
for (final item in renderItems) {
item.lod = _selection;
}
}