Ejemplo n.º 1
0
 public override void DrawInstanced(RendererContext rc, int count)
 {
     if (MyModel != null)
     {
         MyModel.EnableLighting = !NoLighting;
         rc.DrawModel(MyModel, count == 1 ? WorldMatrix : FreezingArcher.Math.Matrix.Identity, count, Scene);
     }
     else
         this.ErrorCount++;
 }
Ejemplo n.º 2
0
 public override void Draw(RendererContext rc)
 {
     if (MyModel != null)
     {
         MyModel.EnableLighting = !NoLighting;
         rc.DrawModel(MyModel, this.WorldMatrix, 1, Scene);
     }
     else
         this.ErrorCount++;
 }