Skip to content

Instantly share code, notes, and snippets.

@markst
markst / ChoasLinesShader.metal
Created January 11, 2024 20:58 — forked from realvjy/ChoasLinesShader.metal
Choas Lines - Metal Shader
// Lines
float hash( float n ) {
return fract(sin(n)*753.5453123);
}
// Slight modification of iq's noise function.
float noise(vector_float2 x )
{
vector_float2 p = floor(x);
vector_float2 f = fract(x);