Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public static TerainNode Create()
        {
            var model = new TerainModel();
            RenderMethodBuilder defaultBuilder;
            {
                var vs       = new VertexShader(vert);
                var fs       = new FragmentShader(frag);
                var provider = new ShaderArray(vs, fs);
                var map      = new AttributeMap();
                defaultBuilder = new RenderMethodBuilder(provider, map, new PolygonModeState(PolygonMode.Line));
            }

            var node = new TerainNode(model, defaultBuilder);

            node.Initialize();

            return(node);
        }
Esempio n. 2
0
        private SceneNodeBase GetTree()
        {
            var node = TerainNode.Create();

            return(node);
        }
Esempio n. 3
0
 private SceneNodeBase GetTree()
 {
     this.terrainNode = TerainNode.Create();
     return(this.terrainNode);
 }