예제 #1
0
        public QuadPatch( Terrain terrain, QuadPatchVertices vertices, Color patchColour, float x, float z, float w, float d )
        {
            m_Rs.FaceRenderMode = PolygonRenderMode.Lines;
            m_Rs.Colour = patchColour;

            m_Terrain = terrain;
            m_Vertices = vertices;
            m_X = x;
            m_Z = z;
            m_Width = w;
            m_Depth = d;

            m_IncreaseDetailDistance = float.MaxValue;
            m_VbIndex = vertices.Allocate( );

            m_BuildVertices = true;
            m_BuildIndices = true;
        }
 public QuadPatchTree( Terrain terrain )
 {
     terrain.SetTerrainArea( Width, Height );
     m_Vertices = new QuadPatchVertices( );
     m_Root = new QuadPatch( terrain, m_Vertices, Color.Black, -Width / 2, -Height / 2, Width, Height );
 }