protected override void DrawTopDown(MapGraphics graphics) { renderer.texture = GraphicsUtil.TextureFromImage(GetInternalImage().Value); renderer.SetDrawCalls(graphics); graphics.drawLayers[(int)MapGraphics.DrawLayers.FillBuffers].Add(() => { var dimooof = GetDimensions(graphics); foreach (var dim in dimooof) { renderer.AddInstance( graphics.BillboardMatrix * Matrix4.CreateScale(dim.size.Width, 1, dim.size.Height) * Matrix4.CreateTranslation(dim.loc.X, 0, dim.loc.Y), graphics.GetObjectTextureLayer(GetInternalImage().Value), 1 ); } }); }