Skip to content

Instantly share code, notes, and snippets.

View m1ckc3s's full-sized avatar

mickces m1ckc3s

View GitHub Profile
@radiofun
radiofun / simplewavenoise.metal
Last active May 26, 2026 18:27
Simple Wave with Noise
#include <metal_stdlib>
#include <SwiftUI/SwiftUI.h>
using namespace metal;
float hash21(float2 p) {
float3 p3 = fract(float3(p.xyx) * 0.1031);
p3 += dot(p3, p3.yzx + 33.33);
return fract((p3.x + p3.y) * p3.z);
}