예제 #1
0
파일: Body.cs 프로젝트: zameran/SpaceW
        private void DrawTerrain(TerrainNode node, int layer)
        {
            // So, if doesn't have any samplers - do anything...
            if (node.Samplers.Count == 0 || node.SamplersSuitable.Count == 0)
            {
                return;
            }

            // Find all the quads in the terrain node that need to be drawn
            node.FindDrawableQuads(node.TerrainQuadRoot);

            // The draw them
            node.DrawQuads(node.TerrainQuadRoot, QuadMesh, MPB, layer);
        }