scene.org File Archive

File download

<root>­/­parties­/­2014­/­tokyodemofest14­/­7_lines_glsl_graphics_compo/munyu_munyu-0x4015.zip

File size:
2 946 bytes (2.88K)
File date:
2014-04-06 23:04:12
Download count:
all-time: 123

Preview

  • 7line_glsl_0x4015/ dir
  • 7line_glsl_0x4015/7line_0x4015_ver3.glsl.txt 604B

file_id.diz

#ifdef GL_ES
precision mediump float;
#endif
uniform float time;uniform vec2 resolution;void main(){float a=time,b=.5+sin(a)
,t=0.0,e;vec3 c=vec3(0);for(int i=0;i<25;++i){vec3 p=vec3(.5,0,a)+normalize(
vec3(gl_FragCoord.xy/resolution*16.0-vec2(8)+vec2(sin(a*.2),cos(a*.3))*8.0,1))*
t;vec2 f=sin(p.xy*3.7)+b,g=vec2(cos(p.z*3.7)+b,sin(dot(p,vec3(3,2.1,4.3))+b)*.5
),h=g*g;float T,s=.1;for(int i=0;i<9;++i){s*=.5;g=vec2(h.x-h.y,g.x*g.y*2.0)+f;h
=g*g;if((T=h.x+h.y)>9.9)break;}e=s*log(T)+abs(sin(a*.5))*.05;c+=cos(e*sin(vec3(
3,2.3,1.3)*a)*vec3(9,23,99))*6e-4/abs(e);t+=e;}gl_FragColor=vec4(c,1);}