Skip to content

Instantly share code, notes, and snippets.

View kymckay's full-sized avatar

Kyle Mckay kymckay

  • London
  • 04:02 (UTC +01:00)
View GitHub Profile
@kymckay
kymckay / perlin.lua
Last active July 16, 2024 09:18
Perlin Noise in Lua
--[[
Implemented as described here:
http://flafla2.github.io/2014/08/09/perlinnoise.html
]]--
perlin = {}
perlin.p = {}
-- Hash lookup table as defined by Ken Perlin
-- This is a randomly arranged array of all numbers from 0-255 inclusive