Beispiel #1
0
 public SubmeshNode(SceneNode parent, Geometry g) : base(parent)
 {
     count = g.Count;
     offset = g.Offset;
 }
 public void NextGeometry()
 {
     var current = submeshes.Last();
     if (current.Count == 0) return;
     var g = new Geometry
                 {
                     Material = current.Material,
                     Offset = triangles.Count * Vector3i.Size,
                     Count = 0
                 };
     submeshes.Add(g);
 }