1
0

Flexi + Martin - dive.milk 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376
  1. MILKDROP_PRESET_VERSION=201
  2. PSVERSION=2
  3. PSVERSION_WARP=2
  4. PSVERSION_COMP=2
  5. [preset00]
  6. fRating=4.000
  7. fGammaAdj=1.560
  8. fDecay=1.000
  9. fVideoEchoZoom=0.362
  10. fVideoEchoAlpha=0.000
  11. nVideoEchoOrientation=1
  12. nWaveMode=0
  13. bAdditiveWaves=0
  14. bWaveDots=0
  15. bWaveThick=1
  16. bModWaveAlphaByVolume=0
  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.001
  26. fWaveScale=1.599
  27. fWaveSmoothing=0.000
  28. fWaveParam=-0.500
  29. fModWaveAlphaStart=2.000
  30. fModWaveAlphaEnd=2.000
  31. fWarpAnimSpeed=1.000
  32. fWarpScale=0.107
  33. fZoomExponent=0.15840
  34. fShader=1.000
  35. zoom=1.00000
  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.510
  45. wave_g=0.500
  46. wave_b=1.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.010
  55. ib_r=0.000
  56. ib_g=0.000
  57. ib_b=0.000
  58. ib_a=1.000
  59. nMotionVectorsX=64.000
  60. nMotionVectorsY=48.000
  61. mv_dx=0.000
  62. mv_dy=0.000
  63. mv_l=0.500
  64. mv_r=0.000
  65. mv_g=0.000
  66. mv_b=0.000
  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=0
  76. wavecode_0_samples=512
  77. wavecode_0_sep=0
  78. wavecode_0_bSpectrum=0
  79. wavecode_0_bUseDots=0
  80. wavecode_0_bDrawThick=0
  81. wavecode_0_bAdditive=0
  82. wavecode_0_scaling=0.16188
  83. wavecode_0_smoothing=0.50000
  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. 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=1
  94. wavecode_1_bAdditive=1
  95. wavecode_1_scaling=25.12601
  96. wavecode_1_smoothing=1.00000
  97. wavecode_1_r=1.000
  98. wavecode_1_g=1.000
  99. wavecode_1_b=1.000
  100. wavecode_1_a=0.100
  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=100
  129. shapecode_0_additive=0
  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.50126
  136. shapecode_0_ang=0.00000
  137. shapecode_0_tex_ang=0.00000
  138. shapecode_0_tex_zoom=0.99996
  139. shapecode_0_r=1.000
  140. shapecode_0_g=1.000
  141. shapecode_0_b=1.000
  142. shapecode_0_a=1.000
  143. shapecode_0_r2=1.000
  144. shapecode_0_g2=0.000
  145. shapecode_0_b2=0.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_per_frame1=x = 0.5+sin(time*0.618)*0.2;
  152. shape_0_per_frame2=y = 0.5+cos(time*1.618)*0.2;
  153. shape_0_per_frame3=rad = bass*0.05;
  154. shape_0_per_frame4=border_r = 1-(sin(time*1.25)*0.3+0.7);
  155. shape_0_per_frame5=border_g = 1-(sin(time)*0.3+0.3);
  156. shape_0_per_frame6=border_b = 1-(sin(time/3)*0.5+0.5);
  157. shapecode_1_enabled=0
  158. shapecode_1_sides=100
  159. shapecode_1_additive=0
  160. shapecode_1_thickOutline=1
  161. shapecode_1_textured=0
  162. shapecode_1_num_inst=1
  163. shapecode_1_x=0.500
  164. shapecode_1_y=0.500
  165. shapecode_1_rad=0.50126
  166. shapecode_1_ang=0.00000
  167. shapecode_1_tex_ang=0.00000
  168. shapecode_1_tex_zoom=1.00000
  169. shapecode_1_r=1.000
  170. shapecode_1_g=1.000
  171. shapecode_1_b=1.000
  172. shapecode_1_a=1.000
  173. shapecode_1_r2=0.000
  174. shapecode_1_g2=0.000
  175. shapecode_1_b2=1.000
  176. shapecode_1_a2=0.000
  177. shapecode_1_border_r=1.000
  178. shapecode_1_border_g=0.000
  179. shapecode_1_border_b=1.000
  180. shapecode_1_border_a=0.000
  181. shape_1_per_frame1=x = 0.5+sin(time*2.618)*0.3;
  182. shape_1_per_frame2=y = 0.5+cos(time*3.14)*0.3;
  183. shape_1_per_frame3=rad = bass*0.05;
  184. shape_1_per_frame4=border_r = 1-(sin(time*1.25)*0.3+0.7);
  185. shape_1_per_frame5=border_g = 1-(sin(time)*0.3+0.3);
  186. shape_1_per_frame6=border_b = 1-(sin(time/3)*0.5+0.5);
  187. shape_1_per_frame7=
  188. shapecode_2_enabled=0
  189. shapecode_2_sides=100
  190. shapecode_2_additive=0
  191. shapecode_2_thickOutline=1
  192. shapecode_2_textured=0
  193. shapecode_2_num_inst=1
  194. shapecode_2_x=0.500
  195. shapecode_2_y=0.500
  196. shapecode_2_rad=0.50126
  197. shapecode_2_ang=0.00000
  198. shapecode_2_tex_ang=0.00000
  199. shapecode_2_tex_zoom=0.99980
  200. shapecode_2_r=1.000
  201. shapecode_2_g=1.000
  202. shapecode_2_b=1.000
  203. shapecode_2_a=1.000
  204. shapecode_2_r2=0.000
  205. shapecode_2_g2=1.000
  206. shapecode_2_b2=0.000
  207. shapecode_2_a2=0.000
  208. shapecode_2_border_r=1.000
  209. shapecode_2_border_g=1.000
  210. shapecode_2_border_b=1.000
  211. shapecode_2_border_a=0.000
  212. shape_2_per_frame1=x = 0.5+sin(-time*2.618)*0.4;
  213. shape_2_per_frame2=y = 0.5+cos(-time*1.14)*0.4;
  214. shape_2_per_frame3=rad = bass*0.05;
  215. shape_2_per_frame4=border_r = 1-(sin(time*1.25)*0.3+0.7);
  216. shape_2_per_frame5=border_g = 1-(sin(time)*0.3+0.3);
  217. shape_2_per_frame6=border_b = 1-(sin(time/3)*0.5+0.5);
  218. shapecode_3_enabled=0
  219. shapecode_3_sides=4
  220. shapecode_3_additive=0
  221. shapecode_3_thickOutline=0
  222. shapecode_3_textured=0
  223. shapecode_3_num_inst=1
  224. shapecode_3_x=0.500
  225. shapecode_3_y=0.500
  226. shapecode_3_rad=0.10000
  227. shapecode_3_ang=0.00000
  228. shapecode_3_tex_ang=0.00000
  229. shapecode_3_tex_zoom=1.00000
  230. shapecode_3_r=1.000
  231. shapecode_3_g=0.000
  232. shapecode_3_b=0.000
  233. shapecode_3_a=1.000
  234. shapecode_3_r2=0.000
  235. shapecode_3_g2=1.000
  236. shapecode_3_b2=0.000
  237. shapecode_3_a2=0.000
  238. shapecode_3_border_r=1.000
  239. shapecode_3_border_g=1.000
  240. shapecode_3_border_b=1.000
  241. shapecode_3_border_a=0.100
  242. per_frame_init_1=q11 = 0.5/asin(1);
  243. per_frame_1=//zoom = 0.99;
  244. per_frame_2=ib_r = sin(time*1.25*4)*0.3+0.7;
  245. per_frame_3=ib_g = sin(time*4)*0.3+0.3;
  246. per_frame_4=ib_b = sin(time/3*4)*0.5+0.5;
  247. per_frame_5=
  248. per_frame_6=xx1 = xx1*0.9 + (bass)*0.01;
  249. per_frame_7=xx2 = xx2*0.9 + (treb)*0.01;
  250. per_frame_8=yy1 = yy1*0.94 + (treb+bass)*0.0075;
  251. per_frame_9=
  252. per_frame_10=x1 = 0.5 + (xx1-xx2)*2;
  253. per_frame_11=y1 = 0.4 + yy1;
  254. per_frame_12=
  255. per_frame_13=x1 = max(0,min(1,x1)); y1 = max(0,min(1,y1));
  256. per_frame_14=
  257. per_frame_15=spring = 10;
  258. per_frame_16=grav = .5;
  259. per_frame_17=resist = 1;
  260. per_frame_18=bounce = 0.75;
  261. per_frame_19=dt = 0.0002*(60/fps);
  262. per_frame_20=
  263. per_frame_21=vx2 = vx2*(1-resist*dt) + dt*((x1+x3-2*x2)*spring);
  264. per_frame_22=vy2 = vy2*(1-resist*dt) + dt*((y1+y3-2*y2)*spring-grav);
  265. per_frame_23=vx3 = vx3*(1-resist*dt) + dt*((x2+x4-2*x3)*spring);
  266. per_frame_24=vy3 = vy3*(1-resist*dt) + dt*((y2+y4-2*y3)*spring-grav);
  267. per_frame_25=vx4 = vx4*(1-resist*dt) + dt*((x3-x4)*spring);
  268. per_frame_26=vy4 = vy4*(1-resist*dt) + dt*((y3-y4)*spring-grav);
  269. per_frame_27=
  270. per_frame_28=x2 = x2 + vx2;
  271. per_frame_29=y2 = y2 + vy2;
  272. per_frame_30=x3 = x3 + vx3;
  273. per_frame_31=y3 = y3 + vy3;
  274. per_frame_32=x4 = x4 + vx4;
  275. per_frame_33=y4 = y4 + vy4;
  276. per_frame_34=
  277. per_frame_35=vx2 = if(above(x2,0),vx2,abs(vx2)*bounce);
  278. per_frame_36=vx2 = if(below(x2,1),vx2,-abs(vx2)*bounce);
  279. per_frame_37=vx3 = if(above(x3,0),vx3,abs(vx3)*bounce);
  280. per_frame_38=vx3 = if(below(x3,1),vx3,-abs(vx3)*bounce);
  281. per_frame_39=vx4 = if(above(x4,0),vx4,abs(vx4)*bounce);
  282. per_frame_40=vx4 = if(below(x4,1),vx4,-abs(vx4)*bounce);
  283. per_frame_41=vy2 = if(above(y2,0),vy2,abs(vy2)*bounce);
  284. per_frame_42=vy2 = if(below(y2,1),vy2,-abs(vy2)*bounce);
  285. per_frame_43=vy3 = if(above(y3,0),vy3,abs(vy3)*bounce);
  286. per_frame_44=vy3 = if(below(y3,1),vy3,-abs(vy3)*bounce);
  287. per_frame_45=vy4 = if(above(y4,0),vy4,abs(vy4)*bounce);
  288. per_frame_46=vy4 = if(below(y4,1),vy4,-abs(vy4)*bounce);
  289. per_frame_47=q4 = x4;
  290. per_frame_48=q8 = y4;
  291. per_frame_49=
  292. per_frame_50=q1 = aspectx;
  293. per_frame_51=q2 = aspecty;
  294. per_frame_52=
  295. per_frame_53=zoom = 1;
  296. per_frame_54=warp = 0;
  297. per_frame_55=bb = bb*0.99 + bass*0.02;
  298. per_frame_56=mm = mm*0.99 + mid*0.02;
  299. per_frame_57=tt = tt*0.99 + treb*0.02;
  300. per_frame_58=
  301. per_frame_59=mx = max(max(bb,mm),tt);
  302. per_frame_60=mn = min(min(bb,mm),tt);
  303. per_frame_61=
  304. per_frame_62=ob_r = (bb-mn)/(mx-mn);
  305. per_frame_63=ob_b = (mm-mn)/(mx-mn);
  306. per_frame_64=ob_g = (tt-mn)/(mx-mn);
  307. per_frame_65=q6 = atan2(vx4,vy4);
  308. per_frame_66=q5 = sqrt(vx4*vx4 + vy4*vy4);
  309. per_frame_67=
  310. per_frame_68=a = a*0.95 + q5;
  311. per_frame_69=
  312. per_frame_70=s = s*0.9 + a;
  313. per_frame_71=q3 = s*0.1;
  314. per_frame_72=monitor = s;
  315. per_frame_73=
  316. per_frame_74=wave_a = 0;
  317. per_frame_75=
  318. per_frame_76=q9 = 0.5 + 0.5*sin(time*0.1);
  319. per_pixel_1=x = 0.5 + (x-0.5)*q1;
  320. per_pixel_2=y = 0.5 + (y-0.5)*q2;
  321. per_pixel_3=xx = q4;
  322. per_pixel_4=yy = 1-q8;
  323. per_pixel_5=
  324. per_pixel_6=dx = 0; dy = 0;
  325. per_pixel_7=
  326. per_pixel_8=d = sqrt((x-xx)*(x-xx)+(y-yy)*(y-yy));
  327. per_pixel_9=
  328. per_pixel_10=r = 0.11;
  329. per_pixel_11=v = 20;
  330. per_pixel_12=v2 = q5;
  331. per_pixel_13=dx = (v*(sin(y-yy)*(d-r)-(x-xx)*(d-r/2)) + cos(dir)*v2)*(1.00-sigmoid(d-r,100));
  332. per_pixel_14=dy = (-v*(sin(x-xx)*(d-r)+(y-yy)*(d-r/2)) -sin(dir)*v2)*(1.00-sigmoid(d-r,100));
  333. warp_1=`shader_body
  334. warp_2=`{
  335. warp_3=`float2 dither_uv = uv_orig*texsize.xy*texsize_noise_lq.zw*1.5 + rand_frame.xy;
  336. warp_4=`uv -= (float2(0,1)*(lum(GetPixel(uv)-0.35))*texsize.zw*32)*(lum(GetPixel(uv))-0.4);
  337. warp_5=`ret = GetPixel(saturate(uv)) - 0.0011 + (tex2D(sampler_noise_lq, dither_uv)-0.5)*0.0038;
  338. warp_6=`}
  339. comp_1=`float2 d;
  340. comp_2=`float3 dx, dy;
  341. comp_3=`
  342. comp_4=`shader_body
  343. comp_5=`{
  344. comp_6=`
  345. comp_7=`
  346. comp_8=`// ***** Martin's ripples on water surface code, parameterized by Flexi *****
  347. comp_9=`
  348. comp_10=`float h = q9; // height of the horizon
  349. comp_11=`float cut_off = 0.02; // cut off lower border
  350. comp_12=`float2 t = float2(0.1,-0.05)*time; // velocity
  351. comp_13=`float strength = 0.025;
  352. comp_14=`
  353. comp_15=`
  354. comp_16=`float2 c = uv_orig-float2(0.5,1-h);
  355. comp_17=`float z = 3/c.y;
  356. comp_18=`float2 uv_water = float2(c.x*z*h,z*h)*0.05+t;
  357. comp_19=`int mask = (c.y>0);
  358. comp_20=`uv_water = (tex2D(sampler_noise_hq,uv_water)-0.5)*mask;
  359. comp_21=`float2 uv_mirror = 1.0-abs(frac((c+float2(0.5,1))*0.5)*2-1)+float2(0,-cut_off);
  360. comp_22=`uv_mirror =frac(uv_mirror-uv_water.xy*strength);
  361. comp_23=`
  362. comp_24=`// ***** :)
  363. comp_25=`
  364. comp_26=`uv = uv_mirror;
  365. comp_27=`
  366. comp_28=` d = texsize.zw*1.5;
  367. comp_29=` dx = GetPixel(uv_orig + float2(1,0)*d) - GetPixel(uv_orig - float2(1,0)*d);
  368. comp_30=` dy = GetPixel(uv_orig + float2(0,1)*d) - GetPixel(uv_orig - float2(0,1)*d);
  369. comp_31=`
  370. comp_32=`
  371. comp_33=`ret = GetPixel(uv).x*(1-length(float2(dx.y,dy.y)*8))*((hue_shader*6)-4)*0.8;
  372. comp_34=`ret = lerp(ret,float3(1,1,1),length(float2(dx.z,dy.z)*4));
  373. comp_35=`
  374. comp_36=`
  375. comp_37=`}
  376. comp_38=`