editing on RPI

pull/19/head
Patricio Gonzalez Vivo 9 years ago
parent be5d044355
commit ab2204c233

@ -73,6 +73,11 @@ float cascade(vec2 st, vec2 zoom, float time, float warp) {
void main() {
vec2 st = gl_FragCoord.xy/u_resolution.xy;
if (u_resolution.x>u_resolution.y) {
st.x *= u_resolution.x/u_resolution.y;
} else {
st.y *= u_resolution.y/u_resolution.x;
}
vec3 color = vec3(0.0);
vec2 pos = st-vec2(.5);
float r = dot(pos,pos);
@ -86,4 +91,4 @@ void main() {
color *= 1.0-smoothstep(.11,.13,r);
gl_FragColor = vec4(color,1.0);
}
}

Loading…
Cancel
Save