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; }
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(); }