Skip to content

Instantly share code, notes, and snippets.

@LoganBarnett
Created March 9, 2011 05:38
Show Gist options
  • Save LoganBarnett/861746 to your computer and use it in GitHub Desktop.
Save LoganBarnett/861746 to your computer and use it in GitHub Desktop.
noise = Perlin()
values = List[of single]()
for y in range(0, terrainData.heightmapHeight):
lerp = cast(single, y) / (terrainData.heightmapHeight)
height = noise.Noise(lerp * bumpiness)
values.Add(height)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment