martin - cascade.milk 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418
  1. MILKDROP_PRESET_VERSION=201
  2. PSVERSION=3
  3. PSVERSION_WARP=3
  4. PSVERSION_COMP=3
  5. [preset00]
  6. fRating=4.000
  7. fGammaAdj=1.980
  8. fDecay=0.500
  9. fVideoEchoZoom=0.907
  10. fVideoEchoAlpha=0.500
  11. nVideoEchoOrientation=3
  12. nWaveMode=6
  13. bAdditiveWaves=1
  14. bWaveDots=0
  15. bWaveThick=1
  16. bModWaveAlphaByVolume=1
  17. bMaximizeWaveColor=0
  18. bTexWrap=1
  19. bDarkenCenter=0
  20. bRedBlueStereo=0
  21. bBrighten=0
  22. bDarken=1
  23. bSolarize=0
  24. bInvert=0
  25. fWaveAlpha=0.007
  26. fWaveScale=3.641
  27. fWaveSmoothing=0.180
  28. fWaveParam=-0.000
  29. fModWaveAlphaStart=0.000
  30. fModWaveAlphaEnd=0.800
  31. fWarpAnimSpeed=1.459
  32. fWarpScale=2.007
  33. fZoomExponent=1.00000
  34. fShader=0.000
  35. zoom=0.99990
  36. rot=0.00000
  37. cx=0.500
  38. cy=0.500
  39. dx=0.00000
  40. dy=0.00000
  41. warp=0.01000
  42. sx=0.99990
  43. sy=1.00000
  44. wave_r=0.000
  45. wave_g=0.000
  46. wave_b=0.000
  47. wave_x=0.500
  48. wave_y=0.500
  49. ob_size=0.000
  50. ob_r=0.000
  51. ob_g=0.000
  52. ob_b=0.000
  53. ob_a=1.000
  54. ib_size=0.000
  55. ib_r=0.250
  56. ib_g=0.250
  57. ib_b=0.250
  58. ib_a=0.000
  59. nMotionVectorsX=12.000
  60. nMotionVectorsY=9.000
  61. mv_dx=0.000
  62. mv_dy=0.000
  63. mv_l=0.900
  64. mv_r=1.000
  65. mv_g=1.000
  66. mv_b=1.000
  67. mv_a=0.000
  68. b1n=0.000
  69. b2n=0.000
  70. b3n=0.000
  71. b1x=0.800
  72. b2x=0.400
  73. b3x=0.400
  74. b1ed=0.000
  75. wavecode_0_enabled=0
  76. wavecode_0_samples=512
  77. wavecode_0_sep=0
  78. wavecode_0_bSpectrum=0
  79. wavecode_0_bUseDots=1
  80. wavecode_0_bDrawThick=0
  81. wavecode_0_bAdditive=1
  82. wavecode_0_scaling=1.00000
  83. wavecode_0_smoothing=0.50000
  84. wavecode_0_r=0.000
  85. wavecode_0_g=1.000
  86. wavecode_0_b=0.700
  87. wavecode_0_a=0.120
  88. wavecode_1_enabled=0
  89. wavecode_1_samples=512
  90. wavecode_1_sep=0
  91. wavecode_1_bSpectrum=0
  92. wavecode_1_bUseDots=0
  93. wavecode_1_bDrawThick=0
  94. wavecode_1_bAdditive=0
  95. wavecode_1_scaling=1.00000
  96. wavecode_1_smoothing=0.50000
  97. wavecode_1_r=1.000
  98. wavecode_1_g=1.000
  99. wavecode_1_b=1.000
  100. wavecode_1_a=1.000
  101. wavecode_2_enabled=0
  102. wavecode_2_samples=512
  103. wavecode_2_sep=0
  104. wavecode_2_bSpectrum=0
  105. wavecode_2_bUseDots=0
  106. wavecode_2_bDrawThick=0
  107. wavecode_2_bAdditive=0
  108. wavecode_2_scaling=1.00000
  109. wavecode_2_smoothing=0.50000
  110. wavecode_2_r=1.000
  111. wavecode_2_g=1.000
  112. wavecode_2_b=1.000
  113. wavecode_2_a=1.000
  114. wavecode_3_enabled=0
  115. wavecode_3_samples=512
  116. wavecode_3_sep=0
  117. wavecode_3_bSpectrum=0
  118. wavecode_3_bUseDots=0
  119. wavecode_3_bDrawThick=0
  120. wavecode_3_bAdditive=0
  121. wavecode_3_scaling=1.00000
  122. wavecode_3_smoothing=0.50000
  123. wavecode_3_r=1.000
  124. wavecode_3_g=1.000
  125. wavecode_3_b=1.000
  126. wavecode_3_a=1.000
  127. shapecode_0_enabled=0
  128. shapecode_0_sides=25
  129. shapecode_0_additive=1
  130. shapecode_0_thickOutline=1
  131. shapecode_0_textured=0
  132. shapecode_0_num_inst=1
  133. shapecode_0_x=0.500
  134. shapecode_0_y=0.500
  135. shapecode_0_rad=0.28420
  136. shapecode_0_ang=0.00000
  137. shapecode_0_tex_ang=0.00000
  138. shapecode_0_tex_zoom=5.42791
  139. shapecode_0_r=0.000
  140. shapecode_0_g=0.000
  141. shapecode_0_b=1.000
  142. shapecode_0_a=1.000
  143. shapecode_0_r2=0.000
  144. shapecode_0_g2=0.000
  145. shapecode_0_b2=1.000
  146. shapecode_0_a2=0.000
  147. shapecode_0_border_r=1.000
  148. shapecode_0_border_g=1.000
  149. shapecode_0_border_b=1.000
  150. shapecode_0_border_a=0.000
  151. shape_0_init1=i=0;
  152. shape_0_init2=loop (1024,
  153. shape_0_init3= megabuf(i+2)=rand(1); //z
  154. shape_0_init4= z=megabuf(i+2)+.1;
  155. shape_0_init5= megabuf(i)=(rand(2)-1)*z/2; //x
  156. shape_0_init6= megabuf(i+1)=(rand(2)-1)*z/2; //y
  157. shape_0_init7= i+=3);
  158. shapecode_1_enabled=0
  159. shapecode_1_sides=15
  160. shapecode_1_additive=1
  161. shapecode_1_thickOutline=1
  162. shapecode_1_textured=0
  163. shapecode_1_num_inst=1
  164. shapecode_1_x=0.500
  165. shapecode_1_y=0.500
  166. shapecode_1_rad=0.10000
  167. shapecode_1_ang=0.00000
  168. shapecode_1_tex_ang=0.00000
  169. shapecode_1_tex_zoom=1.00000
  170. shapecode_1_r=1.000
  171. shapecode_1_g=1.000
  172. shapecode_1_b=1.000
  173. shapecode_1_a=1.000
  174. shapecode_1_r2=0.000
  175. shapecode_1_g2=0.000
  176. shapecode_1_b2=0.000
  177. shapecode_1_a2=0.500
  178. shapecode_1_border_r=0.000
  179. shapecode_1_border_g=0.000
  180. shapecode_1_border_b=0.000
  181. shapecode_1_border_a=0.000
  182. shapecode_2_enabled=1
  183. shapecode_2_sides=6
  184. shapecode_2_additive=1
  185. shapecode_2_thickOutline=1
  186. shapecode_2_textured=0
  187. shapecode_2_num_inst=850
  188. shapecode_2_x=0.500
  189. shapecode_2_y=0.500
  190. shapecode_2_rad=0.04084
  191. shapecode_2_ang=0.00000
  192. shapecode_2_tex_ang=0.00000
  193. shapecode_2_tex_zoom=1.10462
  194. shapecode_2_r=0.300
  195. shapecode_2_g=0.400
  196. shapecode_2_b=0.600
  197. shapecode_2_a=1.000
  198. shapecode_2_r2=0.000
  199. shapecode_2_g2=0.000
  200. shapecode_2_b2=0.000
  201. shapecode_2_a2=0.100
  202. shapecode_2_border_r=0.000
  203. shapecode_2_border_g=0.000
  204. shapecode_2_border_b=0.000
  205. shapecode_2_border_a=0.000
  206. shape_2_init1=i=0;loop (1000,
  207. shape_2_init2= n=i*12;
  208. shape_2_init3= megabuf(n)=(rand(1)-.5)*0.1;
  209. shape_2_init4= megabuf(n+1)=(rand(1)-.5)*.1;
  210. shape_2_init5= megabuf(n+2)=rand(1);
  211. shape_2_init6= megabuf(n+3)=megabuf(n+4)=megabuf(n+5)=0.7;
  212. shape_2_init7= megabuf(n+6)=megabuf(n+7)=megabuf(n+8)=0;
  213. shape_2_init8= i+=1);
  214. shape_2_per_frame1=speed=.4; dt=1/fps; i=instance; n=12*i;
  215. shape_2_per_frame2=
  216. shape_2_per_frame3=z= megabuf(n+2);
  217. shape_2_per_frame4=x= megabuf(n)/z+.5+.0*cos(z*16)*z;
  218. shape_2_per_frame5=y = 14*pow(megabuf(n+1),2)/z*reg32+0.48-.013/z*q1; //#
  219. shape_2_per_frame6=
  220. shape_2_per_frame7=over = (x>1)||(x<0)||(y>1)||(y<0)||(z<0)||(z>1.2);
  221. shape_2_per_frame8=reg11+=over;
  222. shape_2_per_frame9=if (over,
  223. shape_2_per_frame10= ct1+=.05*(treb_att);
  224. shape_2_per_frame11= ct2+=.05*(bass_att);
  225. shape_2_per_frame12=
  226. shape_2_per_frame13= st=(mid_att>0.8)*i*(q27%4==0);
  227. shape_2_per_frame14= sx=sin(time+st+q3*mid_att) *1.5;
  228. shape_2_per_frame15= sy=cos(time+st+q4*treb_att)*1.5;
  229. shape_2_per_frame16= sz=0;
  230. shape_2_per_frame17=
  231. shape_2_per_frame18= dec=q2;
  232. shape_2_per_frame19= px0=px0*dec+(1-dec)*sx;
  233. shape_2_per_frame20= py0=py0*dec+(1-dec)*sy;
  234. shape_2_per_frame21= pz0=pz0*dec+(1-dec)*sz;
  235. shape_2_per_frame22=
  236. shape_2_per_frame23= noia=.1*min(3,pow(treb_att/2,2));
  237. shape_2_per_frame24= px= px0+(rand(1)-.5)*noia;
  238. shape_2_per_frame25= py= py0+(rand(1)-.5)*noia;;
  239. shape_2_per_frame26=
  240. shape_2_per_frame27= megabuf(n)= px/reg10;
  241. shape_2_per_frame28= megabuf(n+1)=py/reg10;
  242. shape_2_per_frame29= megabuf(n+2)=max(0.5,min(1,1-q29*sin((px-py)*7)));;
  243. shape_2_per_frame30=
  244. shape_2_per_frame31= t=time/7.6;
  245. shape_2_per_frame32= megabuf(n+3)=min(1,0.9+0.3*sin(px*2+t));
  246. shape_2_per_frame33= megabuf(n+4)=min(1,0.9+0.3*sin(py*2+t*1.2));
  247. shape_2_per_frame34= megabuf(n+5)=min(1,0.9+0.3*sin(3*(px-py)+t*1.5));
  248. shape_2_per_frame35= megabuf(n+6)=q20;
  249. shape_2_per_frame36= megabuf(n+7)=q21;
  250. shape_2_per_frame37= megabuf(n+8)=q22;
  251. shape_2_per_frame38= megabuf(n+9)= 0.8+.1*rand(1); //size
  252. shape_2_per_frame39= megabuf(n+10)= rand(1)-.5; //unused
  253. shape_2_per_frame40= rad=0;
  254. shape_2_per_frame41=,
  255. shape_2_per_frame42= megabuf(n+2)-=speed/fps*max(.5,megabuf(n+9)); //wichtig sonst kanns null bleiben
  256. shape_2_per_frame43= rad = min(0.15,.003/z*reg32) * megabuf(n+9) * (z>0);
  257. shape_2_per_frame44= r=megabuf(n+3); r2=megabuf(n+6);
  258. shape_2_per_frame45= g=megabuf(n+4); g2=megabuf(n+7);
  259. shape_2_per_frame46= b=megabuf(n+5); b2=megabuf(n+8);
  260. shape_2_per_frame47=
  261. shape_2_per_frame48= dec=1-q6*dt;
  262. shape_2_per_frame49= if ((i>0),
  263. shape_2_per_frame50= m=n-12; o=n+12;
  264. shape_2_per_frame51= megabuf(n+1)+=-(sin(megabuf(n)*100*q28+time/4))*.15*z*(1-dec);
  265. shape_2_per_frame52=// megabuf(n)=megabuf(n)*dec +megabuf(m)*(1-dec);
  266. shape_2_per_frame53= megabuf(n+1)=megabuf(n+1)*dec +megabuf(m+1)*(1-dec)*q5;
  267. shape_2_per_frame54= ,0);
  268. shape_2_per_frame55=);
  269. shape_2_per_frame56=a=0.7;
  270. shape_2_per_frame57=reg10=reg10*0.99 + 2*sqrt(sqr(megabuf(n))+sqr(megabuf(n+1)));
  271. shape_2_per_frame58=sides=max(5,min(20,rad*400));
  272. shape_2_per_frame59=reg33=noia;
  273. shapecode_3_enabled=0
  274. shapecode_3_sides=8
  275. shapecode_3_additive=1
  276. shapecode_3_thickOutline=0
  277. shapecode_3_textured=0
  278. shapecode_3_num_inst=300
  279. shapecode_3_x=0.500
  280. shapecode_3_y=0.500
  281. shapecode_3_rad=0.04511
  282. shapecode_3_ang=0.00000
  283. shapecode_3_tex_ang=0.00000
  284. shapecode_3_tex_zoom=0.90529
  285. shapecode_3_r=1.000
  286. shapecode_3_g=1.000
  287. shapecode_3_b=1.000
  288. shapecode_3_a=1.000
  289. shapecode_3_r2=0.000
  290. shapecode_3_g2=0.000
  291. shapecode_3_b2=0.000
  292. shapecode_3_a2=0.200
  293. shapecode_3_border_r=1.000
  294. shapecode_3_border_g=1.000
  295. shapecode_3_border_b=1.000
  296. shapecode_3_border_a=0.000
  297. per_frame_init_1=n=0;loop(20000,megabuf(n)=gmegabuf(n)=0;n+=1);
  298. per_frame_init_2=reg10=1;
  299. per_frame_1=dt=1/fps;
  300. per_frame_2=dec_m = 1-5*dt;
  301. per_frame_3=dec_f = 1-15*dt;
  302. per_frame_4=
  303. per_frame_5=beat = (bass + treb + mid)/3;
  304. per_frame_6=beat_ = beat_*dec_m + (1-dec_m)*beat;
  305. per_frame_7=ib = above(beat,peak*8) * (time>t0+.2);
  306. per_frame_8=if (ib,t0=time,0);
  307. per_frame_9=peak = if(ib,beat,peak*dec_m);
  308. per_frame_10=index = (index + ib) %64;
  309. per_frame_11=index_=index_*dec_f+(1-dec_f)*int(index/2);
  310. per_frame_12=index2+=ib*(index%16==0);
  311. per_frame_13=
  312. per_frame_14=dd=0.05;
  313. per_frame_15=if (ib&&(index%19==0),sw1=rand(2)-1,0);
  314. per_frame_16=sw1_+=min(dd,max(-dd,sw1-sw1_))*dt*8;
  315. per_frame_17=
  316. per_frame_18=if (ib&&(index%7==0),sw2=rand(2)-1,0);
  317. per_frame_19=sw2_+=min(dd,max(-dd,sw2-sw2_))*dt*8;
  318. per_frame_20=
  319. per_frame_21=if (ib&&(index%11==0),sw3=rand(2)-1,0);
  320. per_frame_22=if (ib&&(index%13==0),sw4=rand(2)-1,0);
  321. per_frame_23=if (ib&&(index%7==0),sw5=rand(2)-1,0);
  322. per_frame_24=sw5_+=min(dd,max(-dd,sw5-sw5_))*dt*30;
  323. per_frame_25=if (ib&&(index%23==0),sw6=rand(2)-1,0);
  324. per_frame_26=sw6_=sw6_*dec_m + (1-dec_m)*pow(sw6,4);
  325. per_frame_27=
  326. per_frame_28=t01+=abs(sw1_)*.4*dt;
  327. per_frame_29=t02+=abs(sw2_)*.3*dt;
  328. per_frame_30=t03+=abs(sw6_)*.5*dt;
  329. per_frame_31=q20=max(0,min(0.4,4*sin(t01)-3));
  330. per_frame_32=q21=max(0,min(0.4,4*sin(t02)-3));
  331. per_frame_33=q22=max(0,min(0.4,4*sin(t03)-3));
  332. per_frame_34=
  333. per_frame_35=q1=sw1_;
  334. per_frame_36=q2=1-exp(-1-4*abs(sw2));
  335. per_frame_37=q3=abs(sw3)*3;
  336. per_frame_38=q4=abs(sw4)*3;
  337. per_frame_39=q5=sw5_;
  338. per_frame_40=q6=sw6_*1.5;
  339. per_frame_41=reg32=aspecty;
  340. per_frame_42=
  341. per_frame_43=
  342. per_frame_44=q24=ib;
  343. per_frame_45=q27=index;
  344. per_frame_46=dec=0;
  345. per_frame_47=q28= pow(sin(int(index/6)/2),3)*3;
  346. per_frame_48=q29=pow(sin(q27),8)/2;
  347. per_frame_49=q30=int(index/4);
  348. per_frame_50=reg10=max(10.01,reg10); //autoscale
  349. per_frame_51=reg11=0; //free
  350. per_frame_52=
  351. per_frame_53=monitor = reg33;
  352. per_pixel_1=zoom = 1/1.025;
  353. per_pixel_2=
  354. warp_1=`#define sat saturate
  355. warp_2=`float2 uv1,uv2;
  356. warp_3=`
  357. warp_4=`float3 get (float2 uvi)
  358. warp_5=`{return lerp (GetPixel(uvi),GetBlur1(uvi),0.3);}
  359. warp_6=`
  360. warp_7=`shader_body {
  361. warp_8=`ret = max(max(get(uv_orig),get(uv)),get((uv+uv_orig)/2))-0.01;
  362. warp_9=`ret*=0.3;
  363. warp_10=`
  364. warp_11=`
  365. warp_12=`}
  366. comp_1=`#define sat saturate
  367. comp_2=`#define snh sampler_noise_hq
  368. comp_3=`float2 rs0, uv1, uv2, uv_wat, water;
  369. comp_4=`float mask;
  370. comp_5=`static const float hory=0.5;
  371. comp_6=`
  372. comp_7=`float3 get (float2 uvi)
  373. comp_8=`{return (GetPixel(uvi)+GetPixel(float2(1-uvi.x,uvi.y)));}
  374. comp_9=`
  375. comp_10=`
  376. comp_11=`float3 getb1 (float2 uvi)
  377. comp_12=`{return (GetBlur1(uvi)+GetBlur1(float2(1-uvi.x,uvi.y)));}
  378. comp_13=`
  379. comp_14=`float3 getb3 (float2 uvi)
  380. comp_15=`{return (GetBlur3(uvi)+GetBlur3(float2(1-uvi.x,uvi.y)));}
  381. comp_16=`
  382. comp_17=`float3 noise3 (float2 uvi)
  383. comp_18=`{return (tex2D(snh,uvi) + 0.5*tex2D(snh,uvi*2+time*.01))/1.5;}
  384. comp_19=`
  385. comp_20=`shader_body {
  386. comp_21=`
  387. comp_22=`//WASSER
  388. comp_23=`uv1 = uv-float2 (0.5,hory);
  389. comp_24=`float z = .1/(uv1.y + pow(uv1.x,2)*0);
  390. comp_25=`rs0 = float2 (uv1.x*z, z)*.1;
  391. comp_26=`float gnd = (noise3(rs0+time*float2(0.02,.05))-0.5);
  392. comp_27=`
  393. comp_28=`for (int n = 0; n < 4; n ++)
  394. comp_29=`{
  395. comp_30=` z += gnd*0.1;
  396. comp_31=` rs0 = float2 (uv1.x * z, z);
  397. comp_32=`}
  398. comp_33=`water = noise3(rs0*float2(1,1)+float2(0,time*.2)) -0.5;
  399. comp_34=`
  400. comp_35=`float rr = (gnd+.4);
  401. comp_36=`uv_wat = float2(uv.x,hory-uv1.y) -.1*water;
  402. comp_37=`
  403. comp_38=`mask = saturate(uv.y*16-8.2);
  404. comp_39=`float3 sky = (.5-uv.y)*float3(0,.2,1)/1;
  405. comp_40=`
  406. comp_41=`ret = lerp (sky,get(uv_wat)*rr,mask);
  407. comp_42=`ret += 1-exp(-get(uv)*3);;
  408. comp_43=`
  409. comp_44=`
  410. comp_45=`uv2 = (uv-0.5)*0.4+0.5;
  411. comp_46=`uv_wat = frac(float2 (uv2.x,hory-uv2.y-0.5))-0.05*water;
  412. comp_47=`ret += lerp (getb3(uv2),getb3(uv_wat)*rr,mask);
  413. comp_48=`
  414. comp_49=`
  415. comp_50=`
  416. comp_51=`}
  417. comp_52=`written by martin
  418. comp_53=`END