city-generation/Game/Assets/Scripts/Noise/PerlinNoiseGenerator.cs
2015-03-03 18:47:18 +02:00

17 lines
366 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
namespace TransportGame.Noise
{
public class PerlinNoiseGenerator : NoiseGenerator
{
protected override float GenerateNoise(float x, float y)
{
return Mathf.PerlinNoise(x, y) * 2 - 1.0f;
}
}
}