/// <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); }
private SceneNodeBase GetTree() { var node = TerainNode.Create(); return(node); }
private SceneNodeBase GetTree() { this.terrainNode = TerainNode.Create(); return(this.terrainNode); }