I have glsl Fragment shader code need to change the line color, background color and, direction of the sine wave
eprecision mediump float;
#endif
uniform vec2 u_resolution;
uniform vec2 u_mouse;
uniform float u_time;
void main() {
vec2 uv = (gl_FragCoord.xy - u_resolution * 0.7) / max(u_resolution.x, u_resolution.y) * 3.0;
uv *= 1.0;
float e = 0.0;
for (float i=3.0;i<=15.0;i+=1.0) {
e += 0.007/abs( (i/15.) +sin((u_time/2.0) + 0.15*i*(uv.x) *( cos(i/4.0 +
(u_time / 2.0) + uv.x*2.2) ) ) + 2.5*uv.y);
gl_FragColor = vec4( vec3(e/1.6, e/11.6, e/1.6), 1.0);
}
}
Lines are now in blue, background is black and direction is x axis, I need a help to change the line color to be black, background white and direction
(vertical).
And im looking for something like this, it would be greatly appreciated if you guys could help me.
