glsl-noise

Installation
SKILL.md

GLSL Noise Functions

Hash / Random

Fast pseudo-random from a seed. Not continuous — produces white noise.

// Float hash from vec2 seed
float hash(vec2 p) {
  return fract(sin(dot(p, vec2(127.1, 311.7))) * 43758.5453);
}

// Float hash from float seed
float hash(float n) {
  return fract(sin(n) * 43758.5453123);
}
Related skills
Installs
1
GitHub Stars
2
First Seen
Apr 14, 2026