Skip to content

Instantly share code, notes, and snippets.

View ToxiicMarker69's full-sized avatar

ToxiicMarker69

View GitHub Profile
@ToxiicMarker69
ToxiicMarker69 / gist:2ed9605ca9e6cdb9516ae44a5bc48c44
Created April 2, 2021 00:50 — forked from jstanden/gist:1489447
Simplex Noise in C# for Unity3D - Adapted from James Livingston's MinePackage: http://forum.unity3d.com/threads/minepackage-minecraft-starter-package.69573/
using UnityEngine;
using System.Collections;
public class SimplexNoiseGenerator {
private int[] A = new int[3];
private float s, u, v, w;
private int i, j, k;
private float onethird = 0.333333333f;
private float onesixth = 0.166666667f;
private int[] T;