HOME
(current)
MEDIA GALLERY
NEWS
RESOURCES
RESOURCES
February/21
Jueves 11 fromscracth@hangar
MORE INFO
February/21
Some nice visuals from scratch!
view
//EDIT ME TO SEE CHANGES IN REALTIME IN THE LOGO //CLICK AGAIN IN THE LOGO TO CLOSE THiS EDITOR #ifdef GL_ES precision mediump float; #endif uniform vec2 u_resolution; uniform vec2 u_mouse; uniform float u_time; uniform sampler2D u_tex0; uniform vec2 u_tex0Resolution; float point(vec2 pos) { return 0.0; } void main() { vec2 uv = gl_FragCoord.xy/u_resolution.xy; //uv*=4.0; float pct = 0.0; float n = 0.25; float m = 1.75; float radius = 0.0625; float bcn = 0.0; float klr = 0.0; float lju = 0.0; float utr = 0.0; float center = -1.0; vec2 apoint = vec2(1.5, 0.50); vec3 color = vec3(pct); vec4 text = texture2D(u_tex0, uv); // barcelona bcn = (distance(uv * 2.0, vec2(n * sin(u_time * 0.31) / 2.0 + 1.0, n * sin(u_time * 0.8) * 2.0 + 1.0))); // karlsruhe klr = (distance(uv * 2.0, vec2(n * cos(u_time * 0.67) + 1.0, m * cos(u_time * 0.21) / 2.0 + 1.0))); // ljudmilla lju = (distance(uv * 2.0, vec2(m * cos(u_time * 0.59) / 2.0 + 1.0, n * sin(u_time * 0.1) + 1.0))); // utrecht utr = (distance(uv * 2.0, vec2(m * cos(u_time * 0.43) / 2.0 + 1.0, m * sin(u_time) / 2.0 + 1.0))); pct = 1.0 - sin(1.0 - text.x) * 20.0; pct /= bcn * klr * lju * utr - radius; pct = smoothstep(0.010, 0.025, pct ); // black pct *= 50.0; color *= text.xyz; color = vec3(pct); gl_FragColor = 1.0-vec4(color,1.0); }
NAME THIS!