public override void Draw(SharpRenderer renderer, bool drawEveryObject) { if (drawEveryObject || !DontDraw(renderer.Camera.GetPosition())) { objectManager.Draw(renderer, ModelNames, ModelMiscSetting, isSelected); } }
public override void Draw(bool drawEveryObject) { if (!drawEveryObject & Vector3.Distance(SharpRenderer.Camera.GetPosition(), Position) > Rend * SharpRenderer.far / 5000f) { return; } objectManager.Draw(objectEntry.ModelNames, isSelected); }