instancing version of https://github.com/bartwronski/CSharpRenderer