private static string TerrainShadingAlgorithmToString(RayCastedTerrainShadingAlgorithm shading)
        {
            switch (shading)
            {
                case RayCastedTerrainShadingAlgorithm.ByHeight:
                    return "By Height";
                case RayCastedTerrainShadingAlgorithm.ByRaySteps:
                    return "Number of Ray Steps";
            }

            return string.Empty;
        }
Example #2
0
        private static string TerrainShadingAlgorithmToString(RayCastedTerrainShadingAlgorithm shading)
        {
            switch (shading)
            {
            case RayCastedTerrainShadingAlgorithm.ByHeight:
                return("By Height");

            case RayCastedTerrainShadingAlgorithm.ByRaySteps:
                return("Number of Ray Steps");
            }

            return(string.Empty);
        }