Exemple #1
0
        public PerlinNoise(int seed, float frequency, float amplitude = 1.0f)
        {
            Frequency = frequency;
            Amplitude = amplitude;
            Offset    = Vector3.zero;

            Perm = new PermutationTable(1024, 255, seed);
        }
        public WorleyNoise(int seed, float frequency, float jitter, float amplitude = 1.0f)
        {
            Frequency   = frequency;
            Amplitude   = amplitude;
            Offset      = Vector3.zero;
            Jitter      = jitter;
            Distance    = VORONOI_DISTANCE.EUCLIDIAN;
            Combination = VORONOI_COMBINATION.D1_D0;

            Perm = new PermutationTable(1024, 255, seed);
        }
Exemple #3
0
        public VoronoiNoise(int seed, float frequency, float amplitude = 1.0f)
        {
            Frequency = frequency;
            Amplitude = amplitude;
            Offset    = Vector3.zero;

            Distance    = VORONOI_DISTANCE.EUCLIDIAN;
            Combination = VORONOI_COMBINATION.D1_D0;

            Perm = new PermutationTable(1024, int.MaxValue, seed);
        }