highp float sinemap(highp float t0, highp float K, highp float tau){ precision highp float; float v=0.0; v=t0+tau-(K/(3.1415926535897932384626433832795))*sin(t0*6.283185307179586476925286766559); return mod(v,1.0); } int periodSineMap(highp float K, highp float tau){ precision highp float; float t=0.9576058000303126299572702894819; for (int i=0;i<10000;i++){ t=sinemap(t,K,tau); } float ival=t; int period=-1; for (int j=0;j<257;j++){ t=sinemap(t,K,tau); if ((t>ival-0.000001)&&(t
256)) gl_FragColor=vec4(0.0,0.0,0.2,1); else{ float d1=mod(float(dif)/33.0,1.0); float d2=mod(float(dif)/128.0,1.0); float d3=mod(float(dif)/64.0,1.0); gl_FragColor=vec4(d1,d2,d3,1); gl_FragColor=vec4(d1,d2,d3,1); } }
Right click and drag to zoom (left to right and top to down), click and drag right to left to reset.