1
0

Flexi - mindblob 2.0.milk 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507
  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.000
  8. fDecay=1.000
  9. fVideoEchoZoom=1.000
  10. fVideoEchoAlpha=0.500
  11. nVideoEchoOrientation=0
  12. nWaveMode=0
  13. bAdditiveWaves=0
  14. bWaveDots=0
  15. bWaveThick=1
  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.004
  26. fWaveScale=0.010
  27. fWaveSmoothing=0.000
  28. fWaveParam=-0.440
  29. fModWaveAlphaStart=1.000
  30. fModWaveAlphaEnd=1.000
  31. fWarpAnimSpeed=0.010
  32. fWarpScale=100.000
  33. fZoomExponent=0.92170
  34. fShader=0.000
  35. zoom=0.99010
  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=1.000
  45. wave_g=1.000
  46. wave_b=1.000
  47. wave_x=0.500
  48. wave_y=0.040
  49. ob_size=0.000
  50. ob_r=0.000
  51. ob_g=1.000
  52. ob_b=0.000
  53. ob_a=0.000
  54. ib_size=0.000
  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.000
  64. mv_r=1.000
  65. mv_g=1.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=1
  80. wavecode_0_bDrawThick=0
  81. wavecode_0_bAdditive=0
  82. wavecode_0_scaling=2.44415
  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=0.000
  88. wave_0_init1=t2 = 0;
  89. wave_0_init2=t3 = 0;
  90. wave_0_init3=t4 = 0;
  91. wave_0_init4=cl = 0;
  92. wave_0_per_frame1=t1 = 0;
  93. wave_0_per_frame2=v = 0.01;
  94. wave_0_per_frame3=j = j + (bass)*0.01;
  95. wave_0_per_frame4=j2 = j2 + (mid_att)*0.01;
  96. wave_0_per_frame5=j3 = j3 + (treb_att)*0.01;
  97. wave_0_per_frame6=t2 = j;
  98. wave_0_per_frame7=t3 = j2;
  99. wave_0_per_frame8=t4 = j3;
  100. wave_0_per_frame9=//t5 = 0;
  101. wave_0_per_frame10=k = k*0.99 + 10*mid/fps;
  102. wave_0_per_frame11=t5 = -k;
  103. wave_0_per_frame12=
  104. wave_0_per_frame13=cl1 = cl1 + 0.002;
  105. wave_0_per_frame14=cl1 = if(above(cl1,1),0,cl1);
  106. wave_0_per_frame15=cl1 = if(below(cl1,0),1,cl1);
  107. wave_0_per_frame16=t8 = cl1;
  108. wave_0_per_frame17=
  109. wave_0_per_frame18=cl2 = cl2 -1*q1;
  110. wave_0_per_frame19=cl2 = if(above(cl2,1),0,cl2);
  111. wave_0_per_frame20=cl2 = if(below(cl2,0),1,cl2);
  112. wave_0_per_frame21=t7 = cl2;
  113. wave_0_per_frame22=
  114. wave_0_per_frame23=cl3 = cl3 +0.001;
  115. wave_0_per_frame24=cl3 = if(above(cl3,1),0,cl3);
  116. wave_0_per_frame25=cl3 = if(below(cl3,0),1,cl3);
  117. wave_0_per_frame26=t6 = cl3;
  118. wave_0_per_point1=xx = ((sample*0983624912364)%10000000+100)/10000000;
  119. wave_0_per_point2=yy = ((xx*1896575575)%10000000+100)/10000000;
  120. wave_0_per_point3=zz = ((yy*58652340875)%10000000+100)/10000000;
  121. wave_0_per_point4=
  122. wave_0_per_point5=
  123. wave_0_per_point6=d = sqrt(sqr(xx)+sqr(yy)+sqr(zz));
  124. wave_0_per_point7=
  125. wave_0_per_point8=zz = zz + t8 - if(above(zz+t8,1),1,0) - 0.5;
  126. wave_0_per_point9=xx = xx + t7 - if(above(xx+t7,1),1,0) - 0.5;
  127. wave_0_per_point10=yy = yy + t6 - if(above(yy+t6,1),1,0) - 0.5;
  128. wave_0_per_point11=
  129. wave_0_per_point12=v = 0.001;
  130. wave_0_per_point13=
  131. wave_0_per_point14=w = 1;// (sample*sin(time*0.3)*0.01-1);
  132. wave_0_per_point15=bb = d*d*0.5;
  133. wave_0_per_point16=n= 0.3;
  134. wave_0_per_point17=s1 = sin(sin(t2*w+bb)*n);
  135. wave_0_per_point18=s2 = sin(sin(t3*w+bb)*n);
  136. wave_0_per_point19=s3 = sin(sin(t4*w+bb)*n);
  137. wave_0_per_point20=c1 = cos(sin(t2*w+bb)*n);
  138. wave_0_per_point21=c2 = cos(sin(t3*w+bb)*n);
  139. wave_0_per_point22=c3 = cos(sin(t4*w+bb)*n);
  140. wave_0_per_point23=
  141. wave_0_per_point24=z = (c3*s1*c2 + s3*s2)*xx - (c3*s1*s2-s3*c2)*yy + c3*c1*zz;
  142. wave_0_per_point25=x1 = (c1*c2*xx + c1*s2*yy - s1*zz);
  143. wave_0_per_point26=y1 = ((s3*s1*c2 - c3*s2)*xx + (s3*s1*s2+c3*c2)*yy + s3*c1*zz);
  144. wave_0_per_point27=
  145. wave_0_per_point28=zoom = .5*(1/(z+0.5));
  146. wave_0_per_point29=x = 0.5 + zoom*x1 + sin(time*0.1)*0.;;
  147. wave_0_per_point30=y = 0.5 + zoom*y1 + cos(time*0.16801)*0.;
  148. wave_0_per_point31=
  149. wave_0_per_point32=pi3 = 3.1415*2*0.3333;
  150. wave_0_per_point33=t = z*2+t2*1;
  151. wave_0_per_point34=c=3;
  152. wave_0_per_point35=//r = sin(t)*c;
  153. wave_0_per_point36=
  154. wave_0_per_point37=//g = sin(t+pi3)*c;
  155. wave_0_per_point38=
  156. wave_0_per_point39=//b = sin(t-pi3)*c;
  157. wave_0_per_point40=
  158. wave_0_per_point41=
  159. wave_0_per_point42=r = if(above(r,1),1,r);
  160. wave_0_per_point43=r = if(below(r,0),0,r);
  161. wave_0_per_point44=g = if(above(g,1),1,g);
  162. wave_0_per_point45=g = if(below(g,0),0,g);
  163. wave_0_per_point46=b = if(above(b,1),1,b);
  164. wave_0_per_point47=b = if(below(b,0),0,b);
  165. wave_0_per_point48=
  166. wave_0_per_point49=a = 0.4;
  167. wavecode_1_enabled=0
  168. wavecode_1_samples=512
  169. wavecode_1_sep=0
  170. wavecode_1_bSpectrum=0
  171. wavecode_1_bUseDots=0
  172. wavecode_1_bDrawThick=0
  173. wavecode_1_bAdditive=0
  174. wavecode_1_scaling=2.44415
  175. wavecode_1_smoothing=0.00000
  176. wavecode_1_r=1.000
  177. wavecode_1_g=1.000
  178. wavecode_1_b=1.000
  179. wavecode_1_a=1.000
  180. wave_1_init1=t2 = 0;
  181. wave_1_init2=t3 = 0;
  182. wave_1_init3=t4 = 0;
  183. wave_1_init4=cl = 0;
  184. wave_1_per_frame1=t8 = 1;
  185. wave_1_per_point1=t8 = -t8;
  186. wave_1_per_point2=y = sample;
  187. wave_1_per_point3=x = 0.5 + t8*0.005;
  188. wave_1_per_point4=
  189. wave_1_per_point5=pi3 = 3.1415*2*0.3333;
  190. wave_1_per_point6=t = time + sample*2;
  191. wave_1_per_point7=c=2;
  192. wave_1_per_point8=
  193. wave_1_per_point9=r = sin(t)*c;
  194. wave_1_per_point10=g = sin(t+pi3)*c;
  195. wave_1_per_point11=
  196. wave_1_per_point12=b = sin(t-pi3)*c;
  197. wave_1_per_point13=
  198. wave_1_per_point14=
  199. wave_1_per_point15=r = if(above(r,1),1,r);
  200. wave_1_per_point16=r = if(below(r,0),0,r);
  201. wave_1_per_point17=g = if(above(g,1),1,g);
  202. wave_1_per_point18=g = if(below(g,0),0,g);
  203. wave_1_per_point19=b = if(above(b,1),1,b);
  204. wave_1_per_point20=b = if(below(b,0),0,b);
  205. wave_1_per_point21=
  206. wavecode_2_enabled=0
  207. wavecode_2_samples=512
  208. wavecode_2_sep=0
  209. wavecode_2_bSpectrum=0
  210. wavecode_2_bUseDots=0
  211. wavecode_2_bDrawThick=1
  212. wavecode_2_bAdditive=1
  213. wavecode_2_scaling=100.00000
  214. wavecode_2_smoothing=0.60000
  215. wavecode_2_r=0.000
  216. wavecode_2_g=0.400
  217. wavecode_2_b=1.000
  218. wavecode_2_a=0.300
  219. wave_2_per_frame1=t1 = q1;
  220. wave_2_per_frame2=t2 = q2;
  221. wave_2_per_frame3=t3 = q3;
  222. wave_2_per_frame4=t4 = q4;
  223. wave_2_per_frame5=t5 = q5;
  224. wave_2_per_frame6=t6 = q6;
  225. wave_2_per_frame7=t7 = q7;
  226. wave_2_per_frame8=t8 = q8;
  227. wave_2_per_point1=sample = 1-sample;
  228. wave_2_per_point2=xxx = xx;
  229. wave_2_per_point3=yyy = yy;
  230. wave_2_per_point4=xx = pow(sample,5)*t1 + 5*pow(sample,4)*(1-sample)*t1 + 10*pow(sample,3)*sqr(1-sample)*t2
  231. wave_2_per_point5=+ 10*sqr(sample)*pow(1-sample,3)*t3 + 5*pow(1-sample,4)*sample*t4 + pow(1-sample,5)*t4;
  232. wave_2_per_point6=
  233. wave_2_per_point7=yy = pow(sample,5)*t5 + 5*pow(sample,4)*(1-sample)*t5 + 10*pow(sample,3)*sqr(1-sample)*t6
  234. wave_2_per_point8=+ 10*sqr(sample)*pow(1-sample,3)*t7 + 5*pow(1-sample,4)*sample*t8 + pow(1-sample,5)*t8;
  235. wave_2_per_point9=d = 1/sqrt(sqr(xx-xxx)+sqr(yy-yyy));
  236. wave_2_per_point10=x = xx + sample*(1-sample)*(value1-value2)*(yy-yyy)*d;
  237. wave_2_per_point11=y = yy - sample*(1-sample)*(value1-value2)*(xx-xxx)*d;
  238. wavecode_3_enabled=0
  239. wavecode_3_samples=512
  240. wavecode_3_sep=0
  241. wavecode_3_bSpectrum=0
  242. wavecode_3_bUseDots=1
  243. wavecode_3_bDrawThick=0
  244. wavecode_3_bAdditive=0
  245. wavecode_3_scaling=2.44415
  246. wavecode_3_smoothing=0.00000
  247. wavecode_3_r=0.000
  248. wavecode_3_g=0.000
  249. wavecode_3_b=1.000
  250. wavecode_3_a=1.000
  251. wave_3_init1=t2 = 0;
  252. wave_3_init2=t3 = 0;
  253. wave_3_init3=t4 = 0;
  254. wave_3_init4=cl = 0;
  255. wave_3_per_frame1=t8 = 1;
  256. wave_3_per_point1=t8 = -t8;
  257. wave_3_per_point2=y = (1+t8)*0.01;
  258. wave_3_per_point3=x = sample;
  259. shapecode_0_enabled=1
  260. shapecode_0_sides=100
  261. shapecode_0_additive=0
  262. shapecode_0_thickOutline=1
  263. shapecode_0_textured=0
  264. shapecode_0_num_inst=1
  265. shapecode_0_x=0.500
  266. shapecode_0_y=0.500
  267. shapecode_0_rad=0.02015
  268. shapecode_0_ang=0.00000
  269. shapecode_0_tex_ang=0.12566
  270. shapecode_0_tex_zoom=1.51878
  271. shapecode_0_r=0.000
  272. shapecode_0_g=0.000
  273. shapecode_0_b=0.000
  274. shapecode_0_a=0.100
  275. shapecode_0_r2=0.000
  276. shapecode_0_g2=0.000
  277. shapecode_0_b2=0.000
  278. shapecode_0_a2=0.000
  279. shapecode_0_border_r=1.000
  280. shapecode_0_border_g=1.000
  281. shapecode_0_border_b=1.000
  282. shapecode_0_border_a=0.000
  283. shapecode_1_enabled=0
  284. shapecode_1_sides=4
  285. shapecode_1_additive=0
  286. shapecode_1_thickOutline=1
  287. shapecode_1_textured=0
  288. shapecode_1_num_inst=1
  289. shapecode_1_x=1.000
  290. shapecode_1_y=0.500
  291. shapecode_1_rad=0.39872
  292. shapecode_1_ang=0.00000
  293. shapecode_1_tex_ang=0.12566
  294. shapecode_1_tex_zoom=1.51878
  295. shapecode_1_r=1.000
  296. shapecode_1_g=1.000
  297. shapecode_1_b=1.000
  298. shapecode_1_a=1.000
  299. shapecode_1_r2=1.000
  300. shapecode_1_g2=1.000
  301. shapecode_1_b2=1.000
  302. shapecode_1_a2=1.000
  303. shapecode_1_border_r=1.000
  304. shapecode_1_border_g=1.000
  305. shapecode_1_border_b=1.000
  306. shapecode_1_border_a=0.000
  307. shapecode_2_enabled=0
  308. shapecode_2_sides=4
  309. shapecode_2_additive=0
  310. shapecode_2_thickOutline=1
  311. shapecode_2_textured=0
  312. shapecode_2_num_inst=1
  313. shapecode_2_x=1.000
  314. shapecode_2_y=0.500
  315. shapecode_2_rad=3.00540
  316. shapecode_2_ang=0.00000
  317. shapecode_2_tex_ang=0.12566
  318. shapecode_2_tex_zoom=1.51878
  319. shapecode_2_r=0.000
  320. shapecode_2_g=1.000
  321. shapecode_2_b=0.000
  322. shapecode_2_a=1.000
  323. shapecode_2_r2=0.000
  324. shapecode_2_g2=0.000
  325. shapecode_2_b2=0.000
  326. shapecode_2_a2=1.000
  327. shapecode_2_border_r=1.000
  328. shapecode_2_border_g=1.000
  329. shapecode_2_border_b=1.000
  330. shapecode_2_border_a=0.000
  331. shapecode_3_enabled=0
  332. shapecode_3_sides=4
  333. shapecode_3_additive=0
  334. shapecode_3_thickOutline=1
  335. shapecode_3_textured=0
  336. shapecode_3_num_inst=1
  337. shapecode_3_x=1.000
  338. shapecode_3_y=0.500
  339. shapecode_3_rad=0.39872
  340. shapecode_3_ang=0.00000
  341. shapecode_3_tex_ang=0.12566
  342. shapecode_3_tex_zoom=1.51878
  343. shapecode_3_r=1.000
  344. shapecode_3_g=1.000
  345. shapecode_3_b=1.000
  346. shapecode_3_a=1.000
  347. shapecode_3_r2=1.000
  348. shapecode_3_g2=1.000
  349. shapecode_3_b2=1.000
  350. shapecode_3_a2=1.000
  351. shapecode_3_border_r=1.000
  352. shapecode_3_border_g=1.000
  353. shapecode_3_border_b=1.000
  354. shapecode_3_border_a=0.000
  355. per_frame_init_1=x1 = 0.9;
  356. per_frame_init_2=y1 = 0.5;
  357. per_frame_init_3=
  358. per_frame_init_4=x2 = 0.5; y2 = 0.5;
  359. per_frame_init_5=x3 = 0.5; y3 = 0.5;
  360. per_frame_init_6=x4 = 0.5; y4 = 0.5;
  361. per_frame_1=decay = 1;
  362. per_frame_2=xx1 = xx1*0.9 + (bass)*0.01;
  363. per_frame_3=xx2 = xx2*0.9 + (treb)*0.01;
  364. per_frame_4=yy1 = yy1*0.94 + (treb+bass)*0.0075;
  365. per_frame_5=
  366. per_frame_6=x1 = 0.5 + (xx1-xx2)*1.5;
  367. per_frame_7=y1 = 0.5 + yy1;
  368. per_frame_8=
  369. per_frame_9=//x2 = 0;y2 = 0;x3 = 0;y3 = 0;x4 = 0;y4 = 0;
  370. per_frame_10=
  371. per_frame_11=spring = 18;
  372. per_frame_12=grav = 1;
  373. per_frame_13=resist = 5;
  374. per_frame_14=bounce = 0.9;
  375. per_frame_15=dt = 0.0003;
  376. per_frame_16=
  377. per_frame_17=vx2 = vx2*(1-resist*dt) + dt*((x1+x3-2*x2)*spring);
  378. per_frame_18=vy2 = vy2*(1-resist*dt) + dt*((y1+y3-2*y2)*spring-grav);
  379. per_frame_19=vx3 = vx3*(1-resist*dt) + dt*((x2+x4-2*x3)*spring);
  380. per_frame_20=vy3 = vy3*(1-resist*dt) + dt*((y2+y4-2*y3)*spring-grav);
  381. per_frame_21=vx4 = vx4*(1-resist*dt) + dt*((x3-x4)*spring);
  382. per_frame_22=vy4 = vy4*(1-resist*dt) + dt*((y3-y4)*spring-grav);
  383. per_frame_23=
  384. per_frame_24=x2 = x2 + vx2;
  385. per_frame_25=y2 = y2 + vy2;
  386. per_frame_26=x3 = x3 + vx3;
  387. per_frame_27=y3 = y3 + vy3;
  388. per_frame_28=x4 = x4 + vx4;
  389. per_frame_29=y4 = y4 + vy4;
  390. per_frame_30=
  391. per_frame_31=vx2 = if(above(x2,0),vx2,abs(vx2)*bounce);
  392. per_frame_32=vx2 = if(below(x2,1),vx2,-abs(vx2)*bounce);
  393. per_frame_33=vx3 = if(above(x3,0),vx3,abs(vx3)*bounce);
  394. per_frame_34=vx3 = if(below(x3,1),vx3,-abs(vx3)*bounce);
  395. per_frame_35=vx4 = if(above(x4,0),vx4,abs(vx4)*bounce);
  396. per_frame_36=vx4 = if(below(x4,1),vx4,-abs(vx4)*bounce);
  397. per_frame_37=
  398. per_frame_38=vy2 = if(above(y2,0),vy2,abs(vy2)*bounce);
  399. per_frame_39=vy2 = if(below(y2,1),vy2,-abs(vy2)*bounce);
  400. per_frame_40=vy3 = if(above(y3,0),vy3,abs(vy3)*bounce);
  401. per_frame_41=vy3 = if(below(y3,1),vy3,-abs(vy3)*bounce);
  402. per_frame_42=vy4 = if(above(y4,0),vy4,abs(vy4)*bounce);
  403. per_frame_43=vy4 = if(below(y4,1),vy4,-abs(vy4)*bounce);
  404. per_frame_44=
  405. per_frame_45=
  406. per_frame_46=q1 = x1;
  407. per_frame_47=q2 = x2;
  408. per_frame_48=q3 = x3;
  409. per_frame_49=q4 = x4;
  410. per_frame_50=
  411. per_frame_51=q5 = y1;
  412. per_frame_52=q6 = y2;
  413. per_frame_53=q7 = y3;
  414. per_frame_54=q8 = y4;
  415. per_frame_55=
  416. per_frame_56=warp = 0;
  417. per_frame_57=zoom = 1.00;
  418. per_frame_58=q6 = atan2(vx4,vy4);
  419. per_frame_59=q5 = sqrt(vx4*vx4 + vy4*vy4);
  420. per_pixel_1=dir = -q6*1 + asin(1)*1;
  421. per_pixel_2=
  422. per_pixel_3=b1 = 0.1; // distance
  423. per_pixel_4=m1 = q5*25;//-0.6 + q5*200; // size
  424. per_pixel_5=t1 = 0.05; // velocity
  425. per_pixel_6=
  426. per_pixel_7=xx = q4;
  427. per_pixel_8=yy = 1-q8;
  428. per_pixel_9=
  429. per_pixel_10=
  430. per_pixel_11=x1 = xx +cos(dir+1.5708)*b1;
  431. per_pixel_12=y1 = yy -sin(dir+1.5708)*b1;
  432. per_pixel_13=
  433. per_pixel_14=x2 = xx -cos(dir+1.5708)*b1;
  434. per_pixel_15=y2 = yy +sin(dir+1.5708)*b1;
  435. per_pixel_16=
  436. per_pixel_17=d1 = sqrt((x1-x)*(x1-x)+(y1-y)*(y1-y))-b1*2;
  437. per_pixel_18=si1 = 1- 1/(1+pow(2,-d1*100));
  438. per_pixel_19=
  439. per_pixel_20=d2 = sqrt((x2-x)*(x2-x)+(y2-y)*(y2-y))-b1*2;
  440. per_pixel_21=si2 = 1- 1/(1+pow(2,-d2*100));
  441. per_pixel_22=
  442. per_pixel_23=si3 = -pow(q5,3)*00;
  443. per_pixel_24=
  444. per_pixel_25=dx = (si1*sin(y1-y)*m1*d1 - si2*sin(y2-y)*m1*d2 + si3*cos(dir)*t1)*2;
  445. per_pixel_26=dy = (-si1*sin(x1-x)*m1*d1 + si2*sin(x2-x)*m1*d2 - si3*sin(dir)*t1)*2;
  446. warp_1=`shader_body
  447. warp_2=`{
  448. warp_3=` float2 scale = float2(1280,1024)*texsize.zw; // 1280x1024 : the resolution i modelled this shader with
  449. warp_4=` float1 d = 0.005;
  450. warp_5=` float1 dx = ( GetBlur2(uv + float2(d,0)) - GetBlur2(uv-float2(d,0)) ).x*scale.x;
  451. warp_6=` float1 dy = ( GetBlur2(uv + float2(0,d)) - GetBlur2(uv-float2(0,d)) ).x*scale.y;
  452. warp_7=` float1 dxb = ( GetBlur2(uv + float2(d,0)) - GetBlur2(uv-float2(d,0)) ).x*scale.x;
  453. warp_8=` float1 dyb = ( GetBlur2(uv + float2(0,d)) - GetBlur2(uv-float2(0,d)) ).x*scale.y;
  454. warp_9=` float2 my_uv = uv - float2(dx,dy)*0.006 + float2(dxb,dyb)*0.003;
  455. warp_10=`
  456. warp_11=`
  457. warp_12=`
  458. warp_13=` float2 v = 0.01;
  459. warp_14=` ret.x = tex2D( sampler_fw_main, my_uv).x;
  460. warp_15=`
  461. warp_16=`
  462. warp_17=` ret.x += (ret.x - GetBlur3(uv).x)*.1;
  463. warp_18=` ret.x += 0.004;
  464. warp_19=`
  465. warp_20=`
  466. warp_21=`//--------------------------------
  467. warp_22=`
  468. warp_23=` my_uv = uv + float2(dy,-dx)*0.05*(1.2-GetBlur3(uv).y);
  469. warp_24=`
  470. warp_25=`
  471. warp_26=`
  472. warp_27=` v = 0.01;
  473. warp_28=` ret.z = tex2D( sampler_fw_main, my_uv).z;
  474. warp_29=`
  475. warp_30=` ret.z += (ret.z - GetBlur1(uv).z)*length(my_uv-uv)*180/length(scale);
  476. warp_31=` ret.z *= 0.85;
  477. warp_32=` ret.z += 0.008;
  478. warp_33=`
  479. warp_34=`
  480. warp_35=`
  481. warp_36=`//--------------------------------
  482. warp_37=`
  483. warp_38=` d = 0.01;
  484. warp_39=` my_uv = float2(-dy,dx)*0.045;
  485. warp_40=`
  486. warp_41=` dx = ( GetBlur2(uv + float2(d,0)) - GetBlur2(uv-float2(d,0)) ).y*scale.x;
  487. warp_42=` dy = ( GetBlur2(uv + float2(0,d)) - GetBlur2(uv-float2(0,d)) ).y*scale.y;
  488. warp_43=` my_uv += uv - float2(dx,dy)*0.03;
  489. warp_44=`
  490. warp_45=`
  491. warp_46=`
  492. warp_47=` v = 0.01;
  493. warp_48=` ret.y =tex2D( sampler_fw_main, my_uv).y;
  494. warp_49=`
  495. warp_50=`
  496. warp_51=` ret.y += (ret.y - GetBlur3(my_uv).y)*0.1 + 0.03;
  497. warp_52=`}
  498. comp_1=`shader_body
  499. comp_2=`{
  500. comp_3=`float2 m = float2(1-q4,q8);
  501. comp_4=`float2 bg_uv = m + (uv-m)*0.992; // subtle 3D shadow drop
  502. comp_5=`float2 mid_uv = m + (uv-m)*0.996;
  503. comp_6=`ret = lerp( float3(0,0,0.2), float3(0.3,0,1),tex2D( sampler_fw_main, bg_uv).y);
  504. comp_7=`ret = lerp(ret, float3(1,1,0), max(GetBlur1(bg_uv).z*1.5,tex2D( sampler_main, mid_uv).z)); // if that isn't a cool glow effect?
  505. comp_8=`ret *= 1-GetBlur1(bg_uv).x*2; // drop shadow
  506. comp_9=`ret = lerp( ret, float3(1,0.1,0.4),tex2D( sampler_fw_main, uv).x);
  507. comp_10=`}