Skip to content

Instantly share code, notes, and snippets.

View kk98033's full-sized avatar
🤡
😂📸🤡

Chia Yu kk98033

🤡
😂📸🤡
View GitHub Profile
@kk98033
kk98033 / Perlin_Tiled.cs
Created January 2, 2023 16:10 — forked from Flafla2/Perlin_Tiled.cs
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;