1MILKDROP_PRESET_VERSION=201 2PSVERSION=3 3PSVERSION_WARP=3 4PSVERSION_COMP=3 5[preset00] 6fRating=3.000 7fGammaAdj=1.000 8fDecay=0.925 9fVideoEchoZoom=1.007 10fVideoEchoAlpha=0.000 11nVideoEchoOrientation=3 12nWaveMode=2 13bAdditiveWaves=0 14bWaveDots=0 15bWaveThick=0 16bModWaveAlphaByVolume=0 17bMaximizeWaveColor=1 18bTexWrap=0 19bDarkenCenter=0 20bRedBlueStereo=0 21bBrighten=0 22bDarken=0 23bSolarize=0 24bInvert=0 25fWaveAlpha=0.800 26fWaveScale=0.010 27fWaveSmoothing=0.750 28fWaveParam=0.000 29fModWaveAlphaStart=0.750 30fModWaveAlphaEnd=0.950 31fWarpAnimSpeed=1.000 32fWarpScale=5.921 33fZoomExponent=1.00000 34fShader=0.000 35zoom=1.00030 36rot=0.00000 37cx=0.500 38cy=0.500 39dx=0.00000 40dy=0.00000 41warp=0.59124 42sx=1.00000 43sy=0.99998 44wave_r=1.000 45wave_g=1.000 46wave_b=1.000 47wave_x=0.500 48wave_y=0.500 49ob_size=0.000 50ob_r=1.000 51ob_g=0.050 52ob_b=0.100 53ob_a=1.000 54ib_size=0.000 55ib_r=0.250 56ib_g=0.250 57ib_b=0.250 58ib_a=0.000 59nMotionVectorsX=12.000 60nMotionVectorsY=9.000 61mv_dx=0.000 62mv_dy=0.000 63mv_l=0.900 64mv_r=1.000 65mv_g=1.000 66mv_b=1.000 67mv_a=0.000 68b1n=0.000 69b2n=0.000 70b3n=0.000 71b1x=0.500 72b2x=1.000 73b3x=1.000 74b1ed=0.250 75wavecode_0_enabled=0 76wavecode_0_samples=512 77wavecode_0_sep=0 78wavecode_0_bSpectrum=0 79wavecode_0_bUseDots=1 80wavecode_0_bDrawThick=0 81wavecode_0_bAdditive=0 82wavecode_0_scaling=1.00000 83wavecode_0_smoothing=0.50000 84wavecode_0_r=0.500 85wavecode_0_g=0.500 86wavecode_0_b=1.000 87wavecode_0_a=0.400 88wavecode_1_enabled=0 89wavecode_1_samples=512 90wavecode_1_sep=0 91wavecode_1_bSpectrum=0 92wavecode_1_bUseDots=1 93wavecode_1_bDrawThick=0 94wavecode_1_bAdditive=0 95wavecode_1_scaling=0.20929 96wavecode_1_smoothing=0.00000 97wavecode_1_r=0.300 98wavecode_1_g=0.200 99wavecode_1_b=1.000 100wavecode_1_a=0.100 101wavecode_2_enabled=0 102wavecode_2_samples=512 103wavecode_2_sep=0 104wavecode_2_bSpectrum=0 105wavecode_2_bUseDots=0 106wavecode_2_bDrawThick=0 107wavecode_2_bAdditive=0 108wavecode_2_scaling=1.00000 109wavecode_2_smoothing=0.50000 110wavecode_2_r=0.800 111wavecode_2_g=0.800 112wavecode_2_b=1.000 113wavecode_2_a=0.000 114wavecode_3_enabled=0 115wavecode_3_samples=512 116wavecode_3_sep=0 117wavecode_3_bSpectrum=0 118wavecode_3_bUseDots=0 119wavecode_3_bDrawThick=1 120wavecode_3_bAdditive=0 121wavecode_3_scaling=1.00000 122wavecode_3_smoothing=0.40000 123wavecode_3_r=1.000 124wavecode_3_g=0.600 125wavecode_3_b=1.000 126wavecode_3_a=0.000 127shapecode_0_enabled=1 128shapecode_0_sides=50 129shapecode_0_additive=0 130shapecode_0_thickOutline=0 131shapecode_0_textured=0 132shapecode_0_num_inst=200 133shapecode_0_x=0.500 134shapecode_0_y=0.500 135shapecode_0_rad=0.01000 136shapecode_0_ang=0.00000 137shapecode_0_tex_ang=0.87965 138shapecode_0_tex_zoom=0.19950 139shapecode_0_r=0.000 140shapecode_0_g=0.000 141shapecode_0_b=0.000 142shapecode_0_a=1.000 143shapecode_0_r2=1.000 144shapecode_0_g2=1.000 145shapecode_0_b2=1.000 146shapecode_0_a2=0.000 147shapecode_0_border_r=1.000 148shapecode_0_border_g=1.000 149shapecode_0_border_b=1.000 150shapecode_0_border_a=0.000 151shape_0_per_frame1= 152shape_0_per_frame2=sample=instance/num_inst; 153shape_0_per_frame3= 154shape_0_per_frame4=rad= (16+14*sin(.1*time))*rad/(.3+abs(z3)*d); 155shape_0_per_frame5= 156shape_0_per_frame6=/////shifter's cube 157shape_0_per_frame7= 158shape_0_per_frame8=it = it+1; 159shape_0_per_frame9=sz = 1; 160shape_0_per_frame10=ss = sample*6; 161shape_0_per_frame11=ox = sz*.5*pow(-1,it)*below(ss,1) + .5*pow(-1,it)*above(ss,1)*sz*below(ss,2) + above(ss,2)*.5*pow(-1,it)*sz*below(ss,3); 162shape_0_per_frame12=oy = (ss-.5)*sz*below(ss,1) + sz*.5*above(ss,1)*below(ss,2) + (.5-(ss-2))*sz*above(ss,2)*below(ss,3); 163shape_0_per_frame13=oz = -sz*.5*below(ss,1) + ((ss-1)-.5)*sz*above(ss,1)*below(ss,2) + sz*.5*above(ss,2)*below(ss,3); 164shape_0_per_frame14=ox = ox + above(ss,3)*below(ss,4)*-.5*sz + above(ss,4)*below(ss,5)*sz*(-.5+(ss-4)) + above(ss,5)*sz*.5; 165shape_0_per_frame15=oy = oy + above(ss,3)*below(ss,4)*.5*sz*pow(-1,it) + above(ss,4)*below(ss,5)*sz*-.5 + above(ss,5)*sz*(-.5+(ss-5)); 166shape_0_per_frame16=oz = oz + above(ss,3)*below(ss,4)*sz*(.5-(ss-3)) + above(ss,4)*below(ss,5)*sz*.5*pow(-1,it) + above(ss,5)*sz*.5*pow(-1,it); 167shape_0_per_frame17= 168shape_0_per_frame18=my_x =ox+.1*sin(q2); 169shape_0_per_frame19=my_y =oy+.1*sin(q3); 170shape_0_per_frame20=my_z =oz+.1*sin(q1); 171shape_0_per_frame21= 172shape_0_per_frame22= 173shape_0_per_frame23=/////// rotations 174shape_0_per_frame24= 175shape_0_per_frame25=d = 3; 176shape_0_per_frame26=zoom = .9; 177shape_0_per_frame27= 178shape_0_per_frame28=w3 = q3; 179shape_0_per_frame29=w2 = q1; 180shape_0_per_frame30=w1 = q2; 181shape_0_per_frame31= 182shape_0_per_frame32=x1 = cos(w1)*my_x + sin(w1)*my_y; 183shape_0_per_frame33=y1 = -sin(w1)*my_x + cos(w1)*my_y; 184shape_0_per_frame34=z1 = my_z; 185shape_0_per_frame35= 186shape_0_per_frame36=x2 = cos(w2)*x1 + sin(w2)*z1; 187shape_0_per_frame37=z2 = -sin(w2)*x1 + cos(w2)*z1; 188shape_0_per_frame38=y2 = y1; 189shape_0_per_frame39= 190shape_0_per_frame40=y3 = cos(w3)*y2 + sin(w3)*z2; 191shape_0_per_frame41=z3 = -sin(w3)*y2 + cos(w3)*z2; 192shape_0_per_frame42=x3 = x2; 193shape_0_per_frame43= 194shape_0_per_frame44=l = sqrt(x3*x3 + y3*y3); 195shape_0_per_frame45=w = atan2(x3,y3); 196shape_0_per_frame46=d = sqrt(x3*x3 + y3*y3 + (z3+d)*(z3+d)); 197shape_0_per_frame47=p = tan(asin(1) + atan2(d+z3,l)); 198shape_0_per_frame48= 199shape_0_per_frame49=my_x = zoom*sin(w)*p; 200shape_0_per_frame50=my_y = zoom*cos(w)*p; 201shape_0_per_frame51= 202shape_0_per_frame52=x = 0.5 + my_x/q6; 203shape_0_per_frame53=y = 0.5 + my_y/q5; 204shape_0_per_frame54= 205shape_0_per_frame55=r=.5+.5*sin(22*sample+q2); 206shape_0_per_frame56=g=.5+.5*sin(26*sample+q1); 207shape_0_per_frame57=b=.5+.5*sin(14*sample+q3); 208shape_0_per_frame58= 209shape_0_per_frame59=r2=.1*r; 210shape_0_per_frame60=g2=.1*g; 211shape_0_per_frame61=b2=.1*b; 212shapecode_1_enabled=1 213shapecode_1_sides=4 214shapecode_1_additive=0 215shapecode_1_thickOutline=0 216shapecode_1_textured=1 217shapecode_1_num_inst=30 218shapecode_1_x=0.100 219shapecode_1_y=0.120 220shapecode_1_rad=0.29767 221shapecode_1_ang=0.00000 222shapecode_1_tex_ang=0.00000 223shapecode_1_tex_zoom=1.00000 224shapecode_1_r=1.000 225shapecode_1_g=1.000 226shapecode_1_b=1.000 227shapecode_1_a=1.000 228shapecode_1_r2=1.000 229shapecode_1_g2=1.000 230shapecode_1_b2=1.000 231shapecode_1_a2=1.000 232shapecode_1_border_r=1.000 233shapecode_1_border_g=1.000 234shapecode_1_border_b=1.000 235shapecode_1_border_a=0.050 236shape_1_per_frame1=sample=instance/num_inst; 237shape_1_per_frame2= 238shape_1_per_frame3=y=y+3*y*sample*sample; 239shape_1_per_frame4= 240shape_1_per_frame5=tex_zoom=1.5+1.*sin(144*sample+time); 241shape_1_per_frame6=tex_ang=5*q1*sin(388*sample); 242shape_1_per_frame7=r=.5+.5*sin(sample+time); 243shape_1_per_frame8=r2=r; 244shape_1_per_frame9=g=.5+.5*sin(2*sample+1.2*time); 245shape_1_per_frame10=g2=g; 246shape_1_per_frame11=b=.5+.5*sin(3*sample+1.3*time); 247shape_1_per_frame12=b2=b; 248shapecode_2_enabled=1 249shapecode_2_sides=12 250shapecode_2_additive=0 251shapecode_2_thickOutline=0 252shapecode_2_textured=0 253shapecode_2_num_inst=92 254shapecode_2_x=0.800 255shapecode_2_y=0.500 256shapecode_2_rad=0.02705 257shapecode_2_ang=1.57080 258shapecode_2_tex_ang=1.25664 259shapecode_2_tex_zoom=3.07268 260shapecode_2_r=1.000 261shapecode_2_g=1.000 262shapecode_2_b=1.000 263shapecode_2_a=1.000 264shapecode_2_r2=0.000 265shapecode_2_g2=0.000 266shapecode_2_b2=0.000 267shapecode_2_a2=0.000 268shapecode_2_border_r=1.000 269shapecode_2_border_g=0.000 270shapecode_2_border_b=0.000 271shapecode_2_border_a=0.000 272shape_2_per_frame1=t1 = time - int (time); 273shape_2_per_frame2=sample = instance/num_inst; 274shape_2_per_frame3=t_abs = sample*3; 275shape_2_per_frame4=t_rel = sample-time/5; 276shape_2_per_frame5= 277shape_2_per_frame6=ampl = 2*t_abs/2 ; 278shape_2_per_frame7= 279shape_2_per_frame8=k1=sin(time/13); 280shape_2_per_frame9=k2=sin(time/12); 281shape_2_per_frame10=ox = ampl*sin (t_abs*(31+5*k1)) + sin(time/25)*(1-t_abs)*0.4 ; 282shape_2_per_frame11=oy = ampl*cos (t_abs*(31+5*k2)); 283shape_2_per_frame12=oz = -1 ; 284shape_2_per_frame13= 285shape_2_per_frame14= 286shape_2_per_frame15=r = sqr(sin(t_rel*3.4)); 287shape_2_per_frame16=g = sqr(sin(t_rel)); 288shape_2_per_frame17=b = sqr (cos(t_rel*1.8)); 289shape_2_per_frame18= 290shape_2_per_frame19=//a=(0.1*(sin(t_abs*3)) + 0.6*q3*below (abs(1-t_abs-t1 ),0.3))*a; 291shape_2_per_frame20= 292shape_2_per_frame21=xang = time/9.5; 293shape_2_per_frame22=yang = 0*time/7; 294shape_2_per_frame23=zang = -time/22; 295shape_2_per_frame24=fov = 0.5; 296shape_2_per_frame25= 297shape_2_per_frame26= 298shape_2_per_frame27=// Rotation um x,y,z 299shape_2_per_frame28= 300shape_2_per_frame29=mx = ox*cos(zang) - oy*sin(zang); 301shape_2_per_frame30=my = ox*sin(zang) + oy*cos(zang); 302shape_2_per_frame31= 303shape_2_per_frame32=ox = mx; 304shape_2_per_frame33=oy = my; 305shape_2_per_frame34=mx = ox*cos(yang) + oz*sin(yang); 306shape_2_per_frame35=mz = - ox*sin(yang) + oz*cos(yang); 307shape_2_per_frame36=ox = mx; 308shape_2_per_frame37=oz = mz; 309shape_2_per_frame38=my = oy*cos(xang) - oz*sin(xang); 310shape_2_per_frame39=mz = oy*sin(xang) + oz*cos(xang); 311shape_2_per_frame40=oy = my; 312shape_2_per_frame41=oz = mz; 313shape_2_per_frame42= 314shape_2_per_frame43=oz = oz - 6; 315shape_2_per_frame44=x = ox*fov/oz +0.5; 316shape_2_per_frame45=//x = (x-.5)*0.75 + 0.5; 317shape_2_per_frame46=y = oy*fov/oz + 0.5; 318shape_2_per_frame47= 319shape_2_per_frame48=a=1/mz*.5; 320shape_2_per_frame49=//a2=1/mz*.5; 321shape_2_per_frame50=//border_a=1/mz*.5; 322shape_2_per_frame51=rad=1/mz*.005; 323shapecode_3_enabled=1 324shapecode_3_sides=12 325shapecode_3_additive=0 326shapecode_3_thickOutline=0 327shapecode_3_textured=0 328shapecode_3_num_inst=92 329shapecode_3_x=0.800 330shapecode_3_y=0.500 331shapecode_3_rad=0.19790 332shapecode_3_ang=1.57080 333shapecode_3_tex_ang=1.25664 334shapecode_3_tex_zoom=3.07268 335shapecode_3_r=1.000 336shapecode_3_g=1.000 337shapecode_3_b=1.000 338shapecode_3_a=1.000 339shapecode_3_r2=0.000 340shapecode_3_g2=0.000 341shapecode_3_b2=0.000 342shapecode_3_a2=0.000 343shapecode_3_border_r=1.000 344shapecode_3_border_g=0.000 345shapecode_3_border_b=0.000 346shapecode_3_border_a=0.000 347shape_3_per_frame1=t1 = time - int (time); 348shape_3_per_frame2=sample = instance/num_inst; 349shape_3_per_frame3=t_abs = sample*3; 350shape_3_per_frame4=t_rel = sample-time/5; 351shape_3_per_frame5= 352shape_3_per_frame6=ampl = 2*t_abs/2 ; 353shape_3_per_frame7= 354shape_3_per_frame8=k1=sin(time/13); 355shape_3_per_frame9=k2=sin(time/12); 356shape_3_per_frame10=ox = ampl*sin (t_abs*(31+5*k1)) + sin(time/25)*(1-t_abs)*0.4 ; 357shape_3_per_frame11=oy = ampl*cos (t_abs*(31+5*k2)); 358shape_3_per_frame12=oz = -1 ; 359shape_3_per_frame13= 360shape_3_per_frame14= 361shape_3_per_frame15=r = sqr(sin(t_rel*3.4)); 362shape_3_per_frame16=g = sqr(sin(t_rel)); 363shape_3_per_frame17=b = sqr (cos(t_rel*1.8)); 364shape_3_per_frame18= 365shape_3_per_frame19=//a=(0.1*(sin(t_abs*3)) + 0.6*q3*below (abs(1-t_abs-t1 ),0.3))*a; 366shape_3_per_frame20= 367shape_3_per_frame21=xang = time/9.5; 368shape_3_per_frame22=yang = 0*time/7; 369shape_3_per_frame23=zang = -time/22; 370shape_3_per_frame24=fov = 0.5; 371shape_3_per_frame25= 372shape_3_per_frame26= 373shape_3_per_frame27=// Rotation um x,y,z 374shape_3_per_frame28= 375shape_3_per_frame29=mx = ox*cos(zang) - oy*sin(zang); 376shape_3_per_frame30=my = ox*sin(zang) + oy*cos(zang); 377shape_3_per_frame31= 378shape_3_per_frame32=ox = mx; 379shape_3_per_frame33=oy = my; 380shape_3_per_frame34=mx = ox*cos(yang) + oz*sin(yang); 381shape_3_per_frame35=mz = - ox*sin(yang) + oz*cos(yang); 382shape_3_per_frame36=ox = mx; 383shape_3_per_frame37=oz = mz; 384shape_3_per_frame38=my = oy*cos(xang) - oz*sin(xang); 385shape_3_per_frame39=mz = oy*sin(xang) + oz*cos(xang); 386shape_3_per_frame40=oy = my; 387shape_3_per_frame41=oz = mz; 388shape_3_per_frame42= 389shape_3_per_frame43=oz = oz - 6; 390shape_3_per_frame44=x = ox*fov/oz +0.5; 391shape_3_per_frame45=//x = (x-.5)*0.75 + 0.5; 392shape_3_per_frame46=y = oy*fov/oz + 0.5; 393shape_3_per_frame47= 394shape_3_per_frame48=sides=int(rand(100)); 395shape_3_per_frame49=ang=int(rand(628))/100; 396shape_3_per_frame50=a=int(rand(1000))/1000; 397shape_3_per_frame51=rad=int(rand(1000))/4000; 398per_frame_1=chng=sin(time*.5); 399per_frame_2=cthr=.9999; 400per_frame_3=mq21=if(above(chng,cthr),rand(3),mq21); 401per_frame_4=mq22=if(above(chng,cthr),rand(3),mq22); 402per_frame_5=mq23=if(above(chng,cthr),rand(3),mq23); 403per_frame_6=mq24=if(above(chng,cthr),rand(2),mq24); 404per_frame_7=mq25=if(above(chng,cthr),rand(2),mq25); 405per_frame_8=mq26=if(above(chng,cthr),rand(2),mq26); 406per_frame_9=mq27=if(above(chng,cthr),rand(1),mq27); 407per_frame_10=mq28=if(above(chng,cthr),rand(1),mq28); 408per_frame_11=mq29=if(above(chng,cthr),rand(1)*.3,mq29); 409per_frame_12=mq31=if(above(chng,cthr),rand(1)*.3,mq31); 410per_frame_13=monitor=chng; 411per_frame_14=q21=mq21;q22=mq22;q23=mq23;q24=mq24;q25=mq25;q26=mq26; 412per_frame_15=q27=mq27;q28=mq28;q29=mq29;q31=mq31; 413per_frame_16= 414per_frame_17=monitor=mq1; 415per_frame_18=vol=bass+treb+mid; 416per_frame_19=atime=atime+vol; 417per_frame_20=q11=.4+sin(atime*.006 )*.4; 418per_frame_21=q12=.4+cos(atime*.00613828348)*.4; 419per_frame_22=q13=.4+sin(atime*.00598593455)*.4; 420per_frame_23=monitor=q13; 421per_frame_24=q4=sin(atime*.03); 422per_frame_25=q5=cos(atime*.030383824); 423per_frame_26=q6=tan(atime*.029384834); 424per_frame_27= 425per_frame_28=wzoom = 0.18*sin(time); 426per_frame_29=q3=wzoom; 427per_frame_30=q1 = 0.8 - 0.3*sin(-time*1.3); 428per_frame_31=q2 = 0.8 - 0.3*cos(-time); 429per_frame_32=monitor=fps; 430per_frame_33=vol = 0.1*(vol*9 + (bass_att+mid_att+treb_att)*0.333333); 431per_frame_34=q20 = vol; 432per_frame_35= 433per_frame_36=mtime = mtime+vol*0.05; 434per_frame_37=rx = 0.3+0.05*sin(mtime*0.3); 435per_frame_38=ry = 0.5+0.05*sin(mtime*0.4); 436per_frame_39=q4=rx; 437per_frame_40=q5=ry; 438per_frame_41=tx = 0.5+0.4*sin(mtime*0.18); 439per_frame_42=ty = 0.5+1.3*sin(mtime*0.14); 440per_frame_43=q6=tx; 441per_frame_44=q7=ty; 442per_frame_45= 443per_frame_46=tr = 0.5 + 0.4*(0.6*sin(mtime*0.64) + 0.4*sin(mtime*0.32)); 444per_frame_47=tb = 0.5 + 0.4*(0.6*sin(-mtime*0.24) + 0.4*sin(mtime*0.72)); 445per_frame_48=tg = 0.5 + 0.4*(0.6*sin(mtime*0.42) + 0.4*cos(mtime*0.50)); 446per_frame_49=q11=tr; 447per_frame_50=q12=tg; 448per_frame_51=q13=rb; 449per_frame_52= 450per_frame_53= 451per_frame_54= 452per_frame_55=bass_thresh = above(bass_att,bass_thresh)*2 + 453per_frame_56= (1-above(bass_att,bass_thresh))*((bass_thresh-1.3)*0.96+1.3); 454per_frame_57=count = equal(bass_thresh, 2)*1 + (1-equal(bass_thresh, 2))*count; 455per_frame_58=count = count - above(count, 0.02)*0.02; 456per_frame_59=q10=count; 457per_frame_60= 458per_frame_61=// raytraced sphere code 459per_frame_62= 460per_frame_63=d = 20; // distance of the sphere, the farther you're away the more you'll see on the horizon 461per_frame_64=z = 0.4; // distance of the pane where the scene is projected on, wider distance = smaller apex angle of the camera, very small distances = fish eyes view 462per_frame_65= 463per_frame_66=zz = 10 + bass_att*2; // linear zoom 464per_frame_67= 465per_frame_68=pi = asin(1)*2; 466per_frame_69=pi2inv = 0.5/pi; 467per_frame_70=maskangle = asin( 1/d); 468per_frame_71=q32 = maskangle; // hit = (cameras angle < mask_angle) 469per_frame_72=q31 = d; 470per_frame_73=q30 = z; 471per_frame_74=q29 = pi2inv; 472per_frame_75=q28 = pi; 473per_frame_76=q27 = 1/zz; 474per_frame_77=q26 = time; 475per_frame_78=v = 0.4; 476per_frame_79=j1 = j1*0.95 + sqr(bass*4)*v; 477per_frame_80=j2 = j2*0.95 + sqr(mid*4)*v; 478per_frame_81=j3 = j3*0.95 + sqr(treb*4)*v; 479per_frame_82= 480per_frame_83=n = n + j1*0.0052; 481per_frame_84=n1 = n1 + j2*0.0052; 482per_frame_85=n2 = n2 + j3*0.0052; 483per_frame_86= 484per_frame_87= 485per_frame_88=w1 = n*0.01; // solid angles to rotate the sphere in its origin 486per_frame_89=w2 = n1*0.01; 487per_frame_90=w3 = n2*0.01; 488per_frame_91= 489per_frame_92=q20 = cos(w1); 490per_frame_93=q21 = sin(w1); 491per_frame_94=q22 = cos(w2); 492per_frame_95=q23 = sin(w2); 493per_frame_96=q24 = cos(w3); 494per_frame_97=q25 = sin(w3); 495warp_1=`sampler sampler_worms; 496warp_2=`float3 color, mus; 497warp_3=`float2 uv1, uv6; 498warp_4=`float dx,dy; 499warp_5=` 500warp_6=`shader_body { 501warp_7=` 502warp_8=`uv1 = (uv-.5); 503warp_9=` 504warp_10=`float2 ang2= tex2D (sampler_noise_hq,uv1/3+.006*time).xy; 505warp_11=`uv6 = mul(uv1,float2x2(ang2.y,-ang2.x,ang2.x,ang2.y)); 506warp_12=` 507warp_13=`mus = abs(.5*cos(uv6.y*14)-(cos(uv6.x*71))); 508warp_14=`mus *= float3 (1,.96,.9)/25; 509warp_15=` 510warp_16=`uv6 = .2*sin(12*uv+rand_frame); 511warp_17=`float3 dots = .001/length(uv6)* float3 (0.2,1,1); 512warp_18=` 513warp_19=`//dots = lum(tex2D (sampler_noise_hq,uv +rand_frame)); 514warp_20=`//dots = (dots-.7) * (dots >= .7) * float3 (0.2,1,1); 515warp_21=` 516warp_22=`mus -= dots; 517warp_23=` 518warp_24=` 519warp_25=`float3 blur = GetBlur1(frac(uv)); 520warp_26=` 521warp_27=`float2 hor = float2 (texsize.z,0); 522warp_28=`float2 ver = float2 (0,texsize.w); 523warp_29=`hor = float2 (.004,0); 524warp_30=`ver = float2 (0,.004); 525warp_31=` 526warp_32=` 527warp_33=` 528warp_34=`float dx = lum(GetPixel(uv+hor)-GetPixel(uv-hor)); 529warp_35=`float dy = lum(GetPixel(uv+ver)-GetPixel(uv-ver)); 530warp_36=` 531warp_37=`float2 zz = float2 (dx,dy); 532warp_38=` 533warp_39=` 534warp_40=`float3 crisp= tex2D(sampler_main,uv+zz*.02); 535warp_41=`crisp +=.015 - length(zz)*blur/1.5; 536warp_42=` 537warp_43=`float3 ret1 = crisp - lum(blur)*.012 + mus; 538warp_44=`//ret1 = abs(mus)/2; 539warp_45=`ret = ret1 * .99 - .04 ; 540warp_46=`} 541comp_1=`float2 polar, factorA, factorB, product; 542comp_2=` 543comp_3=`sampler sampler_pano_starsmap; 544comp_4=` 545comp_5=`shader_body 546comp_6=`{ 547comp_7=` 548comp_8=` 549comp_9=`float z = q30; 550comp_10=`float d = q31; 551comp_11=`float pi = q28; 552comp_12=`float pi2inv = q29; 553comp_13=`float mask_apex = q32; 554comp_14=`float zoom = q27; 555comp_15=` 556comp_16=`float2 c = zoom*(uv-0.5)*aspect.xy; 557comp_17=` 558comp_18=`float camera_apex = atan2( length(c),z); 559comp_19=` 560comp_20=`bool mask = mask_apex >= camera_apex; 561comp_21=` 562comp_22=`float longitude = atan2(c.x,c.y); 563comp_23=`float latitude = (pi - camera_apex + asin(d*sin(camera_apex))); 564comp_24=` 565comp_25=`float2 polar = float2(longitude,latitude); 566comp_26=` 567comp_27=`float3 p = float3( sin(polar.x)*sin(polar.y),cos(polar.x)*sin(polar.y),cos(polar.y)); 568comp_28=` 569comp_29=`factorA = p.zy; 570comp_30=`factorB = float2(q20,q21); 571comp_31=`product = float2( factorA.x*factorB.x - factorA.y*factorB.y,factorA.x*factorB.y + factorA.y*factorB.x); 572comp_32=`p.zy = product.xy; 573comp_33=` 574comp_34=`factorA = p.zx; 575comp_35=`factorB = float2(q22,q23); 576comp_36=`product = float2( factorA.x*factorB.x - factorA.y*factorB.y,factorA.x*factorB.y + factorA.y*factorB.x); 577comp_37=`p.zx = product.xy; 578comp_38=` 579comp_39=`factorA = p.yx; 580comp_40=`factorB = float2(q24,q25); 581comp_41=`product = float2( factorA.x*factorB.x - factorA.y*factorB.y, factorA.x*factorB.y + factorA.y*factorB.x); 582comp_42=`p.yx = product.xy; 583comp_43=` 584comp_44=`polar = float2(atan2(p.z,p.x),atan2(p.y,length(p.xz)))*pi2inv*float2(1,2)+float2(0,0.5); 585comp_45=` 586comp_46=`//Eo.S's mirror code! 587comp_47=`float2 polar2 = 1.0 - abs( frac( polar ) * 2.0 - 1.0 ); 588comp_48=` 589comp_49=`float2 uv1 = float2(polar2.x-q6, polar2.y-q5); 590comp_50=` 591comp_51=`float2 hor = float2 (texsize.z*1,0); 592comp_52=`float2 ver = float2 (0,texsize.w*1); 593comp_53=`float dx = GetPixel (polar2-hor) - GetPixel (polar2+hor); 594comp_54=`float dy = GetPixel (polar2-ver) - GetPixel (polar2+ver); 595comp_55=`float2 dz = float2 (dx,dy); 596comp_56=` 597comp_57=`uv1 = uv1*0+.3*cos(uv1*2) - dz; 598comp_58=`float dots = saturate(.04/length(uv1)); 599comp_59=`uv1 = uv1*0+.3*cos(uv1*12) - 9*dz; 600comp_60=`float3 dots2 = saturate(.04/length(uv1)); 601comp_61=`dots -= lum(GetBlur2(polar2)); 602comp_62=` 603comp_63=`ret = dots + GetPixel(polar2)*12*dots2; 604comp_64=` 605comp_65=`//ret = tex2D(sampler_main,polar2); 606comp_66=` 607comp_67=`//ret = lerp(ret,1,mask*tex2d(sampler_pano_earth_clouds,polar)*mid_att*0.5); 608comp_68=` 609comp_69=` 610comp_70=`c = -(uv-0.5)*aspect.xy; 611comp_71=`polar = float2( atan2(c.x,z), atan2(c.y,z)); 612comp_72=`p = float3( sin(polar.x)*cos(polar.y),sin(polar.y)*cos(polar.x),cos(polar.x)*cos(polar.y)); 613comp_73=`factorA = p.zy;factorB = float2(q20,q21); 614comp_74=`product = float2( factorA.x*factorB.x - factorA.y*factorB.y,factorA.x*factorB.y + factorA.y*factorB.x); 615comp_75=`p.zy = product.xy;factorA = p.zx;factorB = float2(q22,q23); 616comp_76=`product = float2( factorA.x*factorB.x - factorA.y*factorB.y,factorA.x*factorB.y + factorA.y*factorB.x); 617comp_77=`p.zx = product.xy;factorA = p.yx;factorB = float2(q24,q25); 618comp_78=`product = float2( factorA.x*factorB.x - factorA.y*factorB.y, factorA.x*factorB.y + factorA.y*factorB.x); 619comp_79=`p.yx = product.xy;polar = float2( atan2(p.x,p.z),atan2(p.y,length(p.xz))*2)*pi2inv + float2(0,0.5); 620comp_80=` 621comp_81=`polar2 = 1.0 - abs( frac( polar ) * 2.0 - 1.0 ); 622comp_82=` 623comp_83=`uv1 = float2(polar2.x-q6, polar2.y-q5); 624comp_84=` 625comp_85=`hor = float2 (texsize.z,0); 626comp_86=`ver = float2 (0,texsize.w*1); 627comp_87=`dx = GetPixel (polar2-hor) - GetPixel (polar2+hor); 628comp_88=`dy = GetPixel (polar2-ver) - GetPixel (polar2+ver); 629comp_89=`dz = float2 (dx,dy); 630comp_90=` 631comp_91=`uv1 = uv1*0+.3*cos(uv1*2) - dz; 632comp_92=`dots = saturate(.04/length(uv1)); 633comp_93=`uv1 = uv1*0+.3*cos(uv1*12) - 9*dz; 634comp_94=`dots2 = saturate(.04/length(uv1)); 635comp_95=`dots -= lum(GetBlur2(polar2)); 636comp_96=` 637comp_97=`ret = lerp(ret,pow(dots + GetPixel(polar2)*12*dots2,1.75).yzx,(1-mask)); 638comp_98=`float4 noise9 = tex3D(sampler_noisevol_hq, 639comp_99=` ((uv1.xyy*q28 640comp_100=` )*texsize.xyy*texsize_noisevol_hq.zww 641comp_101=` ).xyz* 642comp_102=` float3(1,1,0)*0.05 + 643comp_103=` time*float3(0,0,1)*q31 644comp_104=` ); 645comp_105=`if(ret.x> q26*q13 && ret.x<= q23*q11 )ret.z -= (noise9).x*.5; 646comp_106=`if(ret.y> q25*q11 && ret.y<= q22*q12 )ret.x -= (noise9).y*.5; 647comp_107=`if(ret.z> q24*q12 && ret.z<= q21*q13 )ret.y -= (noise9).z*.5; 648comp_108=` 649comp_109=`} 650comp_110=` 651comp_111=` 652