Exemplo n.º 1
0
        public static PrimitiveType GetPrimitiveType(this StrideTessellationMethod method)
        {
            if ((method & StrideTessellationMethod.PointNormal) == 0)
            {
                return(PrimitiveType.TriangleList);
            }

            var controlsCount = method.PerformsAdjacentEdgeAverage() ? 12 : 3;

            return(PrimitiveType.PatchList.ControlPointCount(controlsCount));
        }
Exemplo n.º 2
0
 public static bool PerformsAdjacentEdgeAverage(this StrideTessellationMethod method)
 {
     return((method & StrideTessellationMethod.AdjacentEdgeAverage) != 0);
 }