#N canvas 495 73 785 688 10;
#X obj 504 69 gemhead;
#X obj 576 346 pack 0 0;
#X obj 597 326 t b f;
#X msg 576 369 link \$1 \$2;
#X floatatom 597 307 2 0 0 0 ID - -;
#X floatatom 576 206 2 0 0 0 ID - -;
#X obj 594 390 print linking;
#X obj 504 480 pix_texture;
#X obj 540 118 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X msg 17 13 create \, 1;
#X msg 28 36 0 \, destroy;
#X obj 28 199 gemhead 1;
#X obj 28 311 gemframebuffer;
#X obj 28 485 pix_texture;
#X obj 28 336 translateXYZ 0 0 -4;
#X obj 28 510 square 4;
#X obj 504 261 glsl_fragment;
#X obj 504 164 glsl_vertex;
#X obj 576 183 change;
#X obj 597 281 change;
#X obj 504 419 glsl_program;
#X obj 17 61 gemwin;
#X floatatom 542 505 5 0 0 0 - - -;
#X obj 49 231 loadbang;
#X obj 44 415 loadbang;
#X msg 520 456 quality 0;
#X msg 44 439 mode 0;
#X msg 55 460 quality 0;
#N canvas 703 231 450 300 load_glsl 0;
#X obj 51 22 gemhead;
#X obj 51 98 outlet;
#X obj 51 50 route gem_state;
#X obj 51 74 route 1;
#X connect 0 0 2 0;
#X connect 2 0 3 0;
#X connect 3 0 1 0;
#X restore 540 93 pd load_glsl;
#X msg 49 255 mode 0 \, type BYTE \, format RGB32 \, dim 1024 1024
;
#X msg 514 231 open fetching.frag;
#X msg 518 142 open fetching.vert;
#X obj 504 525 rotateXYZ -30 0 0;
#X obj 504 551 scaleXYZ 3 3 1;
#X obj 28 388 pix_image img1.jpg;
#X msg 46 363 open img2.jpg;
#X text 117 11 This patch need a glsl 3 compliant hardware;
#X text 26 535 draw an image in a frambuffer;
#X text 49 274 this configuration is very important to have full hardware
support for vertex texture fetching;
#X text 306 603 this example uses the framebuffer image in the vertex
shader in the same way you can do in the pixel shader. This is only
possible in this specific configuration (it's a hardware limitation)
;
#X text 117 56 (nvidia 7000 and 8000 serie should work \, ati X1000
serie does not \, but later should);
#X obj 504 579 mesh_square 200;
#X text 118 28 As in 2007 \, only good (and new) graphic cards are
able to run this patch.;
#X connect 0 0 17 0;
#X connect 1 0 3 0;
#X connect 2 0 1 0;
#X connect 2 1 1 1;
#X connect 3 0 6 0;
#X connect 3 0 20 0;
#X connect 4 0 2 0;
#X connect 5 0 1 0;
#X connect 7 0 32 0;
#X connect 8 0 31 0;
#X connect 8 0 30 0;
#X connect 9 0 21 0;
#X connect 10 0 21 0;
#X connect 11 0 12 0;
#X connect 12 0 14 0;
#X connect 12 1 7 1;
#X connect 13 0 15 0;
#X connect 14 0 34 0;
#X connect 16 0 20 0;
#X connect 16 1 19 0;
#X connect 17 0 16 0;
#X connect 17 1 18 0;
#X connect 18 0 5 0;
#X connect 19 0 4 0;
#X connect 20 0 7 0;
#X connect 22 0 32 1;
#X connect 23 0 29 0;
#X connect 24 0 26 0;
#X connect 25 0 7 0;
#X connect 26 0 13 0;
#X connect 27 0 13 0;
#X connect 28 0 8 0;
#X connect 29 0 12 0;
#X connect 30 0 16 0;
#X connect 31 0 17 0;
#X connect 32 0 33 0;
#X connect 33 0 41 0;
#X connect 34 0 13 0;
#X connect 35 0 34 0;
