getNextRenderItem method
Implementation
RenderItem getNextRenderItem(
Object3D object,
BufferGeometry? geometry,
Material? material,
int groupOrder,
double z,
Map<String, dynamic>? group
) {
RenderItem? renderItem = renderItems[renderItemsIndex];
if (renderItem == null) {
renderItem = RenderItem.fromMap({
"id": object.id,
"object": object,
"geometry": geometry,
"material": material,
"groupOrder": groupOrder,
"renderOrder": object.renderOrder,
"z": z,
"group": group
});
}
else {
renderItem = RenderItem(
id: object.id,
object: object,
geometry: geometry,
material: material,
groupOrder: groupOrder,
renderOrder: object.renderOrder,
z: z,
group: group
);
}
renderItems[renderItemsIndex] = renderItem;
renderItemsIndex++;
return renderItem;
}