Skip to content

Instantly share code, notes, and snippets.

View nitrodragon's full-sized avatar
👍
Coding (hopefully)

Reagan Russell nitrodragon

👍
Coding (hopefully)
  • Pacific Northwest, United States
View GitHub Profile
@Flafla2
Flafla2 / Perlin_Tiled.cs
Last active April 27, 2024 19:43
A slightly modified implementation of Ken Perlin's improved noise that allows for tiling the noise arbitrarily.
public class Perlin {
public int repeat;
public Perlin(int repeat = -1) {
this.repeat = repeat;
}
public double OctavePerlin(double x, double y, double z, int octaves, double persistence) {
double total = 0;