Ejemplo n.º 1
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 ValueNoise(int seed, SCurve sCurve)
		{
			m_source = new LatticeNoise(seed);
			m_SCurve = sCurve;
		}
Ejemplo 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 GradientNoise2D(int seed, SCurve sCurve)
		{
			m_seed = seed;
			m_SCurve = sCurve;
		}