コード例 #1
0
 //Alternate addLayer method that automatically generates random seed for that layer
 public void addLayer(float scale, float height, float heightMax, float heightMin, float offset, Color colorOne, Color colorTwo)
 {
     addLayer(scale, height, heightMax, heightMin, offset, colorOne, colorTwo, TerrainRandomizer.getMasterSeed());
 }
コード例 #2
0
 //Alternate addLayer method that automatically adds random seed for that layer
 public void addPass(int layer, float scale, float height, float heightMax, float heightMin)
 {
     addPass(layer, scale, height, heightMax, heightMin, TerrainRandomizer.getMasterSeed());
 }
コード例 #3
0
 //Alternate creation method excluding seed input parameter, uses master seed instead
 public void CreateTerrainHeightGenerator(float scale, float height, float heightMax, float heightMin, Color colorOne, Color colorTwo)
 {
     CreateTerrainHeightGenerator(scale, height, heightMax, heightMin, colorOne, colorTwo, TerrainRandomizer.getMasterSeed());
 }