Sunrise - Radical Ed



// Sunrise, Radical Ed

#ifdef GL_ES
precision mediump float;
#endif

#define PI 3.14159265359

vec3 colorA = vec3(1.0,0.0,0.0);
vec3 colorB = vec3(0.7,0.7,1.0);

float plot (vec2 st, float pct){
return smoothstep( pct-0.2, pct, st.y); -
smoothstep( pct, pct+0.01, st.y);
}

void mainImage( out vec4 fragColor, in vec2 fragCoord ) {
vec2 st = fragCoord.xy/iResolution.xy;
vec3 color = vec3(0.0);

vec3 pct = vec3(abs(sin(iTime*0.1))+0.4);
vec3 pct2 = vec3(abs(sin(iTime*0.1)));
float yx=pct.x;

color = mix(colorA, colorB, pct.x);
color = mix(color,vec3(0.8*(pct2.x),0.6*(pct2.x),0.6*(pct2.x)),plot(st,pct.x-0.3));

fragColor = vec4(color,1.0);
}

Leave a Reply

Update cookies preferences