Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float f(vec2 p,float t){
- int x=int(p.x),y=int(p.y),
- v=((x*412)^(((y/((x&3)|1))^(x*11))*23))^((((x*24)^(y*2))*32)^(y*28));
- v^=((((y*2)^(x*32))*12)^((x*13)^(((y^23)*24)+(x^39))));
- v^=((x*24)^(y*10))*3;
- return fract(float(v)/pow(mod(t,8.),8.));
- }
- vec3 saturate(vec3 c,float s){
- return mix(vec3((c.r+c.g+c.b)/3.),c,s);
- }
- void mainImage(out vec4 fragColor,in vec2 fragCoord){
- vec2 p=fragCoord;
- vec3 o=vec3(0.);
- float t=iTime-((p.x/800.)*(p.y/900.));
- for(int i=0;i<6;i++){
- o[i%3]+=f(p,t+(float(i)*.001));
- }
- fragColor=vec4(saturate(o/1.4,p.x*.05),1.);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement