1
0

Benski - Atom Smasher.milk 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417
  1. MILKDROP_PRESET_VERSION=201
  2. PSVERSION=2
  3. PSVERSION_WARP=2
  4. PSVERSION_COMP=2
  5. [preset00]
  6. fRating=3.000000
  7. fGammaAdj=1.280
  8. fDecay=0.800
  9. fVideoEchoZoom=1.000
  10. fVideoEchoAlpha=0.000
  11. nVideoEchoOrientation=0
  12. nWaveMode=0
  13. bAdditiveWaves=0
  14. bWaveDots=0
  15. bWaveThick=0
  16. bModWaveAlphaByVolume=0
  17. bMaximizeWaveColor=0
  18. bTexWrap=0
  19. bDarkenCenter=0
  20. bRedBlueStereo=0
  21. bBrighten=0
  22. bDarken=0
  23. bSolarize=0
  24. bInvert=0
  25. fWaveAlpha=0.001
  26. fWaveScale=1.002
  27. fWaveSmoothing=0.261
  28. fWaveParam=0.000
  29. fModWaveAlphaStart=0.500
  30. fModWaveAlphaEnd=1.000
  31. fWarpAnimSpeed=1.000
  32. fWarpScale=1.331
  33. fZoomExponent=0.99984
  34. fShader=1.000
  35. zoom=0.99951
  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=1.00000
  43. sy=1.00000
  44. wave_r=0.500
  45. wave_g=0.500
  46. wave_b=0.500
  47. wave_x=0.500
  48. wave_y=0.500
  49. ob_size=0.500
  50. ob_r=0.010
  51. ob_g=0.000
  52. ob_b=0.000
  53. ob_a=0.000
  54. ib_size=0.260
  55. ib_r=0.250
  56. ib_g=0.250
  57. ib_b=0.250
  58. ib_a=0.000
  59. nMotionVectorsX=4.586
  60. nMotionVectorsY=3.234
  61. mv_dx=0.122
  62. mv_dy=0.156
  63. mv_l=0.212
  64. mv_r=0.456
  65. mv_g=0.482
  66. mv_b=0.329
  67. mv_a=0.000
  68. b1n=0.000
  69. b2n=0.000
  70. b3n=0.000
  71. b1x=1.000
  72. b2x=1.000
  73. b3x=1.000
  74. b1ed=0.250
  75. wavecode_0_enabled=1
  76. wavecode_0_samples=512
  77. wavecode_0_sep=0
  78. wavecode_0_bSpectrum=0
  79. wavecode_0_bUseDots=1
  80. wavecode_0_bDrawThick=1
  81. wavecode_0_bAdditive=1
  82. wavecode_0_scaling=2.62500
  83. wavecode_0_smoothing=0.00000
  84. wavecode_0_r=1.000
  85. wavecode_0_g=1.000
  86. wavecode_0_b=1.000
  87. wavecode_0_a=1.000
  88. wave_0_per_point1=ax=cos(100*sample+43.35+sin(231.54*sample+.543));
  89. wave_0_per_point2=ay=sin(431*sample+2.34+cos(443.54*sample+4.23));
  90. wave_0_per_point3=az=sin(546*sample+74.24+sin(524.54*sample+23.987))+2*(q4+.2*time-int(q4+.2*time));
  91. wave_0_per_point4=az=if(above(az,1),az-2,az);
  92. wave_0_per_point5=
  93. wave_0_per_point6=fx = .5+.5*ax/(1-az);
  94. wave_0_per_point7=fy = .5+.5*ay/(1-az);
  95. wave_0_per_point8=
  96. wave_0_per_point9=x=fx;
  97. wave_0_per_point10=y=fy;
  98. wave_0_per_point11=
  99. wave_0_per_point12=
  100. wave_0_per_point13=r=1-.5*rand(100)/100;
  101. wave_0_per_point14=g=1-.5*rand(100)/100;
  102. wave_0_per_point15=b=1-.5*rand(100)/100;
  103. wave_0_per_point16=
  104. wave_0_per_point17=a=pow((az+1)/2,3);
  105. wavecode_1_enabled=0
  106. wavecode_1_samples=512
  107. wavecode_1_sep=0
  108. wavecode_1_bSpectrum=1
  109. wavecode_1_bUseDots=1
  110. wavecode_1_bDrawThick=1
  111. wavecode_1_bAdditive=1
  112. wavecode_1_scaling=1.00000
  113. wavecode_1_smoothing=0.00000
  114. wavecode_1_r=1.000
  115. wavecode_1_g=1.000
  116. wavecode_1_b=1.000
  117. wavecode_1_a=1.000
  118. wave_1_per_point1=sw1=below(sample,.5);
  119. wave_1_per_point2=sample=2*(sw1*sample+(1-sw1)*(sample-.5));
  120. wave_1_per_point3=
  121. wave_1_per_point4=ax = 1-3.58*sample*sw1;
  122. wave_1_per_point5=ay = 0;//2*sin(sample*6.2831);
  123. wave_1_per_point6=az = 0;
  124. wave_1_per_point7=
  125. wave_1_per_point8=bx = ax;
  126. wave_1_per_point9=by = ay*cos(q1) - az*sin(q1);
  127. wave_1_per_point10=bz = ay*sin(q1) + az*cos(q1);
  128. wave_1_per_point11=
  129. wave_1_per_point12=ax = bx*cos(q2) - bz*sin(q2);
  130. wave_1_per_point13=ay = by;
  131. wave_1_per_point14=az = bx*sin(q2) + bz*cos(q2);
  132. wave_1_per_point15=
  133. wave_1_per_point16=bx = ax*cos(q3) - ay*sin(q3);
  134. wave_1_per_point17=by = ax*sin(q3) + ay*cos(q3);
  135. wave_1_per_point18=bz = az;
  136. wave_1_per_point19=
  137. wave_1_per_point20=vx=bx; vy=by; vz=bz;
  138. wave_1_per_point21=
  139. wave_1_per_point22=x=vx/abs(vz-10)+.5;
  140. wave_1_per_point23=y=vy/abs(vz-10)+.5;
  141. wave_1_per_point24=
  142. wave_1_per_point25=as=above(cos(q3+1.57)*cos(q2)*vx+sin(q3+1.57)*sin(q1)*vy+sin(q2)*vz,0);
  143. wave_1_per_point26=as=1;
  144. wave_1_per_point27=a=1;
  145. wavecode_2_enabled=1
  146. wavecode_2_samples=512
  147. wavecode_2_sep=0
  148. wavecode_2_bSpectrum=0
  149. wavecode_2_bUseDots=0
  150. wavecode_2_bDrawThick=1
  151. wavecode_2_bAdditive=1
  152. wavecode_2_scaling=1.00000
  153. wavecode_2_smoothing=0.00000
  154. wavecode_2_r=1.000
  155. wavecode_2_g=0.500
  156. wavecode_2_b=0.100
  157. wavecode_2_a=1.000
  158. wave_2_per_point1=t=above(sin(20*6.2831*sample+time*16),0);
  159. wave_2_per_point2=t=1;
  160. wave_2_per_point3=ax = (1.58+1.5*t*abs(value1))*cos(6.2831*sample);
  161. wave_2_per_point4=ay = 1.38*(1.58+1.5*t*abs(value2))*sin(6.2831*sample);
  162. wave_2_per_point5=az = 0;
  163. wave_2_per_point6=
  164. wave_2_per_point7=bx = ax;
  165. wave_2_per_point8=by = ay*cos(q1) - az*sin(q1);
  166. wave_2_per_point9=bz = ay*sin(q1) + az*cos(q1);
  167. wave_2_per_point10=
  168. wave_2_per_point11=ax = bx*cos(q2) - bz*sin(q2);
  169. wave_2_per_point12=ay = by;
  170. wave_2_per_point13=az = bx*sin(q2) + bz*cos(q2);
  171. wave_2_per_point14=
  172. wave_2_per_point15=bx = ax*cos(q3) - ay*sin(q3);
  173. wave_2_per_point16=by = ax*sin(q3) + ay*cos(q3);
  174. wave_2_per_point17=bz = az;
  175. wave_2_per_point18=
  176. wave_2_per_point19=vx=bx; vy=by; vz=bz;
  177. wave_2_per_point20=
  178. wave_2_per_point21=x=vx/abs(vz-10)+.5;
  179. wave_2_per_point22=y=vy/abs(vz-10)+.5;
  180. wave_2_per_point23=
  181. wave_2_per_point24=as=pow(sqrt(sqr(x-.5)+sqr(y-.5))*4,4);
  182. wave_2_per_point25=a=t*(.07*(1-as)+as);
  183. wavecode_3_enabled=1
  184. wavecode_3_samples=512
  185. wavecode_3_sep=0
  186. wavecode_3_bSpectrum=0
  187. wavecode_3_bUseDots=0
  188. wavecode_3_bDrawThick=1
  189. wavecode_3_bAdditive=1
  190. wavecode_3_scaling=1.00000
  191. wavecode_3_smoothing=0.00000
  192. wavecode_3_r=1.000
  193. wavecode_3_g=0.500
  194. wavecode_3_b=0.100
  195. wavecode_3_a=1.000
  196. wave_3_per_point1=t=above(sin(20*6.2831*sample+time*16),0);
  197. wave_3_per_point2=t=1;
  198. wave_3_per_point3=ax = (1.58+1.5*t*abs(value1))*cos(6.2831*sample);
  199. wave_3_per_point4=ay = 0;
  200. wave_3_per_point5=az = 1.38*(1.58+1.5*t*abs(value2))*sin(6.2831*sample);
  201. wave_3_per_point6=
  202. wave_3_per_point7=bx = ax;
  203. wave_3_per_point8=by = ay*cos(q1) - az*sin(q1);
  204. wave_3_per_point9=bz = ay*sin(q1) + az*cos(q1);
  205. wave_3_per_point10=
  206. wave_3_per_point11=ax = bx*cos(q2) - bz*sin(q2);
  207. wave_3_per_point12=ay = by;
  208. wave_3_per_point13=az = bx*sin(q2) + bz*cos(q2);
  209. wave_3_per_point14=
  210. wave_3_per_point15=bx = ax*cos(q3) - ay*sin(q3);
  211. wave_3_per_point16=by = ax*sin(q3) + ay*cos(q3);
  212. wave_3_per_point17=bz = az;
  213. wave_3_per_point18=
  214. wave_3_per_point19=vx=bx; vy=by; vz=bz;
  215. wave_3_per_point20=
  216. wave_3_per_point21=x=vx/abs(vz-10)+.5;
  217. wave_3_per_point22=y=vy/abs(vz-10)+.5;
  218. wave_3_per_point23=
  219. wave_3_per_point24=as=pow(sqrt(sqr(x-.5)+sqr(y-.5))*4,4);
  220. wave_3_per_point25=a=t*(.07*(1-as)+as);
  221. shapecode_0_enabled=1
  222. shapecode_0_sides=60
  223. shapecode_0_additive=1
  224. shapecode_0_thickOutline=1
  225. shapecode_0_textured=0
  226. shapecode_0_num_inst=1
  227. shapecode_0_x=0.500
  228. shapecode_0_y=0.500
  229. shapecode_0_rad=0.39872
  230. shapecode_0_ang=0.00000
  231. shapecode_0_tex_ang=0.00000
  232. shapecode_0_tex_zoom=1.00000
  233. shapecode_0_r=1.000
  234. shapecode_0_g=1.000
  235. shapecode_0_b=0.700
  236. shapecode_0_a=1.000
  237. shapecode_0_r2=1.000
  238. shapecode_0_g2=0.800
  239. shapecode_0_b2=0.000
  240. shapecode_0_a2=0.000
  241. shapecode_0_border_r=1.000
  242. shapecode_0_border_g=1.000
  243. shapecode_0_border_b=1.000
  244. shapecode_0_border_a=0.000
  245. shape_0_per_frame1=ax=0; ay=0; az=-30;
  246. shape_0_per_frame2=
  247. shape_0_per_frame3=bx = ax;
  248. shape_0_per_frame4=by = ay*cos(q1) - az*sin(q1);
  249. shape_0_per_frame5=bz = ay*sin(q1) + az*cos(q1);
  250. shape_0_per_frame6=
  251. shape_0_per_frame7=ax = bx*cos(q2) - bz*sin(q2);
  252. shape_0_per_frame8=ay = by;
  253. shape_0_per_frame9=az = bx*sin(q2) + bz*cos(q2);
  254. shape_0_per_frame10=
  255. shape_0_per_frame11=bx = ax*cos(q3) - ay*sin(q3);
  256. shape_0_per_frame12=by = ax*sin(q3) + ay*cos(q3);
  257. shape_0_per_frame13=bz = az;
  258. shape_0_per_frame14=
  259. shape_0_per_frame15=vx=bx; vy=by; vz=bz;
  260. shape_0_per_frame16=
  261. shape_0_per_frame17=x=vx/abs(vz-10)+.5;
  262. shape_0_per_frame18=y=vy/abs(vz-10)+.5;
  263. shape_0_per_frame19=
  264. shape_0_per_frame20=//a=below(vz,0);
  265. shape_0_per_frame21=x=.5;
  266. shape_0_per_frame22=y=.5;
  267. shape_0_per_frame23=rad=.1;
  268. shapecode_1_enabled=1
  269. shapecode_1_sides=60
  270. shapecode_1_additive=1
  271. shapecode_1_thickOutline=0
  272. shapecode_1_textured=1
  273. shapecode_1_num_inst=1
  274. shapecode_1_x=0.500
  275. shapecode_1_y=0.500
  276. shapecode_1_rad=0.29868
  277. shapecode_1_ang=0.00000
  278. shapecode_1_tex_ang=0.69115
  279. shapecode_1_tex_zoom=1.50092
  280. shapecode_1_r=0.200
  281. shapecode_1_g=0.100
  282. shapecode_1_b=1.000
  283. shapecode_1_a=0.000
  284. shapecode_1_r2=0.040
  285. shapecode_1_g2=0.050
  286. shapecode_1_b2=0.400
  287. shapecode_1_a2=1.000
  288. shapecode_1_border_r=1.000
  289. shapecode_1_border_g=1.000
  290. shapecode_1_border_b=1.000
  291. shapecode_1_border_a=0.000
  292. shapecode_2_enabled=1
  293. shapecode_2_sides=60
  294. shapecode_2_additive=1
  295. shapecode_2_thickOutline=0
  296. shapecode_2_textured=1
  297. shapecode_2_num_inst=1
  298. shapecode_2_x=0.500
  299. shapecode_2_y=0.500
  300. shapecode_2_rad=1.54304
  301. shapecode_2_ang=0.00000
  302. shapecode_2_tex_ang=1.57070
  303. shapecode_2_tex_zoom=1.50099
  304. shapecode_2_r=0.000
  305. shapecode_2_g=0.500
  306. shapecode_2_b=0.600
  307. shapecode_2_a=0.000
  308. shapecode_2_r2=0.000
  309. shapecode_2_g2=0.000
  310. shapecode_2_b2=0.000
  311. shapecode_2_a2=0.700
  312. shapecode_2_border_r=1.000
  313. shapecode_2_border_g=1.000
  314. shapecode_2_border_b=1.000
  315. shapecode_2_border_a=0.000
  316. shape_2_per_frame1=r=abs(cos(time*3.243+.434+sin(time*1.23+4.324)));
  317. shape_2_per_frame2=g=abs(cos(time*2.03+1.546+cos(time*3.01+1.98)));
  318. shape_2_per_frame3=b=.75*abs(sin(time*2.54+.65+sin(time*3.77+8)));
  319. shapecode_3_enabled=1
  320. shapecode_3_sides=6
  321. shapecode_3_additive=1
  322. shapecode_3_thickOutline=0
  323. shapecode_3_textured=0
  324. shapecode_3_num_inst=1
  325. shapecode_3_x=0.500
  326. shapecode_3_y=0.500
  327. shapecode_3_rad=0.11490
  328. shapecode_3_ang=0.00000
  329. shapecode_3_tex_ang=0.00000
  330. shapecode_3_tex_zoom=1.00000
  331. shapecode_3_r=1.000
  332. shapecode_3_g=1.000
  333. shapecode_3_b=0.700
  334. shapecode_3_a=1.000
  335. shapecode_3_r2=1.000
  336. shapecode_3_g2=0.800
  337. shapecode_3_b2=0.000
  338. shapecode_3_a2=0.000
  339. shapecode_3_border_r=1.000
  340. shapecode_3_border_g=1.000
  341. shapecode_3_border_b=1.000
  342. shapecode_3_border_a=0.000
  343. shape_3_per_frame1=q8=-q8+1;
  344. shape_3_per_frame2=t=(frame%6+4);
  345. shape_3_per_frame3=sides=if(equal(t%2,0),6,60);
  346. shape_3_per_frame4=
  347. shape_3_per_frame5=r=equal(t,4)*.3+equal(t,6)*.1+equal(t,8)*.3;
  348. shape_3_per_frame6=g=equal(t,4)*.1+equal(t,6)*.5+equal(t,8)*.15;
  349. shape_3_per_frame7=b=equal(t,4)*.6+equal(t,6)*.3+equal(t,8)*.0;
  350. shape_3_per_frame8=
  351. shape_3_per_frame9=r2=equal(t,4)*.3+equal(t,6)*.1+equal(t,8)*.3;
  352. shape_3_per_frame10=g2=equal(t,4)*.1+equal(t,6)*.5+equal(t,8)*.15;
  353. shape_3_per_frame11=b2=equal(t,4)*.6+equal(t,6)*.3+equal(t,8)*.0;
  354. shape_3_per_frame12=
  355. shape_3_per_frame13=r=r+equal(t%2,1);
  356. shape_3_per_frame14=g=g+equal(t%2,1);
  357. shape_3_per_frame15=b=b+equal(t%2,1)*.7;
  358. shape_3_per_frame16=
  359. shape_3_per_frame17=r2=r2+equal(t%2,1);
  360. shape_3_per_frame18=g2=g2+equal(t%2,1)*.8;
  361. shape_3_per_frame19=
  362. shape_3_per_frame20=rad=equal(t,4)*.1+equal(t,5)*.14+equal(t,6)*.14+equal(t,7)*.18 +equal(t,8)*.12+equal(t,9)*.2;
  363. shape_3_per_frame21=
  364. shape_3_per_frame22=an=atan2(q8-.5,q7-.5);
  365. shape_3_per_frame23=ang=0+equal(t%2,0)*2*an;
  366. shape_3_per_frame24=ang=if(equal(t,6),-ang,ang);
  367. shape_3_per_frame25=
  368. shape_3_per_frame26=d=sqrt(sqr(q7-.5)+sqr(q8-.5));
  369. shape_3_per_frame27=a=above(1-d,0)*sqrt(1-d);
  370. shape_3_per_frame28=
  371. shape_3_per_frame29=x=t*(.5-q7)*.1617+q7;
  372. shape_3_per_frame30=y=t*(.5-q8)*.1617+q8;
  373. per_frame_1=wave_a = 0;
  374. per_frame_2=vol = .1*(vol*9 + (bass_att+mid_att+treb_att)*.333333);
  375. per_frame_3=q1 = .1 + vol*.3;
  376. per_frame_4=
  377. per_frame_5=tic = time-tin;
  378. per_frame_6=tin = time;
  379. per_frame_7=tb = tb + tic*bass_att;
  380. per_frame_8=q2 = tb*.9;
  381. per_frame_9=tm = tm + tic*mid_att;
  382. per_frame_10=q3 = tm*.9;
  383. per_frame_11=tt = tt + tic*treb_att;
  384. per_frame_12=q4 = tt*.9;
  385. per_frame_13=
  386. per_frame_14=q1 = min(q1,1);
  387. per_frame_15=aq1 = .5;
  388. per_frame_16=aq2 = 0;
  389. per_frame_17=aq3 = 9.5;
  390. per_frame_18=aq4 = 0;
  391. warp_1=`shader_body
  392. warp_2=`{
  393. warp_3=` // sample previous frame
  394. warp_4=` ret = tex2D( sampler_fc_main, uv ).xyz;
  395. warp_5=` float3 ret2 = tex2D( sampler_fc_main, uv ).xyz;
  396. warp_6=`
  397. warp_7=` ret.x = tex2D( sampler_main, (uv-0.5)*1.00+0.5 ).x;
  398. warp_8=` ret.y = tex2D( sampler_main, (uv-0.5)*0.9+0.5 ).y;
  399. warp_9=` ret.z = tex2D( sampler_main, (uv-0.5)*1.15+0.5 ).z;
  400. warp_10=`
  401. warp_11=` // darken (decay) over time
  402. warp_12=` ret *= 0.75; //or try: ret -= 0.004;
  403. warp_13=`}
  404. comp_1=`// to access a texture on disk: make a sampler. This example loads "lichen.{tga/jpg/etc}".
  405. comp_2=`sampler2D sampler_fw_lichen; // _FW = filtering + wrap; _PC = point sampling + edge clamp; etc.
  406. comp_3=`float4 texsize_lichen; // auto-binds; .xy = (w,h); .zw = (1/w,1/h)
  407. comp_4=`
  408. comp_5=`
  409. comp_6=`shader_body
  410. comp_7=`{
  411. comp_8=` ret = tex2D(sampler_main, uv).xyz;
  412. comp_9=` ret = max(ret, tex2D(sampler_main, float2(1-uv.x,uv.y)));
  413. comp_10=` ret += GetBlur1(1-uv)*2;
  414. comp_11=`ret += GetBlur3(-uv)*0.5;
  415. comp_12=` ret *= 1.00; //old gamma effect
  416. comp_13=`
  417. comp_14=`}