city-generation/Game/Assets/Scripts/Noise/PerlinNoiseGenerator.cs
2015-05-08 13:20:13 +03:00

17 lines
350 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;
}
}
}