|
@@ -0,0 +1,309 @@
|
|
|
+#N canvas 508 109 1120 796 10;
|
|
|
+#X declare -path ../externals/rc-patches/extra -path ../externals/rc-patches/rc
|
|
|
+-path ../externals/rc-patches/rc-patches;
|
|
|
+#X declare -path ../externals/rjlib/rj -path ../externals/pd;
|
|
|
+#X obj 8 9 cnv 15 360 180 empty empty Setup 5 12 0 14 -233017 -66577
|
|
|
+0;
|
|
|
+#X msg 92 123 reset;
|
|
|
+#X text 135 122 reset the window;
|
|
|
+#N canvas 0 22 386 154 externals 0;
|
|
|
+#X text 14 16 add search paths to local libraries here;
|
|
|
+#X obj 16 47 declare -path ../externals/rc-patches/extra -path ../externals/rc-patches/rc
|
|
|
+-path ../externals/rc-patches/rc-patches;
|
|
|
+#X obj 15 106 declare -path ../externals/rjlib/rj -path ../externals/pd
|
|
|
+;
|
|
|
+#X restore 275 20 pd externals;
|
|
|
+#X msg 49 391 print;
|
|
|
+#X obj 99 391 change;
|
|
|
+#X msg 99 418 link \$1;
|
|
|
+#X obj 99 293 loadbang;
|
|
|
+#X text 154 423 link the fragment shader id;
|
|
|
+#X text 115 360 load the fragment shader;
|
|
|
+#X text 111 624 run the shader program;
|
|
|
+#X text 257 47 2015 Dan Wilcox;
|
|
|
+#X obj 22 147 gemwin;
|
|
|
+#X msg 31 77 create \, 1;
|
|
|
+#X msg 97 78 destroy;
|
|
|
+#X obj 22 46 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 1
|
|
|
+;
|
|
|
+#X text 35 652 shader affects things below it in render chain;
|
|
|
+#X floatatom 421 202 5 0 0 0 - - -, f 5;
|
|
|
+#X obj 420 27 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1
|
|
|
+1;
|
|
|
+#X obj 441 27 loadbang;
|
|
|
+#X obj 448 75 + 1;
|
|
|
+#X text 417 502 2016 Sofy Yuditskaya;
|
|
|
+#X obj 421 259 gemmouse;
|
|
|
+#X floatatom 421 285 5 0 0 0 - - -, f 5;
|
|
|
+#X floatatom 457 283 5 0 0 0 - - -, f 5;
|
|
|
+#X obj 439 316 t b a;
|
|
|
+#X obj 421 336 pack f f;
|
|
|
+#X msg 433 407 iChannel0 3;
|
|
|
+#X msg 421 226 iTime \$1;
|
|
|
+#X obj 24 360 glsl_fragment;
|
|
|
+#X obj 123 445 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
|
|
|
+-1 -1;
|
|
|
+#X msg 322 515 SPHERE_DENSITY \$1;
|
|
|
+#X floatatom 287 513 5 0 0 0 - - -, f 5;
|
|
|
+#X floatatom 285 469 5 0 0 0 - - -, f 5;
|
|
|
+#X msg 320 471 NOISE_SCALE \$1;
|
|
|
+#X floatatom 285 434 5 0 0 0 - - -, f 5;
|
|
|
+#X msg 320 436 SPHERE_RADIUS \$1;
|
|
|
+#X obj 420 51 metro 40;
|
|
|
+#X obj 420 75 f;
|
|
|
+#X msg 485 49 0;
|
|
|
+#X floatatom 267 115 5 0 0 0 - - -, f 5;
|
|
|
+#X msg 190 155 view \$1 0 4 0 0 0 0 1 0;
|
|
|
+#X floatatom 71 667 5 0 0 0 - - -, f 5;
|
|
|
+#X obj 204 704 translateXYZ 0 0 0;
|
|
|
+#X obj 22 603 glsl_program;
|
|
|
+#X obj 24 242 gemhead;
|
|
|
+#X obj 275 220 gemhead;
|
|
|
+#X obj 275 251 pix_texture;
|
|
|
+#X obj 32 682 gemframebuffer;
|
|
|
+#X msg 311 198 rectangle 1;
|
|
|
+#X obj 32 703 translateXYZ 0 0 -4;
|
|
|
+#X obj 275 302 rotateXYZ;
|
|
|
+#X floatatom 238 208 5 0 0 0 - - -, f 5;
|
|
|
+#X obj 275 272 translateXYZ 0 0 4;
|
|
|
+#X obj 275 332 sphere 10 50;
|
|
|
+#X floatatom 361 316 5 0 0 0 - - -, f 5;
|
|
|
+#X obj 692 277 pix_film;
|
|
|
+#X obj 771 169 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
|
|
|
+-1 -1;
|
|
|
+#X obj 771 195 openpanel;
|
|
|
+#X msg 759 238 0;
|
|
|
+#X obj 785 335 gemhead;
|
|
|
+#X obj 871 327 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
|
|
|
+-1 -1;
|
|
|
+#X obj 871 353 openpanel;
|
|
|
+#X obj 692 318 pix_mask;
|
|
|
+#X obj 692 237 alpha;
|
|
|
+#X msg 772 214 colorspace RGBA \, open \$1 \, auto 1;
|
|
|
+#X obj 786 376 pix_film;
|
|
|
+#X msg 872 372 colorspace RGBA \, open \$1;
|
|
|
+#X obj 692 339 alpha;
|
|
|
+#X obj 692 369 pix_coloralpha;
|
|
|
+#X msg 421 356 iMouse \$1 \$2 0 0;
|
|
|
+#X floatatom 572 381 5 0 0 0 - - -, f 5;
|
|
|
+#X msg 572 403 iMouse \$1 \$1 0 0;
|
|
|
+#X msg 648 611 print;
|
|
|
+#X obj 698 611 change;
|
|
|
+#X msg 698 638 link \$1;
|
|
|
+#X obj 698 513 loadbang;
|
|
|
+#X text 714 580 load the fragment shader;
|
|
|
+#X text 710 844 run the shader program;
|
|
|
+#X text 634 872 shader affects things below it in render chain;
|
|
|
+#X obj 722 665 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
|
|
|
+-1 -1;
|
|
|
+#X floatatom 670 887 5 0 0 0 - - -, f 5;
|
|
|
+#X obj 620 945 pix_texture;
|
|
|
+#X obj 621 923 translateXYZ 0 0 -4;
|
|
|
+#X msg 99 322 open fog.frag;
|
|
|
+#X msg 699 542 open fogBlack.frag;
|
|
|
+#X obj 692 428 pix_texture;
|
|
|
+#X floatatom 75 19 5 0 0 0 - - -, f 5;
|
|
|
+#X floatatom 801 655 5 0 0 0 - - -, f 5;
|
|
|
+#X floatatom 817 700 5 0 0 0 - - -, f 5;
|
|
|
+#X msg 852 702 NOISE_SCALE \$1;
|
|
|
+#X obj 623 580 glsl_fragment;
|
|
|
+#X obj 624 840 glsl_program;
|
|
|
+#X msg 126 33 color 1 0 0;
|
|
|
+#X obj 529 879 scale 0.5;
|
|
|
+#X obj 623 485 alpha;
|
|
|
+#X obj 623 462 gemhead 50;
|
|
|
+#X obj 692 196 gemhead 2;
|
|
|
+#X msg 827 245 auto 0;
|
|
|
+#X obj 23 814 cnv 15 250 130 empty empty empty 20 12 0 14 -233017 -66577
|
|
|
+0;
|
|
|
+#X obj 30 828 t a b;
|
|
|
+#X msg 62 849 snap;
|
|
|
+#X obj 30 897 t a b;
|
|
|
+#X msg 244 902 1;
|
|
|
+#X text 78 826 later usage;
|
|
|
+#X text 77 811 snapshot and store image for;
|
|
|
+#X obj 615 987 cnv 15 250 130 empty empty empty 20 12 0 14 -233017
|
|
|
+-66577 0;
|
|
|
+#X obj 622 1001 t a b;
|
|
|
+#X msg 654 1022 snap;
|
|
|
+#X obj 622 1090 t a b;
|
|
|
+#X msg 836 1095 1;
|
|
|
+#X text 670 999 later usage;
|
|
|
+#X text 669 984 snapshot and store image for;
|
|
|
+#X obj 622 1115 pix_buffer_write \$0-framebuffer2;
|
|
|
+#X obj 39 1068 t a b;
|
|
|
+#X msg 94 1069 1;
|
|
|
+#X text 191 1030 fetch framebuffer-pix;
|
|
|
+#X obj 304 1028 t a b;
|
|
|
+#X msg 359 1029 1;
|
|
|
+#X text 456 1030 fetch framebuffer-pix;
|
|
|
+#X obj 39 1027 t a a;
|
|
|
+#X obj 34 740 pix_texture;
|
|
|
+#X obj 35 775 square 4;
|
|
|
+#X obj 327 886 gemhead 30;
|
|
|
+#X obj 621 902 gemframebuffer;
|
|
|
+#X msg 669 736 iResolution 256 256 0 \, MARCH_DIST 2.5 \, MARCH_COUNT
|
|
|
+20 \, SCATTER_DEPTH 10 \, SCATTER_DIST 2.5 \, SPHERE_RADIUS 2 \, SPHERE_DENSITY
|
|
|
+3 \, LIGHT_COLOR_SCALE 1.2 \, ABSORPTION_COLOR_SCALE 1 \, VOLUME_COLOR_SCALE
|
|
|
+0.045 \, NOISE_SCALE 1.2;
|
|
|
+#X obj 621 1046 pix_snap;
|
|
|
+#X msg 272 556 iResolution 256 256 0 \, MARCH_DIST 2.5 \, MARCH_COUNT
|
|
|
+20 \, SCATTER_DEPTH 10 \, SCATTER_DIST 2.5 \, SPHERE_RADIUS 4 \, SPHERE_DENSITY
|
|
|
+1 \, LIGHT_COLOR_SCALE 0.82 \, ABSORPTION_COLOR_SCALE 0.004 \, VOLUME_COLOR_SCALE
|
|
|
+0.055 \, NOISE_SCALE 1.2;
|
|
|
+#X obj 623 1144 pix_buffer \$0-framebuffer2 2;
|
|
|
+#X obj 39 974 gemhead;
|
|
|
+#X obj 30 922 pix_buffer_write \$0-framebuffer;
|
|
|
+#X obj 31 951 pix_buffer \$0-framebuffer 2;
|
|
|
+#X obj 30 872 pix_snap;
|
|
|
+#X obj 39 997 alpha;
|
|
|
+#X obj 872 974 pix_buffer_read \$0-framebuffer2;
|
|
|
+#X obj 819 906 random 4;
|
|
|
+#X obj 819 929 - 2;
|
|
|
+#X obj 776 902 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
|
|
|
+-1 -1;
|
|
|
+#X obj 621 970 square 4;
|
|
|
+#X obj 621 1069 pix_motionblur;
|
|
|
+#X obj 421 141 / 500;
|
|
|
+#X floatatom 747 1044 5 0 0 0 - - -, f 5;
|
|
|
+#X msg 336 732 iResolution 256 256 0 \, SPHERE_DENSITY 3;
|
|
|
+#X msg 836 657 SPHERE_DENSITY \$1;
|
|
|
+#X obj 68 1148 pix_mask;
|
|
|
+#X obj 39 1093 pix_buffer_read \$0-framebuffer;
|
|
|
+#X obj 304 1053 pix_buffer_read \$0-framebuffer2;
|
|
|
+#X obj 350 915 pix_gain;
|
|
|
+#X floatatom 418 858 5 0 0 0 - - -, f 5;
|
|
|
+#X msg 413 888 \$1 \$1 \$1 \$1;
|
|
|
+#X obj 990 536 vsl 15 128 0.1 10 0 0 empty empty empty 0 -9 0 10 -262144
|
|
|
+-1 -1 0 1;
|
|
|
+#X obj 349 937 pix_texture;
|
|
|
+#X obj 349 965 square 4;
|
|
|
+#X obj 692 449 rectangle 6 4;
|
|
|
+#X connect 1 0 12 0;
|
|
|
+#X connect 4 0 44 0;
|
|
|
+#X connect 5 0 6 0;
|
|
|
+#X connect 6 0 30 0;
|
|
|
+#X connect 6 0 44 0;
|
|
|
+#X connect 7 0 84 0;
|
|
|
+#X connect 13 0 12 0;
|
|
|
+#X connect 13 0 27 0;
|
|
|
+#X connect 14 0 12 0;
|
|
|
+#X connect 15 0 12 0;
|
|
|
+#X connect 17 0 28 0;
|
|
|
+#X connect 18 0 37 0;
|
|
|
+#X connect 19 0 18 0;
|
|
|
+#X connect 20 0 38 1;
|
|
|
+#X connect 22 0 23 0;
|
|
|
+#X connect 22 1 24 0;
|
|
|
+#X connect 23 0 26 0;
|
|
|
+#X connect 24 0 25 0;
|
|
|
+#X connect 25 0 26 0;
|
|
|
+#X connect 25 1 26 1;
|
|
|
+#X connect 26 0 70 0;
|
|
|
+#X connect 28 0 44 0;
|
|
|
+#X connect 28 0 92 0;
|
|
|
+#X connect 29 0 44 0;
|
|
|
+#X connect 29 1 5 0;
|
|
|
+#X connect 31 0 44 0;
|
|
|
+#X connect 32 0 31 0;
|
|
|
+#X connect 33 0 34 0;
|
|
|
+#X connect 34 0 44 0;
|
|
|
+#X connect 35 0 36 0;
|
|
|
+#X connect 36 0 44 0;
|
|
|
+#X connect 37 0 38 0;
|
|
|
+#X connect 38 0 20 0;
|
|
|
+#X connect 38 0 140 0;
|
|
|
+#X connect 39 0 38 1;
|
|
|
+#X connect 40 0 41 0;
|
|
|
+#X connect 41 0 12 0;
|
|
|
+#X connect 44 0 48 0;
|
|
|
+#X connect 45 0 29 0;
|
|
|
+#X connect 47 0 53 0;
|
|
|
+#X connect 48 0 50 0;
|
|
|
+#X connect 49 0 47 0;
|
|
|
+#X connect 50 0 121 0;
|
|
|
+#X connect 52 0 51 1;
|
|
|
+#X connect 53 0 51 0;
|
|
|
+#X connect 55 0 51 3;
|
|
|
+#X connect 56 0 86 0;
|
|
|
+#X connect 56 2 59 0;
|
|
|
+#X connect 57 0 58 0;
|
|
|
+#X connect 58 0 65 0;
|
|
|
+#X connect 59 0 56 1;
|
|
|
+#X connect 60 0 66 0;
|
|
|
+#X connect 61 0 62 0;
|
|
|
+#X connect 62 0 67 0;
|
|
|
+#X connect 64 0 56 0;
|
|
|
+#X connect 65 0 56 0;
|
|
|
+#X connect 66 0 63 1;
|
|
|
+#X connect 67 0 66 0;
|
|
|
+#X connect 71 0 72 0;
|
|
|
+#X connect 72 0 44 0;
|
|
|
+#X connect 73 0 92 0;
|
|
|
+#X connect 74 0 75 0;
|
|
|
+#X connect 75 0 80 0;
|
|
|
+#X connect 75 0 92 0;
|
|
|
+#X connect 76 0 85 0;
|
|
|
+#X connect 82 0 138 0;
|
|
|
+#X connect 83 0 82 0;
|
|
|
+#X connect 84 0 29 0;
|
|
|
+#X connect 85 0 91 0;
|
|
|
+#X connect 86 0 153 0;
|
|
|
+#X connect 87 0 93 0;
|
|
|
+#X connect 88 0 143 0;
|
|
|
+#X connect 89 0 90 0;
|
|
|
+#X connect 90 0 92 0;
|
|
|
+#X connect 91 0 92 0;
|
|
|
+#X connect 91 1 74 0;
|
|
|
+#X connect 92 0 124 0;
|
|
|
+#X connect 93 0 12 0;
|
|
|
+#X connect 95 0 91 0;
|
|
|
+#X connect 96 0 95 0;
|
|
|
+#X connect 97 0 64 0;
|
|
|
+#X connect 98 0 56 0;
|
|
|
+#X connect 100 0 132 0;
|
|
|
+#X connect 100 1 101 0;
|
|
|
+#X connect 101 0 132 0;
|
|
|
+#X connect 102 0 130 0;
|
|
|
+#X connect 102 1 103 0;
|
|
|
+#X connect 103 0 130 1;
|
|
|
+#X connect 107 0 126 0;
|
|
|
+#X connect 107 1 108 0;
|
|
|
+#X connect 108 0 126 0;
|
|
|
+#X connect 109 0 113 0;
|
|
|
+#X connect 109 1 110 0;
|
|
|
+#X connect 110 0 113 1;
|
|
|
+#X connect 114 0 145 0;
|
|
|
+#X connect 114 1 115 0;
|
|
|
+#X connect 115 0 145 1;
|
|
|
+#X connect 117 0 146 0;
|
|
|
+#X connect 117 1 118 0;
|
|
|
+#X connect 118 0 146 1;
|
|
|
+#X connect 120 0 114 0;
|
|
|
+#X connect 120 1 117 0;
|
|
|
+#X connect 121 0 122 0;
|
|
|
+#X connect 122 0 100 0;
|
|
|
+#X connect 124 0 83 0;
|
|
|
+#X connect 125 0 92 0;
|
|
|
+#X connect 126 0 139 0;
|
|
|
+#X connect 127 0 44 0;
|
|
|
+#X connect 129 0 133 0;
|
|
|
+#X connect 132 0 102 0;
|
|
|
+#X connect 133 0 120 0;
|
|
|
+#X connect 135 0 136 0;
|
|
|
+#X connect 136 0 83 1;
|
|
|
+#X connect 137 0 135 0;
|
|
|
+#X connect 138 0 107 0;
|
|
|
+#X connect 139 0 109 0;
|
|
|
+#X connect 140 0 17 0;
|
|
|
+#X connect 141 0 139 1;
|
|
|
+#X connect 142 0 92 0;
|
|
|
+#X connect 143 0 92 0;
|
|
|
+#X connect 144 0 147 0;
|
|
|
+#X connect 145 0 144 0;
|
|
|
+#X connect 146 0 144 1;
|
|
|
+#X connect 147 0 151 0;
|
|
|
+#X connect 148 0 149 0;
|
|
|
+#X connect 149 0 147 2;
|
|
|
+#X connect 150 0 88 0;
|
|
|
+#X connect 151 0 152 0;
|