1
0

Flexi + Geiss - pogo-cubes on tokamak matter.milk 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466
  1. MILKDROP_PRESET_VERSION=201
  2. PSVERSION=2
  3. PSVERSION_WARP=2
  4. PSVERSION_COMP=2
  5. [preset00]
  6. fRating=5.000000
  7. fGammaAdj=1.000
  8. fDecay=0.995
  9. fVideoEchoZoom=1.007
  10. fVideoEchoAlpha=0.000
  11. nVideoEchoOrientation=3
  12. nWaveMode=0
  13. bAdditiveWaves=1
  14. bWaveDots=0
  15. bWaveThick=0
  16. bModWaveAlphaByVolume=1
  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=1.413
  26. fWaveScale=0.418
  27. fWaveSmoothing=0.000
  28. fWaveParam=-0.660
  29. fModWaveAlphaStart=2.000
  30. fModWaveAlphaEnd=2.000
  31. fWarpAnimSpeed=0.626
  32. fWarpScale=1.331
  33. fZoomExponent=1.00001
  34. fShader=0.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.08925
  42. sx=1.00000
  43. sy=1.00000
  44. wave_r=0.000
  45. wave_g=0.000
  46. wave_b=1.000
  47. wave_x=0.240
  48. wave_y=0.440
  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=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=1.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=1
  76. wavecode_0_samples=512
  77. wavecode_0_sep=0
  78. wavecode_0_bSpectrum=0
  79. wavecode_0_bUseDots=0
  80. wavecode_0_bDrawThick=1
  81. wavecode_0_bAdditive=1
  82. wavecode_0_scaling=2.02310
  83. wavecode_0_smoothing=0.00000
  84. wavecode_0_r=0.000
  85. wavecode_0_g=1.000
  86. wavecode_0_b=1.000
  87. wavecode_0_a=1.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=vol = bass*8 + mid*5 + treb*3;
  93. wave_0_per_frame2=m = m*0.97 + vol*0.08;
  94. wave_0_per_frame3=monitor = vol;
  95. wave_0_per_frame4=beat = above(vol,res)*above(vol,m)*above(vol,16);
  96. wave_0_per_frame5=diff = (1-beat)*diff + beat*(vol-res);
  97. wave_0_per_frame6=res = beat*(vol + m*0.04) + (1-beat)*(res - (0.1+diff*0.02)*60/fps);
  98. wave_0_per_frame7=res = max(0,res);
  99. wave_0_per_frame8=
  100. wave_0_per_frame9=a = beat;
  101. wave_0_per_point1=tt3 = tt3*0.6 + (value1)*1;
  102. wave_0_per_point2=tt2 = tt2*0.7 + tt3*0.2;
  103. wave_0_per_point3=tt1 = tt1*0.8 + tt2*0.1;
  104. wave_0_per_point4=d = d*0.9 + tt1*0.2;
  105. wave_0_per_point5=
  106. wave_0_per_point6=y = 0.5 + d*sample*(1-sample)*2;
  107. wave_0_per_point7=x = -0.05 + sample*1.1;
  108. wavecode_1_enabled=0
  109. wavecode_1_samples=512
  110. wavecode_1_sep=0
  111. wavecode_1_bSpectrum=1
  112. wavecode_1_bUseDots=0
  113. wavecode_1_bDrawThick=1
  114. wavecode_1_bAdditive=0
  115. wavecode_1_scaling=1.00000
  116. wavecode_1_smoothing=0.50000
  117. wavecode_1_r=1.000
  118. wavecode_1_g=1.000
  119. wavecode_1_b=1.000
  120. wavecode_1_a=1.000
  121. wave_1_init1=chance = 0;
  122. wave_1_per_point1=// the velocity vector
  123. wave_1_per_point2=
  124. wave_1_per_point3=x = q3 + sample*sin(q14)*q13*40;
  125. wave_1_per_point4=y = q4 + sample*cos(q14)*q13*40;
  126. wave_1_per_point5=
  127. wave_1_per_point6=// tangential velocity of rotation
  128. wave_1_per_point7=//x = q3 + sample*q16*40;
  129. wave_1_per_point8=//y = q4 - q5/2;
  130. wave_1_per_point9=
  131. wave_1_per_point10=
  132. wave_1_per_point11=x = 0.5 + (x-0.5)/q1;
  133. wave_1_per_point12=y = 0.5 + (y-0.5)/q2;
  134. wavecode_2_enabled=0
  135. wavecode_2_samples=512
  136. wavecode_2_sep=0
  137. wavecode_2_bSpectrum=1
  138. wavecode_2_bUseDots=0
  139. wavecode_2_bDrawThick=1
  140. wavecode_2_bAdditive=0
  141. wavecode_2_scaling=1.00000
  142. wavecode_2_smoothing=0.50000
  143. wavecode_2_r=1.000
  144. wavecode_2_g=1.000
  145. wavecode_2_b=1.000
  146. wavecode_2_a=1.000
  147. wave_2_init1=chance = 0;
  148. wave_2_per_point1=// tangential property of velocity vector
  149. wave_2_per_point2=
  150. wave_2_per_point3=x = q3 + sample*sin(q10)*cos(q14-q10)*q13*40;
  151. wave_2_per_point4=y = q4 + sample*cos(q10)*cos(q14-q10)*q13*40;
  152. wave_2_per_point5=
  153. wave_2_per_point6=// vx
  154. wave_2_per_point7=//x = q3 + sample*q11*40;
  155. wave_2_per_point8=//y = q4;
  156. wave_2_per_point9=
  157. wave_2_per_point10=x = 0.5 + (x-0.5)/q1;
  158. wave_2_per_point11=y = 0.5 + (y-0.5)/q2;
  159. wavecode_3_enabled=0
  160. wavecode_3_samples=512
  161. wavecode_3_sep=0
  162. wavecode_3_bSpectrum=1
  163. wavecode_3_bUseDots=0
  164. wavecode_3_bDrawThick=1
  165. wavecode_3_bAdditive=0
  166. wavecode_3_scaling=1.00000
  167. wavecode_3_smoothing=0.50000
  168. wavecode_3_r=1.000
  169. wavecode_3_g=1.000
  170. wavecode_3_b=1.000
  171. wavecode_3_a=1.000
  172. wave_3_init1=chance = 0;
  173. wave_3_per_point1=// orthogonal property of velocity vector
  174. wave_3_per_point2=
  175. wave_3_per_point3=x = q3 + sample*sin(q10+asin(1))*cos(q14-q10-asin(1))*q13*40;
  176. wave_3_per_point4=y = q4 + sample*cos(q10+asin(1))*cos(q14-q10-asin(1))*q13*40;
  177. wave_3_per_point5=
  178. wave_3_per_point6=// vy
  179. wave_3_per_point7=//x = q3;
  180. wave_3_per_point8=//y = q4 + sample*q12*40;
  181. wave_3_per_point9=
  182. wave_3_per_point10=x = 0.5 + (x-0.5)/q1;
  183. wave_3_per_point11=y = 0.5 + (y-0.5)/q2;
  184. shapecode_0_enabled=1
  185. shapecode_0_sides=4
  186. shapecode_0_additive=1
  187. shapecode_0_thickOutline=0
  188. shapecode_0_textured=0
  189. shapecode_0_num_inst=1
  190. shapecode_0_x=0.500
  191. shapecode_0_y=0.500
  192. shapecode_0_rad=0.02770
  193. shapecode_0_ang=6.03186
  194. shapecode_0_tex_ang=6.03186
  195. shapecode_0_tex_zoom=0.68390
  196. shapecode_0_r=1.000
  197. shapecode_0_g=0.000
  198. shapecode_0_b=0.000
  199. shapecode_0_a=1.000
  200. shapecode_0_r2=1.000
  201. shapecode_0_g2=0.000
  202. shapecode_0_b2=0.000
  203. shapecode_0_a2=1.000
  204. shapecode_0_border_r=0.000
  205. shapecode_0_border_g=0.000
  206. shapecode_0_border_b=0.000
  207. shapecode_0_border_a=1.000
  208. shape_0_per_frame1=an = an + q6;
  209. shape_0_per_frame2=ang = an*0.5;
  210. shape_0_per_frame3=x = q4;
  211. shape_0_per_frame4=y = q5;
  212. shape_0_per_frame5=rad = q3*sqrt(2);
  213. shape_0_per_frame6=
  214. shape_0_per_frame7=
  215. shape_0_per_frame8=x = 0.5 + (x-0.5)/q2;
  216. shape_0_per_frame9=y = 0.5 + (y-0.5)/q1;
  217. shape_0_per_frame10=
  218. shapecode_1_enabled=1
  219. shapecode_1_sides=4
  220. shapecode_1_additive=1
  221. shapecode_1_thickOutline=0
  222. shapecode_1_textured=0
  223. shapecode_1_num_inst=1
  224. shapecode_1_x=0.500
  225. shapecode_1_y=0.500
  226. shapecode_1_rad=0.02770
  227. shapecode_1_ang=6.03186
  228. shapecode_1_tex_ang=6.03186
  229. shapecode_1_tex_zoom=0.68390
  230. shapecode_1_r=1.000
  231. shapecode_1_g=0.000
  232. shapecode_1_b=0.000
  233. shapecode_1_a=1.000
  234. shapecode_1_r2=1.000
  235. shapecode_1_g2=0.000
  236. shapecode_1_b2=0.000
  237. shapecode_1_a2=1.000
  238. shapecode_1_border_r=0.000
  239. shapecode_1_border_g=0.000
  240. shapecode_1_border_b=0.000
  241. shapecode_1_border_a=1.000
  242. shape_1_per_frame1=an = an + q9;
  243. shape_1_per_frame2=ang = an*0.5;
  244. shape_1_per_frame3=x = q7;
  245. shape_1_per_frame4=y = q8;
  246. shape_1_per_frame5=rad = q3*sqrt(2);
  247. shape_1_per_frame6=
  248. shape_1_per_frame7=x = 0.5 + (x-0.5)/q2;
  249. shape_1_per_frame8=y = 0.5 + (y-0.5)/q1;
  250. shape_1_per_frame9=
  251. shapecode_2_enabled=1
  252. shapecode_2_sides=4
  253. shapecode_2_additive=1
  254. shapecode_2_thickOutline=0
  255. shapecode_2_textured=0
  256. shapecode_2_num_inst=1
  257. shapecode_2_x=0.500
  258. shapecode_2_y=0.500
  259. shapecode_2_rad=0.02770
  260. shapecode_2_ang=6.03186
  261. shapecode_2_tex_ang=6.03186
  262. shapecode_2_tex_zoom=0.68390
  263. shapecode_2_r=1.000
  264. shapecode_2_g=0.000
  265. shapecode_2_b=0.000
  266. shapecode_2_a=1.000
  267. shapecode_2_r2=1.000
  268. shapecode_2_g2=0.000
  269. shapecode_2_b2=0.000
  270. shapecode_2_a2=1.000
  271. shapecode_2_border_r=0.000
  272. shapecode_2_border_g=0.000
  273. shapecode_2_border_b=0.000
  274. shapecode_2_border_a=1.000
  275. shape_2_per_frame1=an = an + q12;
  276. shape_2_per_frame2=ang = an*0.5;
  277. shape_2_per_frame3=x = q10;
  278. shape_2_per_frame4=y = q11;
  279. shape_2_per_frame5=rad = q3*sqrt(2);
  280. shape_2_per_frame6=
  281. shape_2_per_frame7=x = 0.5 + (x-0.5)/q2;
  282. shape_2_per_frame8=y = 0.5 + (y-0.5)/q1;
  283. shape_2_per_frame9=
  284. shapecode_3_enabled=0
  285. shapecode_3_sides=48
  286. shapecode_3_additive=1
  287. shapecode_3_thickOutline=0
  288. shapecode_3_textured=0
  289. shapecode_3_num_inst=4
  290. shapecode_3_x=0.500
  291. shapecode_3_y=0.500
  292. shapecode_3_rad=0.02770
  293. shapecode_3_ang=6.03186
  294. shapecode_3_tex_ang=6.03186
  295. shapecode_3_tex_zoom=0.68390
  296. shapecode_3_r=1.000
  297. shapecode_3_g=1.000
  298. shapecode_3_b=1.000
  299. shapecode_3_a=1.000
  300. shapecode_3_r2=1.000
  301. shapecode_3_g2=1.000
  302. shapecode_3_b2=1.000
  303. shapecode_3_a2=1.000
  304. shapecode_3_border_r=0.000
  305. shapecode_3_border_g=0.000
  306. shapecode_3_border_b=0.000
  307. shapecode_3_border_a=1.000
  308. shape_3_per_frame1=an = an + 0.5*q16/num_inst;
  309. shape_3_per_frame2=w = asin(1)*4*instance/num_inst + an;
  310. shape_3_per_frame3=x = q6 + sin(w)*q5*0.5;
  311. shape_3_per_frame4=y = q7 + cos(w)*q5*0.5;
  312. shape_3_per_frame5=rad = q5*0.25;
  313. shape_3_per_frame6=
  314. shape_3_per_frame7=
  315. shape_3_per_frame8=//x = 0.5 + (x-0.5)/q2;
  316. shape_3_per_frame9=//y = 0.5 + (y-0.5)/q1;
  317. shape_3_per_frame10=
  318. per_frame_init_1=x1 = 0.5;
  319. per_frame_init_2=y1 = 0.6;
  320. per_frame_init_3=
  321. per_frame_init_4=x2 = 0.5;
  322. per_frame_init_5=y2 = 0.4;
  323. per_frame_init_6=
  324. per_frame_init_7=x3 = 0.5;
  325. per_frame_init_8=y3 = 0.2;
  326. per_frame_init_9=
  327. per_frame_init_10=vr1 = 0.0001;
  328. per_frame_init_11=vr2 = 0.0;
  329. per_frame_init_12=vr3 = 0.0;
  330. per_frame_init_13=
  331. per_frame_init_14=vx1 = 0;
  332. per_frame_init_15=vx2 = 0;
  333. per_frame_init_16=vx3 = 0;
  334. per_frame_1=zoom = 1;
  335. per_frame_2=warp = 0;
  336. per_frame_3=wave_a = 0;
  337. per_frame_4=
  338. per_frame_5=r = 0.03+ (bass_att+treb_att)*0.004;
  339. per_frame_6=monitor = aspecty;
  340. per_frame_7=vr = sin(vr1)*r;
  341. per_frame_8=bounce = below(y1,r-(aspectx-1)*0.5);y1 = y1+vy1;vy1 = if(bounce, abs(vy1)*0.96 + (r-y1-(aspectx-1)*0.5)*0.1, vy1-0.0003*60/fps);
  342. per_frame_9=vx1 = if(bounce, vx1 + (vr-vx1)*0.15, vx1);vr = if(bounce, vr + (vx1-vr)*0.85 , vr);vr1 = asin(vr/r);
  343. per_frame_10=bounce = above(x1,1-r+(aspecty-1)*0.5);vx1 = if(bounce, - abs(vx1)*0.96 + (1-r-x1+(aspecty-1)*0.5)*0.1, vx1);
  344. per_frame_11=vy1 = if(bounce, vy1 + (vr-vy1)*0.15, vy1);vr = if(bounce, vr + (vy1-vr)*0.85 , vr);vr1 = asin(vr/r);
  345. per_frame_12=bounce = below(x1,r-(aspecty-1)*0.5);x1 = x1+vx1;vx1 = if(bounce, abs(vx1)*0.96 + (r-x1-(aspecty-1)*0.5)*0.1, vx1);
  346. per_frame_13=vy1 = if(bounce, vy1 + (-vr-vy1)*0.15, vy1);vr = if(bounce, vr - (vy1+vr)*0.85 , vr);vr1 = asin(vr/r);
  347. per_frame_14=
  348. per_frame_15=vr = sin(vr2)*r;
  349. per_frame_16=bounce = below(y2,r-(aspectx-1)*0.5);y2 = y2+vy2;vy2 = if(bounce, abs(vy2)*0.96 + (r-y2-(aspectx-1)*0.5)*0.1, vy2-0.0003*60/fps);
  350. per_frame_17=vx2 = if(bounce, vx2 + (vr-vx2)*0.15, vx2);vr = if(bounce, vr + (vx2-vr)*0.85 , vr);vr2 = asin(vr/r);
  351. per_frame_18=bounce = above(x2,1-r+(aspecty-1)*0.5);vx2 = if(bounce, - abs(vx2)*0.96 + (1-r-x2+(aspecty-1)*0.5)*0.1, vx2);
  352. per_frame_19=vy2 = if(bounce, vy2 + (vr-vy2)*0.15, vy2);vr = if(bounce, vr + (vy2-vr)*0.85 , vr);vr2 = asin(vr/r);
  353. per_frame_20=bounce = below(x2,r-(aspecty-1)*0.5);x2 = x2+vx2;vx2 = if(bounce, abs(vx2)*0.96 + (r-x2-(aspecty-1)*0.5)*0.1, vx2);
  354. per_frame_21=vy2 = if(bounce, vy2 + (-vr-vy2)*0.15, vy2);vr = if(bounce, vr - (vy2+vr)*0.85 , vr);vr2 = asin(vr/r);
  355. per_frame_22=
  356. per_frame_23=vr = sin(vr3)*r;
  357. per_frame_24=bounce = below(y3,r-(aspectx-1)*0.5);y3 = y3+vy3;vy3 = if(bounce, abs(vy3)*0.96 + (r-y3-(aspectx-1)*0.5)*0.1, vy3-0.0003*60/fps);
  358. per_frame_25=vx3 = if(bounce, vx3 + (vr-vx3)*0.15, vx3);vr = if(bounce, vr + (vx3-vr)*0.85 , vr);vr3 = asin(vr/r);
  359. per_frame_26=bounce = above(x3,1-r+(aspecty-1)*0.5);vx3 = if(bounce, - abs(vx3)*0.96 + (1-r-x3+(aspecty-1)*0.5)*0.1, vx3);
  360. per_frame_27=vy3 = if(bounce, vy3 + (vr-vy3)*0.15, vy3);vr = if(bounce, vr + (vy3-vr)*0.85 , vr);vr3 = asin(vr/r);
  361. per_frame_28=bounce = below(x3,r-(aspecty-1)*0.5);x3 = x3+vx3;vx3 = if(bounce, abs(vx3)*0.96 + (r-x3-(aspecty-1)*0.5)*0.1, vx3);
  362. per_frame_29=vy3 = if(bounce, vy3 + (-vr-vy3)*0.15, vy3);vr = if(bounce, vr - (vy3+vr)*0.85 , vr);vr3 = asin(vr/r);
  363. per_frame_30=
  364. per_frame_31=bounce = below( sqrt( sqr(x1+vx1-x2-vx2) + sqr(y1+vy1-y2-vy2)), 2*r);
  365. per_frame_32=bounce = bounce*below(sqrt( sqr(x1+vx1-x2-vx2) + sqr(y1+vy1-y2-vy2)),sqrt( sqr(x1-x2) + sqr(y1-y2)));
  366. per_frame_33=ref_ang = atan2(x2-x1,y2-y1)+asin(1); // common tangent
  367. per_frame_34=v1 = sqrt(vx1*vx1+vy1*vy1);v2 = sqrt(vx2*vx2+vy2*vy2);w1 = atan2(vx1,vy1);w2 = atan2(vx2,vy2);
  368. per_frame_35=vr = sin(vr1)*r; v2r=sin(vr2)*r;
  369. per_frame_36=vx1 = if(bounce,sin(ref_ang)*v1*cos(w1-ref_ang) + ((vr-v2r)-sin(ref_ang)*v1*cos(w1-ref_ang))*0.1
  370. per_frame_37= + sin(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vx1);
  371. per_frame_38=vy1 = if(bounce,cos(ref_ang)*v1*cos(w1-ref_ang) + ((vr-v2r)-cos(ref_ang)*v1*cos(w1-ref_ang))*0.1
  372. per_frame_39= + cos(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vy1);
  373. per_frame_40=vx2 = if(bounce,sin(ref_ang)*v2*cos(w2-ref_ang) + ((v2r-vr)-sin(ref_ang)*v2*cos(w2-ref_ang))*0.1
  374. per_frame_41= + sin(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vx2);
  375. per_frame_42=vy2 = if(bounce,cos(ref_ang)*v2*cos(w2-ref_ang) + ((v2r-vr)-cos(ref_ang)*v2*cos(w2-ref_ang))*0.1
  376. per_frame_43= + cos(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vy2);
  377. per_frame_44=vr = if(bounce, vr + (cos(w1-ref_ang)*(v1-v2)-vr)*0.9 , vr);vr1 = asin(vr/r);
  378. per_frame_45=v2r = if(bounce, v2r + (cos(w2-ref_ang)*(v2-v1)-v2r)*0.9 , v2r);vr2 = asin(v2r/r);
  379. per_frame_46=
  380. per_frame_47=bounce = below( sqrt( sqr(x1+vx1-x3-vx3) + sqr(y1+vy1-y3-vy3)), 2*r);
  381. per_frame_48=bounce = bounce*below(sqrt( sqr(x1+vx1-x3-vx3) + sqr(y1+vy1-y3-vy3)),sqrt( sqr(x1-x3) + sqr(y1-y3)));
  382. per_frame_49=ref_ang = atan2(x3-x1,y3-y1)+asin(1); // common tangent
  383. per_frame_50=v1 = sqrt(vx1*vx1+vy1*vy1);v2 = sqrt(vx3*vx3+vy3*vy3);w1 = atan2(vx1,vy1);w2 = atan2(vx3,vy3);
  384. per_frame_51=vr = sin(vr1)*r; v2r=sin(vr3)*r;
  385. per_frame_52=vx1 = if(bounce,sin(ref_ang)*v1*cos(w1-ref_ang) + ((vr-v2r)-sin(ref_ang)*v1*cos(w1-ref_ang))*0.1
  386. per_frame_53= + sin(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vx1);
  387. per_frame_54=vy1 = if(bounce,cos(ref_ang)*v1*cos(w1-ref_ang) + ((vr-v2r)-cos(ref_ang)*v1*cos(w1-ref_ang))*0.1
  388. per_frame_55= + cos(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vy1);
  389. per_frame_56=vx3 = if(bounce,sin(ref_ang)*v2*cos(w2-ref_ang) + ((v2r-vr)-sin(ref_ang)*v2*cos(w2-ref_ang))*0.1
  390. per_frame_57= + sin(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vx3);
  391. per_frame_58=vy3 = if(bounce,cos(ref_ang)*v2*cos(w2-ref_ang) + ((v2r-vr)-cos(ref_ang)*v2*cos(w2-ref_ang))*0.1
  392. per_frame_59= + cos(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vy3);
  393. per_frame_60=vr = if(bounce, vr + (cos(w1-ref_ang)*(v1-v2)-vr)*0.9 , vr);vr1 = asin(vr/r);
  394. per_frame_61=v2r = if(bounce, v2r + (cos(w2-ref_ang)*(v2-v1)-v2r)*0.9 , v2r);vr3 = asin(v2r/r);
  395. per_frame_62=
  396. per_frame_63=bounce = below( sqrt( sqr(x3+vx3-x2-vx2) + sqr(y3+vy3-y2-vy2)), 2*r);
  397. per_frame_64=bounce = bounce*below(sqrt( sqr(x2+vx2-x3-vx3) + sqr(y2+vy2-y3-vy3)),sqrt( sqr(x2-x3) + sqr(y2-y3)));
  398. per_frame_65=ref_ang = atan2(x2-x3,y2-y3)+asin(1); // common tangent
  399. per_frame_66=v1 = sqrt(vx3*vx3+vy3*vy3);v2 = sqrt(vx2*vx2+vy2*vy2);w1 = atan2(vx3,vy3);w2 = atan2(vx2,vy2);
  400. per_frame_67=vr = sin(vr3)*r; v2r=sin(vr2)*r;
  401. per_frame_68=vx3 = if(bounce,sin(ref_ang)*v1*cos(w1-ref_ang) + ((vr-v2r)-sin(ref_ang)*v1*cos(w1-ref_ang))*0.1
  402. per_frame_69= + sin(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vx3);
  403. per_frame_70=vy3 = if(bounce,cos(ref_ang)*v1*cos(w1-ref_ang) + ((vr-v2r)-cos(ref_ang)*v1*cos(w1-ref_ang))*0.1
  404. per_frame_71= + cos(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vy3);
  405. per_frame_72=vx2 = if(bounce,sin(ref_ang)*v2*cos(w2-ref_ang) + ((v2r-vr)-sin(ref_ang)*v2*cos(w2-ref_ang))*0.1
  406. per_frame_73= + sin(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vx2);
  407. per_frame_74=vy2 = if(bounce,cos(ref_ang)*v2*cos(w2-ref_ang) + ((v2r-vr)-cos(ref_ang)*v2*cos(w2-ref_ang))*0.1
  408. per_frame_75= + cos(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vy2);
  409. per_frame_76=vr = if(bounce, vr + (cos(w1-ref_ang)*(v1-v2)-vr)*0.9 , vr);vr3 = asin(vr/r);
  410. per_frame_77=v2r = if(bounce, v2r + (cos(w2-ref_ang)*(v2-v1)-v2r)*0.9 , v2r);vr2 = asin(v2r/r);
  411. per_frame_78=
  412. per_frame_79=
  413. per_frame_80=
  414. per_frame_81=
  415. per_frame_82=q1 = aspectx;
  416. per_frame_83=q2 = aspecty;
  417. per_frame_84=q3 = r*2;
  418. per_frame_85=
  419. per_frame_86=q4 = x1; q5 = y1; q6 = vr1;
  420. per_frame_87=q7 = x2; q8 = y2; q9 = vr2;
  421. per_frame_88=q10 = x3; q11 = y3; q12 = vr3;
  422. per_frame_89=
  423. per_frame_90=q13 = atan2( (x1+x2+x3)/3 - 0.5, (y1+y2+y3)/3-0.5);
  424. per_frame_91=q14 = sigmoid(sqrt( sqr((x1+x2+x3)/3 - 0.5) + sqr((y1+y2+y3)/3-0.5) ),2)*0.2;
  425. per_pixel_1=du = (x*2-1) - (q4+q7+q10-1.5)*2/3;
  426. per_pixel_2=dv = (y*2-1) + (q5+q8+q11-1.5)*2/3;
  427. per_pixel_3=dist = sqrt(du*du+dv*dv);
  428. per_pixel_4=ang2 = atan2(du,dv);
  429. per_pixel_5=mult = sin(dist*0.05)*0.4*q14;
  430. per_pixel_6=dx = mult*sin(ang2*2+q13)*aspectx;
  431. per_pixel_7=dy = mult*cos(ang2*2+q13)*aspecty;
  432. warp_1=`shader_body
  433. warp_2=`{
  434. warp_3=` float2 d = texsize.zw * 8;
  435. warp_4=` float3 dx = ( GetBlur1(uv_orig + float2(1,0)*d) - GetBlur1(uv_orig-float2(1,0)*d) );
  436. warp_5=` float3 dy = ( GetBlur1(uv_orig + float2(0,1)*d) - GetBlur1(uv_orig-float2(0,1)*d) );
  437. warp_6=`
  438. warp_7=`ret.y = tex2d(sampler_fc_main, frac(uv + float2(dx.y,dy.y)*texsize.zw*4)).y;
  439. warp_8=`float2 dither_uv = uv_orig*texsize.xy*texsize_noise_lq.zw * 1.2 + rand_frame.xy;
  440. warp_9=`ret.y += (tex2D(sampler_noise_lq, dither_uv).xyz-0.5) *0.0 - 0.004;
  441. warp_10=`ret = 0;
  442. warp_11=`ret.y = tex2d(sampler_fc_main, frac(uv)).y;
  443. warp_12=`ret.y += (ret.y - GetBlur3(frac(uv)).y -0.03)*.6 - 0.06;
  444. warp_13=`ret.y += GetBlur3(uv_orig).x*0.3;
  445. warp_14=`
  446. warp_15=`ret.z = tex2d(sampler_fc_main,lerp(uv_orig,uv,0.3) + float2(dx.z,dy.z)*texsize.zw*8).z - 0.03;
  447. warp_16=`ret.z += saturate(0.2-GetBlur2(uv).y)*0.1 + GetBlur2(uv_orig).x*0.2;
  448. warp_17=`
  449. warp_18=`}
  450. comp_1=`shader_body
  451. comp_2=`{
  452. comp_3=` float2 d = texsize.zw*2;
  453. comp_4=` float3 dx = ( GetBlur1(uv+float2(1,0)*d)-GetBlur1(uv-float2(1,0)*d) );
  454. comp_5=` float3 dy = ( GetBlur1(uv+float2(0,1)*d)-GetBlur1(uv-float2(0,1)*d) );
  455. comp_6=`ret = lerp(ret,float3(0.4,0.8,0.9),GetBlur1(uv - float2(dx.y,dy.y)*0).z);
  456. comp_7=`
  457. comp_8=`float2 uv_bg = uv - float2(dx.y,dy.y)*texsize.zw*16 + float2(dx.x,dy.x)*0.2;
  458. comp_9=`ret = lerp(ret,1,(GetBlur2(uv_bg)-GetBlur1(uv_bg)*1+GetPixel(uv_bg)*0.9 + (-dx.y + dy.y)*0.4).y*0.8*float3(1.3,1.04,0.4));
  459. comp_10=`
  460. comp_11=`float2 uv_m = uv - float2(dx.x,dy.x)*texsize.zw*8;
  461. comp_12=`ret = lerp(ret, 2*float3(0,0.5,1), GetBlur3(uv_m - float2(dx.y,dy.y)*0.4).x*0.4);
  462. comp_13=`ret = lerp(ret, 2*float3(0.5,1,1), GetBlur2(uv_m - float2(dx.y,dy.y)*0.2).x*0.4);
  463. comp_14=`ret = lerp(ret, 2*float3(1,1,0.8), GetBlur1(uv_m - float2(dx.y,dy.y)*0.1).x*0.2);
  464. comp_15=`ret = lerp(saturate(ret), float3(0,0,0), GetBlur1(uv_m + float2(1,-1)*0.02).x*0.4);
  465. comp_16=`ret = lerp(saturate(ret), float3(1,-0.2,-0.2), GetPixel(uv).x*0.6);
  466. comp_17=`}