public NodeModuleGeneratorRidgedMultiFractal() { // pull the defaults from the noise module Frequency = (float)_module.Frequency; Lacunarity = (float)_module.Lacunarity; OctaveCount = _module.OctaveCount; Seed = _module.Seed; Quality = _module.Quality; InitModule(_module); }
public NodeModuleGeneratorPerlin() { // pull the defaults from the noise module Frequency = (float)_module.Frequency; Lacunarity = (float)_module.Lacunarity; Persistence = (float)_module.Persistence; OctaveCount = _module.OctaveCount; Seed = _module.Seed; Quality = _module.Quality; InitModule(_module); }
protected override void NodeGUIProperties() { GUILayout.BeginVertical(); Frequency = RTEditorGUI.FloatField(new GUIContent("Frequency", "Frequency of the first octave"), Frequency); Lacunarity = RTEditorGUI.FloatField(new GUIContent("Lacunarity", "Set Lacunarity"), Lacunarity); OctaveCount = RTEditorGUI.IntField(new GUIContent("OctaveCount", "How many octaves to generate"), OctaveCount); Seed = RTEditorGUI.IntField(new GUIContent("Seed", "Random Seed"), Seed); #if UNITY_EDITOR Quality = (LibNoise.QualityMode)UnityEditor.EditorGUILayout.EnumPopup(new GUIContent("Quality", "Quality Mode for noise"), Quality); #else GUILayout.Label(new GUIContent("Quality: " + Quality.ToString(), "Quality Mode for noise")); #endif GUILayout.EndVertical(); }