Exemplo n.º 1
0
        public void randomise()
        {
            randomiseSeeds();


            randomiseNoise(surfaceNoise);


            randomiseNoise(landNoise);
            landColour0 = MathsUtils.randomColour();
            landColour1 = MathsUtils.randomColour();
            landColour2 = MathsUtils.randomColour();
            landColour3 = MathsUtils.randomColour();
            randomiseNoise(landColourNoise01);
            randomiseNoise(landColourNoise23);


            waterColour0  = MathsUtils.randomColour();
            waterColour1  = MathsUtils.randomColour();
            waterLevel    = Random.Range(0f, 1f);
            waterSpecular = Random.Range(0f, 1f);
            waterFalloff  = Random.Range(0.1f, 20);


            iceColour = MathsUtils.randomColour();
            iceReach  = Random.Range(0f, 1f);
            iceHeight = Random.Range(0f, 1f);


            shadowRange    = Random.Range(0f, 100f);
            shadowStrength = Random.Range(0f, 1f);


            cityReach        = Random.Range(0f, 1f);
            cityHeight       = Random.Range(0f, 1f);
            cityColour       = MathsUtils.randomColour();
            cityCount        = Random.Range(0, 32);
            cityMultiplier   = Random.Range(1, 6);
            cityDropoff      = Random.Range(1, 10);
            cityDepth        = Random.Range(1, 5);
            citySpread       = Random.Range(0.25f, 4f);
            cityIntensity    = Random.Range(8f, 128f);
            maxCityIntensity = Random.Range(4f, 64f);
            cityFalloff      = Random.Range(0.25f, 2f);


            randomiseNoise(cloudNoise);
            cloudWorleyNoiseOctaves   = Random.Range(0, 10);
            cloudWorleyNoiseFrequency = Random.Range(1f, 100f);
            cloudWorleyNoiseAmplitude = Random.Range(1f, 10f);


            cloudShadowRange    = Random.Range(0f, 100f);
            cloudShadowStrength = Random.Range(0f, 1f);


            cloudColour0 = MathsUtils.randomColour();
            cloudColour1 = MathsUtils.randomColour();
            cloudSpin    = Random.Range(1f, 10f);
        }