示例#1
0
 private void IterateOverStoredLayers(ref double result, int collectionLen, double xpos, double ypos)
 {
     for (int i = 0; i < collectionLen; i++)
     {
         Octave current = oc.octaves[i];
         double scale   = current.GetAmplitude();
         result += current.perlin.Generate(xpos * (i + 1) * (i + 1), ypos * (i + 1) * (i + 1)) * scale;
     }
 }
示例#2
0
 public void AddToOctaves(Octave oct)
 {
     octaves.Add(oct);
 }