Skip to content

Instantly share code, notes, and snippets.

View Leslieghf's full-sized avatar

Leslie-John Richardson Leslieghf

View GitHub Profile
@Leslieghf
Leslieghf / PerlinMapGeneratorComputeShader.compute
Created September 24, 2022 13:31
A Compute Shader(Unity Engine) Implementation of Improved Perlin Noise
// C# SOURCE CODE, FROM WHICH THIS SHADER HAS BEEN PORTED: https://gist.github.com/Flafla2/f0260a861be0ebdeef76
#pragma kernel Initialize
#pragma kernel ComputePerlinPixels
struct PerlinPixel
{
int positionX;
int positionY;
float perlinValue;