Example #1
0
        public static float terrainGrasslandHills(int x, int y, OpenSimplexNoise simplex, CellNoise cell, float river, float vWidth, float vHeight, float hWidth, float hHeight, float bHeight)
        {
            float h = simplex.noise2(x / vWidth, y / vWidth);

            h = blendedHillHeight(h, 0.3f);

            float m = simplex.octave(1).noise2(x / hWidth, y / hWidth);

            m  = blendedHillHeight(m, 0.3f) * h;
            m *= m;

            h *= vHeight * river;
            m *= hHeight * river;

            h += TerrainBase.groundNoise(x, y, 4f, simplex);

            return(riverized(bHeight, river) + h + m);
        }
Example #2
0
 override public float added(RTGWorld rtgWorld, float x, float y)
 {
     return(TerrainBase.groundNoise(x, y, amplitude, rtgWorld.simplex));
 }