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

            objectManager.Draw(objectEntry.ModelNames, isSelected);
        }