martin - butterflies.milk 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401
  1. MILKDROP_PRESET_VERSION=201
  2. PSVERSION=3
  3. PSVERSION_WARP=3
  4. PSVERSION_COMP=3
  5. [preset00]
  6. fRating=4.000000
  7. fGammaAdj=1.980001
  8. fDecay=0.500000
  9. fVideoEchoZoom=0.999998
  10. fVideoEchoAlpha=0.500000
  11. nVideoEchoOrientation=3
  12. nWaveMode=4
  13. bAdditiveWaves=1
  14. bWaveDots=1
  15. bWaveThick=1
  16. bModWaveAlphaByVolume=1
  17. bMaximizeWaveColor=0
  18. bTexWrap=0
  19. bDarkenCenter=0
  20. bRedBlueStereo=0
  21. bBrighten=0
  22. bDarken=1
  23. bSolarize=0
  24. bInvert=0
  25. fWaveAlpha=0.001000
  26. fWaveScale=0.527400
  27. fWaveSmoothing=0.450000
  28. fWaveParam=0.000000
  29. fModWaveAlphaStart=0.000000
  30. fModWaveAlphaEnd=1.320000
  31. fWarpAnimSpeed=1.459500
  32. fWarpScale=2.006700
  33. fZoomExponent=1.000000
  34. fShader=0.000000
  35. zoom=0.999900
  36. rot=0.000000
  37. cx=0.500000
  38. cy=0.500000
  39. dx=0.000000
  40. dy=0.000000
  41. warp=0.010000
  42. sx=0.999900
  43. sy=1.000000
  44. wave_r=0.800000
  45. wave_g=0.490000
  46. wave_b=1.000000
  47. wave_x=0.500000
  48. wave_y=0.500000
  49. ob_size=0.015000
  50. ob_r=0.000000
  51. ob_g=0.000000
  52. ob_b=0.000000
  53. ob_a=1.000000
  54. ib_size=0.260000
  55. ib_r=0.250000
  56. ib_g=0.250000
  57. ib_b=0.250000
  58. ib_a=0.000000
  59. nMotionVectorsX=64.000000
  60. nMotionVectorsY=48.000000
  61. mv_dx=0.000000
  62. mv_dy=0.000000
  63. mv_l=1.850000
  64. mv_r=0.499900
  65. mv_g=0.499900
  66. mv_b=0.499900
  67. mv_a=0.000000
  68. b1n=0.000000
  69. b2n=0.000000
  70. b3n=0.000000
  71. b1x=1.000000
  72. b2x=1.000000
  73. b3x=1.000000
  74. b1ed=0.000000
  75. wavecode_0_enabled=1
  76. wavecode_0_samples=282
  77. wavecode_0_sep=20
  78. wavecode_0_bSpectrum=0
  79. wavecode_0_bUseDots=0
  80. wavecode_0_bDrawThick=0
  81. wavecode_0_bAdditive=1
  82. wavecode_0_scaling=7.858000
  83. wavecode_0_smoothing=0.100000
  84. wavecode_0_r=0.200000
  85. wavecode_0_g=0.300000
  86. wavecode_0_b=1.000000
  87. wavecode_0_a=0.250000
  88. wave_0_per_point1=
  89. wave_0_per_point2=x = .2+sample/2; y = 0.5;
  90. wave_0_per_point3=
  91. wave_0_per_point4=r = .5 + .2*sin(time/17);
  92. wave_0_per_point5=g = .5 + .2*sin(time/23);
  93. wave_0_per_point6=b = .5 + .2*sin(time/11);
  94. wavecode_1_enabled=0
  95. wavecode_1_samples=512
  96. wavecode_1_sep=0
  97. wavecode_1_bSpectrum=0
  98. wavecode_1_bUseDots=1
  99. wavecode_1_bDrawThick=1
  100. wavecode_1_bAdditive=0
  101. wavecode_1_scaling=0.891519
  102. wavecode_1_smoothing=0.820000
  103. wavecode_1_r=1.000000
  104. wavecode_1_g=1.000000
  105. wavecode_1_b=1.000000
  106. wavecode_1_a=0.100000
  107. wave_1_per_point1=xi = rand(100)/100;
  108. wave_1_per_point2=yi = rand(100)/100;
  109. wave_1_per_point3=
  110. wave_1_per_point4=x = xi; y = yi;
  111. wave_1_per_point5=
  112. wave_1_per_point6=a = q21/15;
  113. wavecode_2_enabled=0
  114. wavecode_2_samples=512
  115. wavecode_2_sep=0
  116. wavecode_2_bSpectrum=0
  117. wavecode_2_bUseDots=0
  118. wavecode_2_bDrawThick=1
  119. wavecode_2_bAdditive=0
  120. wavecode_2_scaling=0.891519
  121. wavecode_2_smoothing=0.820000
  122. wavecode_2_r=0.000000
  123. wavecode_2_g=0.200000
  124. wavecode_2_b=0.000000
  125. wavecode_2_a=1.000000
  126. wavecode_3_enabled=0
  127. wavecode_3_samples=512
  128. wavecode_3_sep=0
  129. wavecode_3_bSpectrum=1
  130. wavecode_3_bUseDots=1
  131. wavecode_3_bDrawThick=0
  132. wavecode_3_bAdditive=0
  133. wavecode_3_scaling=1.000000
  134. wavecode_3_smoothing=0.500000
  135. wavecode_3_r=1.000000
  136. wavecode_3_g=1.000000
  137. wavecode_3_b=1.000000
  138. wavecode_3_a=1.000000
  139. shapecode_0_enabled=0
  140. shapecode_0_sides=4
  141. shapecode_0_additive=0
  142. shapecode_0_thickOutline=0
  143. shapecode_0_textured=1
  144. shapecode_0_x=0.440000
  145. shapecode_0_y=0.500000
  146. shapecode_0_rad=0.146276
  147. shapecode_0_ang=0.000000
  148. shapecode_0_tex_ang=0.000000
  149. shapecode_0_tex_zoom=3.394148
  150. shapecode_0_r=0.000000
  151. shapecode_0_g=1.000000
  152. shapecode_0_b=1.000000
  153. shapecode_0_a=0.400000
  154. shapecode_0_r2=0.830000
  155. shapecode_0_g2=0.930000
  156. shapecode_0_b2=0.800000
  157. shapecode_0_a2=0.400000
  158. shapecode_0_border_r=1.000000
  159. shapecode_0_border_g=1.000000
  160. shapecode_0_border_b=0.000000
  161. shapecode_0_border_a=0.000000
  162. shapecode_1_enabled=0
  163. shapecode_1_sides=4
  164. shapecode_1_additive=0
  165. shapecode_1_thickOutline=1
  166. shapecode_1_textured=1
  167. shapecode_1_x=0.260000
  168. shapecode_1_y=0.200000
  169. shapecode_1_rad=0.393173
  170. shapecode_1_ang=0.000000
  171. shapecode_1_tex_ang=0.000000
  172. shapecode_1_tex_zoom=0.935500
  173. shapecode_1_r=0.000000
  174. shapecode_1_g=0.550000
  175. shapecode_1_b=0.500000
  176. shapecode_1_a=1.000000
  177. shapecode_1_r2=0.000000
  178. shapecode_1_g2=0.400000
  179. shapecode_1_b2=0.400000
  180. shapecode_1_a2=0.070000
  181. shapecode_1_border_r=0.300000
  182. shapecode_1_border_g=0.700000
  183. shapecode_1_border_b=0.800000
  184. shapecode_1_border_a=0.400000
  185. shape_1_per_frame1=tex_zoom = q27;
  186. shapecode_2_enabled=0
  187. shapecode_2_sides=44
  188. shapecode_2_additive=0
  189. shapecode_2_thickOutline=0
  190. shapecode_2_textured=0
  191. shapecode_2_x=0.503000
  192. shapecode_2_y=0.500000
  193. shapecode_2_rad=0.038857
  194. shapecode_2_ang=0.000000
  195. shapecode_2_tex_ang=0.000000
  196. shapecode_2_tex_zoom=0.609857
  197. shapecode_2_r=1.000000
  198. shapecode_2_g=0.100000
  199. shapecode_2_b=0.000000
  200. shapecode_2_a=0.900000
  201. shapecode_2_r2=1.000000
  202. shapecode_2_g2=1.000000
  203. shapecode_2_b2=1.000000
  204. shapecode_2_a2=0.000000
  205. shapecode_2_border_r=0.500000
  206. shapecode_2_border_g=0.500000
  207. shapecode_2_border_b=1.000000
  208. shapecode_2_border_a=0.000000
  209. shape_2_per_frame1=x = rand(50)/50;
  210. shape_2_per_frame2=y = .5;
  211. shape_2_per_frame3=
  212. shape_2_per_frame4=r = .4;
  213. shape_2_per_frame5=g = .6;
  214. shape_2_per_frame6=b = 1;
  215. shape_2_per_frame7=r2 = r;
  216. shape_2_per_frame8=g2 = g;
  217. shape_2_per_frame9=b2 = b;
  218. shape_2_per_frame10=
  219. shape_2_per_frame11=a2 = min(q21/2 ,1)/2;
  220. shape_2_per_frame12=
  221. shape_2_per_frame13=a = 0;
  222. shape_2_per_frame14=
  223. shape_2_per_frame15=rad = a2 * (.1+abs(x-.5))/2 ;
  224. shapecode_3_enabled=0
  225. shapecode_3_sides=4
  226. shapecode_3_additive=0
  227. shapecode_3_thickOutline=1
  228. shapecode_3_textured=1
  229. shapecode_3_x=0.260000
  230. shapecode_3_y=0.760000
  231. shapecode_3_rad=0.394780
  232. shapecode_3_ang=0.000000
  233. shapecode_3_tex_ang=0.000000
  234. shapecode_3_tex_zoom=0.499805
  235. shapecode_3_r=1.000000
  236. shapecode_3_g=1.000000
  237. shapecode_3_b=1.000000
  238. shapecode_3_a=1.000000
  239. shapecode_3_r2=1.000000
  240. shapecode_3_g2=1.000000
  241. shapecode_3_b2=1.000000
  242. shapecode_3_a2=0.800000
  243. shapecode_3_border_r=0.200000
  244. shapecode_3_border_g=0.700000
  245. shapecode_3_border_b=0.500000
  246. shapecode_3_border_a=1.000000
  247. shape_3_per_frame1=tex_zoom = q27/2;
  248. per_frame_init_1=xk = 0;
  249. per_frame_1=dec_med = pow (0.8, 30/fps);
  250. per_frame_2=dec_slow = pow (0.95, 30/fps);
  251. per_frame_3=dec_xlow = pow (0.995, 30/fps);
  252. per_frame_4=beat = max (max (bass, mid), treb);
  253. per_frame_5=avg = avg*dec_slow + beat*(1-dec_slow);
  254. per_frame_6=is_beat = above(beat, .2+avg+peak) * above (time, t0+.2);
  255. per_frame_7=t0 = is_beat*time + (1-is_beat)*t0;
  256. per_frame_8=peak = is_beat * beat + (1-is_beat)*peak*dec_med;
  257. per_frame_9=index = (index + is_beat) %16;
  258. per_frame_10=index2 = (index2 + is_beat*bnot(index))%2;
  259. per_frame_11=
  260. per_frame_12=q21 = beat;
  261. per_frame_13=q22 = peak;
  262. per_frame_14=q23 = index;
  263. per_frame_15=q24 = is_beat;
  264. per_frame_16=q26 = bass_att + mid_att + treb_att;
  265. per_frame_17=q27 = index + 1;
  266. per_frame_18=
  267. per_frame_19=
  268. per_frame_20=k1 = is_beat*equal(index%3,0);
  269. per_frame_21=p1 = k1*(p1+1) + (1-k1)*p1;
  270. per_frame_22=p2 = dec_med * p2+ (1-dec_med)*p1;
  271. per_frame_23=rott = p2 * 3.1416/4;
  272. per_frame_24=
  273. per_frame_25=q1 = cos(rott);
  274. per_frame_26=q2 = sin(rott);
  275. per_frame_27=q3 = -q2;
  276. per_frame_28=q4 = q1;
  277. per_frame_29=
  278. per_frame_30=trel = time/3;
  279. per_frame_31=q5 = cos(trel);
  280. per_frame_32=q6 = sin(trel);
  281. per_frame_33=q7 = -q6;
  282. per_frame_34=q8 = q5;
  283. per_frame_35=
  284. per_frame_36=puls = puls*dec_slow + q22*(1-dec_slow);
  285. per_frame_37=q17 = min(8,puls+4)*31;
  286. per_frame_38=q18 = .006 + .04*(sin(time/14)+1)/2;
  287. per_frame_39=q19 = sin(time*1)*.05;
  288. per_frame_40=q20 = cos(time*1.6)*.05;
  289. per_frame_41=
  290. per_frame_42=monitor = q18;
  291. warp_1=`
  292. warp_2=`float3 color, mus;
  293. warp_3=`float dx,dy;
  294. warp_4=`float2 rs, rs0, uv1, c, tmp, zz, uvo;
  295. warp_5=`float3 noise, ret1;
  296. warp_6=`int n;
  297. warp_7=`shader_body {
  298. warp_8=`uvo = uv_orig;
  299. warp_9=`uv1 = (uv_orig-.5);//*aspect.xy;
  300. warp_10=`
  301. warp_11=`float z = 1/abs(uv1.y+.3);
  302. warp_12=`rs.x = uv1.x*10;
  303. warp_13=`rs.y = z*2;
  304. warp_14=`rs0 = rs;
  305. warp_15=`rs *=2;
  306. warp_16=`
  307. warp_17=`
  308. warp_18=`c = uv1*4+float2(-.5,0);
  309. warp_19=`//c = rs*.1;
  310. warp_20=`zz = c;
  311. warp_21=`
  312. warp_22=`for (n=1; n<=6; n++)
  313. warp_23=`{
  314. warp_24=`tmp = zz;
  315. warp_25=`zz.x = tmp.x*tmp.x - tmp.y*tmp.y;
  316. warp_26=`zz.y = 2*tmp.x * tmp.y;
  317. warp_27=`zz = zz + c;
  318. warp_28=`}
  319. warp_29=`
  320. warp_30=`float len=dot(zz,zz);
  321. warp_31=`
  322. warp_32=`ret = tex2D(sampler_noise_lq,abs(zz)/12) * .15/(len+2);
  323. warp_33=`//ret += (-0.001*(1/ (len+2)));
  324. warp_34=`ret += tex2D (sampler_fc_main, uv+ zz*q18);
  325. warp_35=`
  326. warp_36=`//ret += GetBlur2 (frac(uvo))*.8 * saturate(len-6);
  327. warp_37=`
  328. warp_38=`ret *= 1;
  329. warp_39=`ret = ret *.99-.01;
  330. warp_40=`
  331. warp_41=`}
  332. comp_1=`sampler sampler_clouds;
  333. comp_2=`sampler sampler_pw_noise_lq;
  334. comp_3=`float3 noise, noise1, bfly, neu, bush;
  335. comp_4=`float2 rs, uv1, dz, uvo;
  336. comp_5=`float k, z0, z, dk, hinten;
  337. comp_6=`int n;
  338. comp_7=`
  339. comp_8=`shader_body {
  340. comp_9=`uvo = uv_orig;
  341. comp_10=`
  342. comp_11=`uv1 = uv-float2 (.5,1);
  343. comp_12=`uv1 *= aspect.xy;
  344. comp_13=`hinten = 1/(uv1.y-0.1);//sqrt nur Verringerung Rechenzeit
  345. comp_14=`hinten = clamp(hinten,-6,0);
  346. comp_15=`bfly = 0;
  347. comp_16=`float trel = time; ;
  348. comp_17=`for (n=1; n <= 2; n++)
  349. comp_18=`{ k = 0;
  350. comp_19=` z0 = n*1.5;
  351. comp_20=` rs.x = (uv1.x)*z0*hinten + n/4;//Zentrum x
  352. comp_21=` rs.y = z0*hinten-trel;
  353. comp_22=`
  354. comp_23=` //noise1 ist Maske fuer Desync der Fluegelschlaege
  355. comp_24=` //Problem: k erst nachher bekannt, deshalb muss
  356. comp_25=` //Amplitude oder Groesse begrenzt werden
  357. comp_26=` noise1 = tex2D (sampler_pw_noise_lq,rs/256);
  358. comp_27=`
  359. comp_28=` k += .4*sin(time*16* (.5+noise1.r)); //Fluegelschlag
  360. comp_29=` z = k*abs((frac(rs.x))-.5)+ z0;
  361. comp_30=` // z -= .5*saturate(.05-pow(sin(6.3*(rs.x)),2)); //Rumpfform
  362. comp_31=` z -= .04*k; //Koerperbewegung
  363. comp_32=` rs.y = z*hinten-trel;
  364. comp_33=` rs = frac(rs.yx) ;
  365. comp_34=` neu = GetBlur1(rs) - (1-q18*16)*GetBlur2(rs);
  366. comp_35=` neu *= normalize(noise1) * 8*saturate(6+hinten)/hinten;
  367. comp_36=` bfly += abs(neu) * (lum(noise1) >= .86) * (hinten <= 0);
  368. comp_37=`}
  369. comp_38=`
  370. comp_39=`//Wolken
  371. comp_40=`float2 uv4 = uv1;
  372. comp_41=`float z4 = clamp(1/(abs(uv4.y-.1)),-0,18);
  373. comp_42=`rs = float2(uv4.x * z4, z4*2+time)/12 ;
  374. comp_43=`float3 clouds = lum(tex2D (sampler_noise_hq,rs+.0*time));
  375. comp_44=`clouds *= saturate(1-uv.y) ;
  376. comp_45=`clouds *= float3 (.4,.7, 1-uv4.y)*.5;
  377. comp_46=`
  378. comp_47=`//Buschwerk
  379. comp_48=`bush = 0;
  380. comp_49=`for (n=0; n<=1; n++) {
  381. comp_50=` float2 uv5 = uv1+float2 (0,-n*.04);
  382. comp_51=` uv5.x += (uv.y*1.05* (q19*(n%2) + q20*((n+1)%2)));
  383. comp_52=` neu = abs(uv5.y)
  384. comp_53=` *(1+tex2D (sampler_noise_lq,float2(uv5.x*2,uv5.y*4)).g)
  385. comp_54=` *(3+2*tex2D (sampler_noise_hq,uv5.x/2*(1+n%2)).g);
  386. comp_55=` neu = saturate(.2*neu-.4) * saturate(-8*uv5.y);
  387. comp_56=` float red = .5+.5*tex2D (sampler_noise_hq,uv5*2);
  388. comp_57=` float vis = saturate(4*tex2D (sampler_noise_hq,uv5*8)
  389. comp_58=` *tex2D (sampler_noise_hq,uv5*24));
  390. comp_59=`
  391. comp_60=` neu *= float3 (2*red,1,.2) *vis ;
  392. comp_61=` bush = max(bush,neu);
  393. comp_62=`
  394. comp_63=`}
  395. comp_64=`
  396. comp_65=`float3 scene = saturate(clouds*(1-32*bush)) + bush;
  397. comp_66=`
  398. comp_67=`ret = scene*saturate(1-8*bfly)+bfly;
  399. comp_68=`//ret = bfly*2;
  400. comp_69=`//ret = GetPixel (uvo)*2;
  401. comp_70=`}