Advertisement
Guest User

Untitled

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