-
-
Save todorok1/6c0d6df763db3b0aa9b0b08ba485b33d to your computer and use it in GitHub Desktop.
パーリンノイズを重ね合わせてより自然な地形を作ることを目指したサンプル
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
/// <Summary> | |
/// パーリンノイズを重ね合わせて | |
/// より変化に富んだフィールドを生成するクラスです。 | |
/// </Summary> | |
public class FieldGeneratorMultiPerlin : FieldGenerator | |
{ | |
// パーリンノイズのオフセットで使用する乱数のシードです。 | |
public int seed = 0; | |
// パーリンノイズを重ね合わせる回数を設定します。 | |
public int addTimes = 3; | |
// パーリンノイズを重ね合わせる回数を設定します。 | |
public int multipleTimes = 2; | |
// 足し合わせるか、乗算するかのフラグです。 | |
bool isAddMode; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment