You can set BABYLON.RenderingManager.MAX_RENDERINGGROUPS
to the number of groups you want.
Note that you will incur some performance and/or memory penalty because a RenderingGroup
instance is created for each render group. However, you will need to profile your app to see if it’s a bottleneck for you or not.