Rendering minimap

Where should I place code for minimap rendreing?



I’d like to render minimap to a texture and place it on a quad on GUI node. It looks that I can use two ways to inject minimap rendering. I may add a control to the quad and make this control.render function to render minimap to a separate viewport. Other option is to create a preViewPort at the RenderManager and use generated minimap texture from it later.



What place is more suitable and was intended for procedural texture render injection?