コード例 #1
0
 public BillowModule3D(INoiseCore3D noiseCore, double frequency, double amplitude, int octaves, double persistence = 0.5, double lacunarity = 2)
     : base(frequency, amplitude, octaves, persistence, lacunarity)
 {
     if (noiseCore == null)
     {
         throw new ArgumentNullException("Noise core is null");
     }
     _noise = noiseCore;
 }
コード例 #2
0
 public RidgedModule3D(INoiseCore3D noiseCore, double frequency, double amplitude, int octaves, double persistence = 0.5, double lacunarity = 2)
     : base(frequency, amplitude, octaves, persistence, lacunarity)
 {
     if (noiseCore == null)
     {
         throw new ArgumentNullException("Noise core is null");
     }
     _noise          = noiseCore;
     _spectralWeight = CalculateSpectralWeights();
 }