Exemplo n.º 1
0
    public override void OnValidate()
    {
        Debug.Log("tiling3 validate");
        if (generator == null)
        {
            //generator = new RidgeGen2D();
            generator = new Perlin2DGenerator();
            generator.newNoise(noise_con_set);
        }

        viewer = GetComponent <NoiseViewer>();
        viewer.setNoiseController(this);
        sendNoiseToViewer();
    }
Exemplo n.º 2
0
    public override void OnValidate()
    {
        Debug.Log("Noise Controler: OnValidate");

        if (generator == null)
        {
            generator = new Perlin2DGenerator();
            generator.newNoise(noise_con_set);
        }

        viewer = GetComponent <NoiseViewer>();
        viewer.setNoiseController(this);
        Debug.Log("is view null: " + viewer == null);
        sendNoiseToViewer();
    }
Exemplo n.º 3
0
 public void newNoise(NoiseControlerSettings settings)
 {
     perlin.newNoise(settings);
     noise_set = settings;
     getEdgeNoise();
 }
Exemplo n.º 4
0
 public void newNoise(NoiseControlerSettings settings)
 {
     perlin.newNoise(settings);
 }