Hi, I have a custom HLMS implementation to render the 3D objects in wireframe and supporting different render settings of the same scene in multiple windows at the same time. As an example, here a screenshot of 2 windows - left is just a wireframe rendering, right is same scene rendered with detection of the hidden lines and applying custom style to them (color / line pattern).

I would like in left window to combine wireframe with the rendered triangles using the PBS materials. I am aware that I can just create new item per object and assign PBS datablock to it and according to my rendersettings, handle the visibility of this item per window. My concern is about adding this new extra item per object. I already have up to 3 items for a single rendered object - faces (due to hidden lines detection), thin wireframe and thick wireframe. Supporting the PBS material would mean adding a 4th item.
The question is, is it possible and thinkable to integrate somehow the PBS materials into my HLMS so I can somehow redirect rendering of my Ogre::Item for faces to be rendered as PBS material so I don't have to add new extra Ogre::Item there? I have several concerns:
- as the custom HLMS, I have custom datablocks - this need to "subclass" (as member?) the PBS datablocks
- in the case of rendering an item with PBS datablock, I have to redirect all the virtual calls to PBS hlms (which will be them also as new member of my HLMS?)
- some other details which I am not aware of right now? ...
Should I be concerned about number of the items in scene? In ogre-next, I found somewhere in the description, that it should handled 100K+ (?) .. but still I would rather ask about the opinion and possible directions here.
