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++; }
public override void Draw(RendererContext rc) { if (MyModel != null) { MyModel.EnableLighting = !NoLighting; rc.DrawModel(MyModel, this.WorldMatrix, 1, Scene); } else this.ErrorCount++; }