Пример #1
0
        public override void OnRender()
        {
            base.OnRender();
            if (Vector3.Distance(Camera.Position, GetComponent <Transform>().Position) > Camera.RenderingDistance)
            {
                return;
            }

            _loader.Draw(GetComponent <Transform>().ModelMatrix);
        }