public void Generate(RenderTexture targetRt, GNoiseMapGeneratorParams param)
        {
            Mat.SetVector("_Origin", param.Origin);
            Mat.SetFloat("_Frequency", param.Frequency);
            Mat.SetFloat("_Lacunarity", param.Lacunarity);
            Mat.SetFloat("_Persistence", param.Persistence);
            Mat.SetInt("_Octaves", param.Octaves);
            Mat.SetFloat("_Seed", param.Seed);

            GCommon.DrawQuad(targetRt, GCommon.FullRectUvPoints, Mat, (int)param.Type);
        }
        private void DrawNoiseMapParams()
        {
            GNoiseMapGeneratorParams param = GTextureToolParams.Instance.Noise;

            param.Type        = (GNoiseType)EditorGUILayout.EnumPopup("Type", param.Type);
            param.Origin      = GEditorCommon.InlineVector2Field("Origin", param.Origin);
            param.Frequency   = EditorGUILayout.FloatField("Frequency", param.Frequency);
            param.Lacunarity  = EditorGUILayout.FloatField("Lacunarity", param.Lacunarity);
            param.Persistence = EditorGUILayout.FloatField("Persistence", param.Persistence);
            param.Octaves     = EditorGUILayout.IntField("Octaves", param.Octaves);
            param.Seed        = EditorGUILayout.FloatField("Seed", param.Seed);

            lockLivePreviewTerrain = false;

            GTextureToolParams.Instance.Noise = param;
        }
        public void Generate(RenderTexture targetRt)
        {
            GNoiseMapGeneratorParams param = GTextureToolParams.Instance.Noise;

            Generate(targetRt, param);
        }