Skip to content

Instantly share code, notes, and snippets.

View Quentin-H's full-sized avatar
🦆
Working from home

Quentin Herzig Quentin-H

🦆
Working from home
View GitHub Profile
@Quentin-H
Quentin-H / gist:4646f1dcd7e97b5bbf45677416734e95
Last active September 19, 2016 01:37 — 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;