MILKDROP_PRESET_VERSION=201
PSVERSION=3
PSVERSION_WARP=2
PSVERSION_COMP=3
[preset00]
fRating=4.000000
fGammaAdj=1.880
fDecay=0.500
fVideoEchoZoom=1.000
fVideoEchoAlpha=0.500
nVideoEchoOrientation=3
nWaveMode=6
bAdditiveWaves=0
bWaveDots=0
bWaveThick=0
bModWaveAlphaByVolume=1
bMaximizeWaveColor=0
bTexWrap=0
bDarkenCenter=0
bRedBlueStereo=0
bBrighten=0
bDarken=1
bSolarize=0
bInvert=0
fWaveAlpha=0.004
fWaveScale=1.401
fWaveSmoothing=0.000
fWaveParam=-0.000
fModWaveAlphaStart=0.400
fModWaveAlphaEnd=1.800
fWarpAnimSpeed=1.459
fWarpScale=2.007
fZoomExponent=1.00000
fShader=0.000
zoom=0.99990
rot=0.00000
cx=0.500
cy=0.500
dx=0.00000
dy=0.00000
warp=0.00909
sx=0.99990
sy=1.00000
wave_r=0.000
wave_g=0.000
wave_b=0.000
wave_x=0.500
wave_y=0.800
ob_size=0.050
ob_r=0.000
ob_g=0.000
ob_b=0.000
ob_a=1.000
ib_size=0.000
ib_r=0.000
ib_g=0.000
ib_b=0.000
ib_a=0.000
nMotionVectorsX=64.000
nMotionVectorsY=48.000
mv_dx=0.000
mv_dy=0.000
mv_l=5.000
mv_r=1.000
mv_g=1.000
mv_b=0.900
mv_a=0.000
b1n=0.000
b2n=0.000
b3n=0.000
b1x=0.800
b2x=0.700
b3x=1.000
b1ed=0.000
wavecode_0_enabled=1
wavecode_0_samples=45
wavecode_0_sep=32
wavecode_0_bSpectrum=1
wavecode_0_bUseDots=0
wavecode_0_bDrawThick=0
wavecode_0_bAdditive=0
wavecode_0_scaling=1.34536
wavecode_0_smoothing=0.00000
wavecode_0_r=0.000
wavecode_0_g=0.600
wavecode_0_b=1.000
wavecode_0_a=0.000
wave_0_per_frame1=t1 = 0;
wave_0_per_point1=val = value1 + value1;
wave_0_per_point2=dec = if (val > gmegabuf(t1), 0.5, 0.8);
wave_0_per_point3=//gmegabuf(t1) = gmegabuf(t1)*dec + (1-dec)* (value1+value2); 
wave_0_per_point4=
wave_0_per_point5=
wave_0_per_point6=t1 += 1;
wavecode_1_enabled=1
wavecode_1_samples=28
wavecode_1_sep=0
wavecode_1_bSpectrum=0
wavecode_1_bUseDots=1
wavecode_1_bDrawThick=1
wavecode_1_bAdditive=1
wavecode_1_scaling=0.42000
wavecode_1_smoothing=0.20000
wavecode_1_r=0.500
wavecode_1_g=0.500
wavecode_1_b=0.500
wavecode_1_a=0.700
wave_1_per_frame1=//t1 = 0;
wave_1_per_point1=x = rand(1); y = rand(1);
wave_1_per_point2=
wavecode_2_enabled=0
wavecode_2_samples=42
wavecode_2_sep=0
wavecode_2_bSpectrum=0
wavecode_2_bUseDots=1
wavecode_2_bDrawThick=1
wavecode_2_bAdditive=1
wavecode_2_scaling=1.00000
wavecode_2_smoothing=0.50000
wavecode_2_r=1.000
wavecode_2_g=1.000
wavecode_2_b=1.000
wavecode_2_a=0.360
wavecode_3_enabled=0
wavecode_3_samples=192
wavecode_3_sep=0
wavecode_3_bSpectrum=0
wavecode_3_bUseDots=1
wavecode_3_bDrawThick=0
wavecode_3_bAdditive=1
wavecode_3_scaling=1.00000
wavecode_3_smoothing=0.50000
wavecode_3_r=1.000
wavecode_3_g=1.000
wavecode_3_b=1.000
wavecode_3_a=0.320
shapecode_0_enabled=0
shapecode_0_sides=34
shapecode_0_additive=0
shapecode_0_thickOutline=1
shapecode_0_textured=0
shapecode_0_num_inst=1
shapecode_0_x=0.600
shapecode_0_y=0.500
shapecode_0_rad=0.05997
shapecode_0_ang=0.00000
shapecode_0_tex_ang=0.62832
shapecode_0_tex_zoom=0.77829
shapecode_0_r=1.000
shapecode_0_g=1.000
shapecode_0_b=1.000
shapecode_0_a=0.000
shapecode_0_r2=1.000
shapecode_0_g2=1.000
shapecode_0_b2=1.000
shapecode_0_a2=0.000
shapecode_0_border_r=0.590
shapecode_0_border_g=1.000
shapecode_0_border_b=1.000
shapecode_0_border_a=0.500
shapecode_1_enabled=1
shapecode_1_sides=24
shapecode_1_additive=0
shapecode_1_thickOutline=0
shapecode_1_textured=0
shapecode_1_num_inst=1
shapecode_1_x=0.700
shapecode_1_y=0.500
shapecode_1_rad=0.03448
shapecode_1_ang=0.00000
shapecode_1_tex_ang=0.00000
shapecode_1_tex_zoom=1.69133
shapecode_1_r=1.000
shapecode_1_g=1.000
shapecode_1_b=1.000
shapecode_1_a=1.000
shapecode_1_r2=0.000
shapecode_1_g2=0.000
shapecode_1_b2=0.000
shapecode_1_a2=0.000
shapecode_1_border_r=1.000
shapecode_1_border_g=1.000
shapecode_1_border_b=0.990
shapecode_1_border_a=0.000
shape_1_per_frame1=x = 0.15+gmegabuf(15)*0.2;
shape_1_per_frame2=y = 0.5-gmegabuf(0);
shape_1_per_frame3=
shape_1_per_frame4=len = max(.01,sqrt(q10*q10+q11*q11));
shape_1_per_frame5=rx = q10 /len;
shape_1_per_frame6=ry = -q11 /len;
shape_1_per_frame7=
shape_1_per_frame8=x1 = rx*(x-0.5) - ry*(y-0.5);
shape_1_per_frame9=y1 = ry*(x-0.5) + rx*(y-0.5);
shape_1_per_frame10=
shape_1_per_frame11=x = x1+0.5;
shape_1_per_frame12=y = y1+0.5;
shape_1_per_frame13=
shape_1_per_frame14=r = 0.2;
shape_1_per_frame15=g = 1;
shape_1_per_frame16=b = 1;
shape_1_per_frame17=
shape_1_per_frame18=rad = 0.11;
shape_1_per_frame19=a = 1; a2 = 0;
shapecode_2_enabled=1
shapecode_2_sides=4
shapecode_2_additive=1
shapecode_2_thickOutline=0
shapecode_2_textured=0
shapecode_2_num_inst=8
shapecode_2_x=0.200
shapecode_2_y=0.700
shapecode_2_rad=0.07419
shapecode_2_ang=0.00000
shapecode_2_tex_ang=0.00000
shapecode_2_tex_zoom=0.90528
shapecode_2_r=1.000
shapecode_2_g=1.000
shapecode_2_b=1.000
shapecode_2_a=0.500
shapecode_2_r2=1.000
shapecode_2_g2=1.000
shapecode_2_b2=1.000
shapecode_2_a2=0.000
shapecode_2_border_r=1.000
shapecode_2_border_g=1.000
shapecode_2_border_b=1.000
shapecode_2_border_a=0.000
shape_2_per_frame1=x = 0.5 + gmegabuf(8+instance/2)*2;
shape_2_per_frame2=y = 0.5 + gmegabuf(16+instance/2)*2;;
shape_2_per_frame3=
shape_2_per_frame4=x = 0.1*int(x*10);
shape_2_per_frame5=y = 0.1*int(y*10);
shape_2_per_frame6=
shape_2_per_frame7=a = max(0,min(1,q15/(2+instance)-0.5));
shape_2_per_frame8=a = (q15>1.5*(1+instance));
shape_2_per_frame9=rad = 0.1 * q14;
shapecode_3_enabled=0
shapecode_3_sides=4
shapecode_3_additive=0
shapecode_3_thickOutline=0
shapecode_3_textured=1
shapecode_3_num_inst=1
shapecode_3_x=0.860
shapecode_3_y=0.200
shapecode_3_rad=0.80814
shapecode_3_ang=0.00000
shapecode_3_tex_ang=0.00000
shapecode_3_tex_zoom=0.45112
shapecode_3_r=1.000
shapecode_3_g=1.000
shapecode_3_b=1.000
shapecode_3_a=1.000
shapecode_3_r2=1.000
shapecode_3_g2=1.000
shapecode_3_b2=0.900
shapecode_3_a2=1.000
shapecode_3_border_r=1.000
shapecode_3_border_g=1.000
shapecode_3_border_b=1.000
shapecode_3_border_a=0.000
per_frame_init_1=a1 = 0; a2 = 0;
per_frame_init_2=n = 0;
per_frame_init_3=loop (50000,
per_frame_init_4=  megabuf(n)=0;
per_frame_init_5=  gmegabuf(n)=0;
per_frame_init_6=  n += 1;
per_frame_init_7=);
per_frame_init_8=
per_frame_init_9=bx = 0; by = 0;
per_frame_init_10=start = 0;
per_frame_1=dt = 1/fps;
per_frame_2=dec_f = 0.8; dec_m = 1 - 4*dt; dec_s = 1 - dt;
per_frame_3=vol = vol*0.8 + 0.2*(bass+mid+treb)/3; 
per_frame_4=vol_ = vol_*dec_m+vol*(1-dec_m);
per_frame_5=
per_frame_6=is_beat = above(vol, peak) * above (time, t0+.25);
per_frame_7=if (is_beat,t0=time; peak=vol*1.5,Peak*=dec_s);
per_frame_8=bindex = (bindex + is_beat) %4;
per_frame_9=bindex2 += is_beat*!bindex;
per_frame_10=
per_frame_11=n = 150;
per_frame_12=tvol = tvol*0.8 + 0.2*(vol-vol_);
per_frame_13=loop (150, gmegabuf(n)=gmegabuf(n-1); n-=1);
per_frame_14=gmegabuf(0) = tvol;
per_frame_15=q15 = tvol/2;
per_frame_16=
per_frame_17=n = 0; base = 5000;
per_frame_18=loop (1024,
per_frame_19=  col = int(n/32);
per_frame_20=  row = n%32; 
per_frame_21=  gmegabuf(base+col*32+row) = min(1,0.001/pow(gmegabuf(col)-row/32 ,2));
per_frame_22=n+= 1;
per_frame_23=);
per_frame_24=
per_frame_25=t= 0 ;
per_frame_26=q1 = sin(t); q2 = cos(t); q3 = -q2; q4 = q1;
per_frame_27=
per_frame_28=k1 = 0.03;
per_frame_29=v1 = bass*k1; v2 = mid*k1; v3 = treb*k1;
per_frame_30=c1 = cos(v1); c2 = cos(v2); c3 = cos(v3); 
per_frame_31=s1 = sin(v1); s2 = sin(v2); s3 = sin(v3);
per_frame_32=q20 = c2*c1; q21 = c2*s1; q22 = -s2;
per_frame_33=q23 = s3*s2*c1 - c3*s1; q24 = s3*s2*s1 + c3*c1; q25 = s3*c2;
per_frame_34=q26 = c3*s2*c1 + s3*s1; q27 = c3*s2*s1 - s3*c1; q28 = c3*c2;
per_frame_35=
per_frame_36=trig = is_beat && (bindex2%2==0) && (bindex==0);
per_frame_37=ang1 =if (trig, int(rand(4))*3.1416/2, ang1);;
per_frame_38=tr = tr*0.8+0.2*ang1;
per_frame_39=
per_frame_40=bx = bx*0.8 + 0.2* (vol_>0.15)* (start>1);
per_frame_41=start += dt;
per_frame_42=q10 = cos(tr)*bx*40/fps;
per_frame_43=q11 = sin(tr)*bx*40/fps;
per_frame_44=fcountx += q10; fcounty += q11;
per_frame_45=q12 = -fcountx; q13 = -fcounty;
per_frame_46=
per_frame_47=if (trig, ax = rand(1)-0.5; ay = rand(1)-0.5;, 0);
per_frame_48=mx += min(0.05,max(-0.05,ax-mx))*dt*8;
per_frame_49=my += min(0.05,max(-0.05,ax-my))*dt*8;
per_frame_50=q16 = 0.5+mx/3;
per_frame_51=q17 = 0.5+my/3;
per_frame_52=q14 = sqrt(bass+mid+treb)/2;
per_frame_53=q15 = peak;
per_frame_54=q19 = is_beat;
per_frame_55=q18 = 0.1 ;
per_frame_56=q32 = aspecty;
warp_1=`static const float3x3 rotmat = float3x3 (q20,q21,q22,q23,q24,q25,q26,q27,q28);
warp_2=`static const float reso = 0.07;
warp_3=`shader_body {
warp_4=`float corr = texsize.xy*texsize_noise_lq.zw;
warp_5=`uv = uv_orig;
warp_6=`float2 uv1 = float2(uv.x-0.5,uv.y-0.5);//*aspect.xy;
warp_7=`
warp_8=`float noise =  tex2D(sampler_noise_lq, uv+rand_frame).x>0.5;
warp_9=`
warp_10=`float2 zz = (uv1 *texsize.xy + 10*float2(q12,q13)) * reso;
warp_11=`zz =mul(zz,float2x2(_qa));
warp_12=`
warp_13=`float2 h1 = clamp(tan(zz),-20,20);
warp_14=`
warp_15=`uv.xy += h1*texsize.zw * 0.1/reso;
warp_16=`
warp_17=`float3 crisp = tex2D(sampler_main,uv+texsize.zw*10*float2(-q10,-q11));
warp_18=`
warp_19=`ret = 1*mul(crisp,rotmat)- .006* (frame%2) *noise;
warp_20=`}
comp_1=`#define sat saturate
comp_2=`float z, z0, radi;
comp_3=`float2 uv1, uv2, uva, dz;
comp_4=`static const int anz = 35;
comp_5=`static const float2 moonpos = 0.4;
comp_6=`static const float2 hor = texsize.zw*float2(1,0);
comp_7=`static const float2 ver = texsize.zw*float2(1,0).yx;
comp_8=`float3 Get1 (float2 uvi, float par)
comp_9=`{return lerp(GetBlur1(uvi), GetPixel(uvi), 0*saturate(par/2))*par;}
comp_10=`
comp_11=`shader_body {
comp_12=`uva = (uv-0.5)*aspect.xy+0.5;
comp_13=`float moon = (.01 / length (uva-moonpos));
comp_14=`
comp_15=`dz.x = lum(GetPixel(uv-hor)) - lum(GetPixel(uv+hor));
comp_16=`dz.y = lum(GetPixel(uv-ver)) - lum(GetPixel(uv+ver));
comp_17=`
comp_18=`float3 shine = GetPixel(uv); 
comp_19=`
comp_20=`radi = 1;
comp_21=`for (int n=1; n <= anz; n++)
comp_22=`{ 
comp_23=`  shine += 2.0/anz*Get1((uv-moonpos)*radi+moonpos,radi);
comp_24=`  radi -= 0.75/anz;;
comp_25=`}
comp_26=`ret = max(shine,0*GetPixel(uv));
comp_27=`//ret = shine+GetPixel(uv);
comp_28=`
comp_29=`}
comp_30=`written by martin
comp_31=`END
