示例#1
0
        private double CalcGrassDensity(double x, double z)
        {
            double result = 0.0;

            result += _Gen3.fBm(0.05 * x, 0, 0.05 * z, 4, 2.37152, 0.8571);
            return(result);
        }
示例#2
0
        protected double CalcCaveDensity(double x, double y, double z)
        {
            double result = 0.0;

            result += _Gen6.fBm(x * 0.04, y * 0.04, z * 0.04, 2, 2.0, 0.98);
            return(result);
        }
示例#3
0
        private double CalcBaseTerrain(double x, double z)
        {
            double result = 0.0;

            result += _Gen2.fBm(0.0009 * x, 0, 0.0009 * z, 3, 2.2341, 0.94321) + 0.4;
            return(result);
        }
示例#4
0
        private double CalcForestDensity(double x, double z)
        {
            double result = 0.0;

            result += _Gen1.fBm(0.03 * x, 0, 0.03 * z, 7, 2.3614521, 0.85431);
            return(result);
        }
示例#5
0
        private double CalcTemperature(double x, double z)
        {
            double result = 0.0;

            result += _Gen4.fBm(x * 0.0008, 0, 0.0008 * z, 7, 2.1836171, 0.7631);

            result = 32.0 + (result) * 64.0;

            return(result);
        }