Created
February 14, 2022 08:36
-
-
Save antoinefortin/915924c1bc60f7e7119852911f5ae49c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void mainImage( out vec4 fragColor, in vec2 fragCoord ) | |
{ | |
vec2 m = iMouse.xy/iResolution.xy; | |
float speed = .1; | |
float scale = 0.0095; | |
vec2 p = fragCoord * scale; | |
for(int i=1; i<12 ; i++){ | |
// p.x+=(sin( 0.25)) * 0.75/float(i)*sin(float(i)*2.*p.y+iTime*speed)+ (iTime * 110. * m.x)/1000.; | |
// p.y+=(sin( .25 + sin(m.x * 12.))) * 0.75/float(i)*cos(float(i)*5.*p.x+iTime*speed)+(iTime * .69)/1000.; | |
p.x += sin(float(i)); | |
p.y += cos(p.x); | |
} | |
/* | |
TEMP | |
*/ | |
/* | |
float r=cos(p.x+p.y+ sin(m.x * 5.) +1.025)*.9 + 0.33; | |
float g=sin(p.x+p.y+1.)*.55+.5; | |
float b=(sin(p.x+p.y)+cos(p.x+(p.y))); | |
*/ | |
//float r = (sin(p.x+p.y)); | |
float r=cos(p.x+p.y+ sin(m.x * 5.) +1.025)*.9 + 0.33; | |
float g= abs(sin(p.x + p.y)); | |
float b=(sin(p.x+p.y)+cos(p.x+(p.y))); | |
vec3 color = vec3(p.x / p.y,p.y,sin(p.x)); | |
fragColor = vec4(color,1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment