aboutsummaryrefslogtreecommitdiff
path: root/packages/noncvs/windows/extra/Gem/examples/10.glsl/01.simple_texture.pd
diff options
context:
space:
mode:
Diffstat (limited to 'packages/noncvs/windows/extra/Gem/examples/10.glsl/01.simple_texture.pd')
-rw-r--r--packages/noncvs/windows/extra/Gem/examples/10.glsl/01.simple_texture.pd144
1 files changed, 144 insertions, 0 deletions
diff --git a/packages/noncvs/windows/extra/Gem/examples/10.glsl/01.simple_texture.pd b/packages/noncvs/windows/extra/Gem/examples/10.glsl/01.simple_texture.pd
new file mode 100644
index 00000000..230e8423
--- /dev/null
+++ b/packages/noncvs/windows/extra/Gem/examples/10.glsl/01.simple_texture.pd
@@ -0,0 +1,144 @@
+#N canvas 488 50 722 633 10;
+#X obj 76 22 gemhead;
+#X obj 76 367 glsl_program;
+#X obj 149 282 pack 0 0;
+#X obj 170 262 t b f;
+#X obj 166 217 change;
+#X obj 148 98 change;
+#X msg 149 308 link \$1 \$2;
+#X floatatom 170 243 2 0 0 0 ID - -;
+#X floatatom 148 121 2 0 0 0 ID - -;
+#X obj 167 329 print linking;
+#X obj 76 411 rotateXYZ;
+#X floatatom 96 389 5 0 0 0 - - -;
+#X floatatom 140 389 5 0 0 0 - - -;
+#X floatatom 182 389 5 0 0 0 - - -;
+#X obj 76 580 pix_texture;
+#X msg 548 116 color 1 0 0;
+#X obj 142 27 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
+-1;
+#X msg 90 57 open texture.vert;
+#X msg 86 147 open texture.frag;
+#X obj 76 79 glsl_vertex;
+#X obj 76 197 glsl_fragment;
+#X text 215 459 <- load texture;
+#X obj 106 535 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
+1;
+#X obj 76 489 pix_image img1.jpg;
+#X msg 103 460 open img2.jpg;
+#X msg 96 168 open texture_rect.frag;
+#X msg 199 98 0;
+#X obj 292 67 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
+-1;
+#X text 324 65 <-load an other shader;
+#X text 328 79 (using rectangular texturing);
+#X msg 292 108 1;
+#X msg 351 258 B \$1;
+#X msg 364 297 C \$1;
+#X floatatom 351 241 5 0 0 0 - - -;
+#X floatatom 364 280 5 0 0 0 - - -;
+#X text 408 280 <- adjust Contrast;
+#X text 400 240 <- adjust Brightness;
+#X text 174 25 <- load shader;
+#X obj 76 604 square 3;
+#N canvas 87 154 247 179 Gem.init 0;
+#X obj 118 46 loadbang;
+#X msg 118 81 reset;
+#X obj 118 113 outlet;
+#X connect 0 0 1 0;
+#X connect 1 0 2 0;
+#X restore 566 142 pd Gem.init;
+#N canvas 340 107 682 322 gemwin 0;
+#X obj 102 122 tgl 15 0 \$0-gemstart \$0-gemstart empty 17 7 0 10 -262144
+-1 -1 1 1;
+#X obj 102 161 r \$0-gemstart;
+#X obj 102 182 select 1 0;
+#X msg 102 214 create \, 1;
+#X msg 177 215 destroy;
+#X obj 102 239 t a;
+#X obj 318 54 inlet;
+#X obj 318 255 gemwin;
+#X obj 318 100 t a a;
+#X obj 318 287 outlet;
+#X obj 350 128 route create destroy;
+#X obj 350 150 t b;
+#X msg 350 172 1;
+#X obj 390 150 t b;
+#X msg 390 172 0;
+#X obj 350 195 t f;
+#X msg 350 219 set \$1;
+#X text 118 122 rendering;
+#X connect 1 0 2 0;
+#X connect 2 0 3 0;
+#X connect 2 1 4 0;
+#X connect 3 0 5 0;
+#X connect 4 0 5 0;
+#X connect 5 0 8 0;
+#X connect 6 0 8 0;
+#X connect 7 0 9 0;
+#X connect 8 0 7 0;
+#X connect 8 1 10 0;
+#X connect 10 0 11 0;
+#X connect 10 1 13 0;
+#X connect 11 0 12 0;
+#X connect 12 0 15 0;
+#X connect 13 0 14 0;
+#X connect 14 0 15 0;
+#X connect 15 0 16 0;
+#X connect 16 0 0 0;
+#X coords 0 -1 1 1 85 40 1 100 100;
+#X restore 548 163 pd gemwin;
+#X msg 106 555 rectangle \$1;
+#X obj 292 129 s rectangle;
+#X obj 199 119 s rectangle;
+#X obj 106 512 r rectangle;
+#X msg 31 220 print;
+#X msg 32 118 print;
+#X msg 39 340 print;
+#X floatatom 192 372 0 0 0 0 - - -;
+#X connect 0 0 19 0;
+#X connect 1 0 10 0;
+#X connect 1 1 48 0;
+#X connect 2 0 6 0;
+#X connect 3 0 2 0;
+#X connect 3 1 2 1;
+#X connect 4 0 7 0;
+#X connect 5 0 8 0;
+#X connect 6 0 1 0;
+#X connect 6 0 9 0;
+#X connect 7 0 3 0;
+#X connect 8 0 2 0;
+#X connect 10 0 23 0;
+#X connect 11 0 10 1;
+#X connect 12 0 10 2;
+#X connect 13 0 10 3;
+#X connect 14 0 38 0;
+#X connect 15 0 40 0;
+#X connect 16 0 17 0;
+#X connect 16 0 18 0;
+#X connect 16 0 26 0;
+#X connect 17 0 19 0;
+#X connect 18 0 20 0;
+#X connect 19 0 20 0;
+#X connect 19 1 5 0;
+#X connect 20 0 1 0;
+#X connect 20 1 4 0;
+#X connect 22 0 41 0;
+#X connect 23 0 14 0;
+#X connect 24 0 23 0;
+#X connect 25 0 20 0;
+#X connect 26 0 43 0;
+#X connect 27 0 17 0;
+#X connect 27 0 25 0;
+#X connect 27 0 30 0;
+#X connect 30 0 42 0;
+#X connect 31 0 1 0;
+#X connect 32 0 1 0;
+#X connect 33 0 31 0;
+#X connect 34 0 32 0;
+#X connect 39 0 40 0;
+#X connect 41 0 14 0;
+#X connect 44 0 22 0;
+#X connect 45 0 20 0;
+#X connect 46 0 19 0;
+#X connect 47 0 1 0;