Esempio n. 1
0
 /// <summary>
 /// Create new generator with specified seed and interpolation algorithm. Different interpolation algorithms can make settings smoother at the expense of speed.
 /// </summary>
 /// <param name="seed">settings seed</param>
 /// <param name="sCurve">Interpolator to use. Can be null, in which case default will be used</param>
 public ValueNoise2D(int seed, SCurve sCurve)
 {
     m_Source = new CoherentNoise.LatticeNoise(seed);
     m_SCurve = sCurve;
 }
Esempio n. 2
0
 /// <summary>
 /// Create new generator with specified seed and interpolation algorithm. Different interpolation algorithms can make noise smoother at the expense of speed.
 /// </summary>
 /// <param name="seed">noise seed</param>
 /// <param name="sCurve">Interpolator to use. Can be null, in which case default will be used</param>
 public GradientNoise(int seed, SCurve sCurve)
 {
     m_Seed = seed;
     m_SCurve = sCurve;
 }