示例#1
0
        public static IBufferable GetModel(float radius = 1.0f)
        {
            TeapotModel model = TeapotLoader.GetModel();

            if (radius != 1.0f)
            {
                for (int i = 0; i < model.positions.Count; i++)
                {
                    model.positions[i] *= radius;
                }
            }

            return(model);
        }
示例#2
0
        internal static TeapotModel GetModel(float radius = 1.0f)
        {
            TeapotModel model = TeapotLoader.GetModel();

            if (radius != 1.0f)
            {
                for (int i = 0; i < model.positions.Count; i++)
                {
                    model.positions[i] *= radius;
                }
            }
            model.positions = model.positions.Move2Center();

            return(model);
        }