SnowCrash Project - Radical Ed



precision highp float;

float random(vec2 pos) {

return fract(sin(dot(pos.xy, vec2(1.337, 71.1337))) * 43758.5453123);

}

void mainImage( out vec4 fragColor, in vec2 fragCoord ) {

vec2 position = ( fragCoord.xy / iResolution.xy ) + sin(iTime) ;

fragColor = vec4(random(position));

}

Leave a Reply

Update cookies preferences