protected double Height(DVec3 pos)
        {
            var h = SimplexNoise.noise(pos.x * _invNoiseSize, pos.y * _invNoiseSize, pos.z * _invNoiseSize);

            return((h < blackLevel) ? blackLevel : h);
        }
Ejemplo n.º 2
0
 private double _PartialZ(double x, double y, double z, Vector3 offset)
 {
     return((SimplexNoise.noise(offset.x + x * _invNoiseScale, offset.y + y * _invNoiseScale, offset.z + z * _invNoiseScale + DELTA)
             - SimplexNoise.noise(offset.x + x * _invNoiseScale, offset.y + y * _invNoiseScale, offset.z + z * _invNoiseScale - DELTA))
            * _invTwoDelta);
 }