Skip to content

Instantly share code, notes, and snippets.

View frostu8's full-sized avatar
🗨️
Funky

Dante Helmore frostu8

🗨️
Funky
View GitHub Profile
@munrocket
munrocket / wgsl_noise.md
Last active September 10, 2025 07:57
WGSL Noise Algorithms

WGSL Noise Algorithms

Good and fast integer hash

// https://www.pcg-random.org/
fn pcg(n: u32) -> u32 {
    var h = n * 747796405u + 2891336453u;
    h = ((h >> ((h >> 28u) + 4u)) ^ h) * 277803737u;
    return (h >> 22u) ^ h;
}