Skip to content

Instantly share code, notes, and snippets.

@nyoicode
nyoicode / ChoasLinesShader.metal
Created May 23, 2024 02:25 — 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);