aboutsummaryrefslogtreecommitdiff
path: root/Gem/examples/10.glsl/02.primitive_distortion.pd
diff options
context:
space:
mode:
authorTravis CI <zmoelnig@travis-ci.umlaeute.mur.at>2015-03-19 23:06:26 +0000
committerTravis CI <zmoelnig@travis-ci.umlaeute.mur.at>2015-03-19 23:06:26 +0000
commitbdae26678d39c83280ed5e353986705da6f423c5 (patch)
treea977d9c7a25b275245787de02830a05e30fa0fb9 /Gem/examples/10.glsl/02.primitive_distortion.pd
parent095b7e513f736567848173f2572d8b329ad75af9 (diff)
Gem 4990e2aec04f67a68fbd2878f4d99bb8042f68fa osx/x86_64
built 'master:4990e2aec04f67a68fbd2878f4d99bb8042f68fa' for osx/x86_64
Diffstat (limited to 'Gem/examples/10.glsl/02.primitive_distortion.pd')
-rw-r--r--Gem/examples/10.glsl/02.primitive_distortion.pd125
1 files changed, 125 insertions, 0 deletions
diff --git a/Gem/examples/10.glsl/02.primitive_distortion.pd b/Gem/examples/10.glsl/02.primitive_distortion.pd
new file mode 100644
index 0000000..9a5280a
--- /dev/null
+++ b/Gem/examples/10.glsl/02.primitive_distortion.pd
@@ -0,0 +1,125 @@
+#N canvas 462 82 520 667 10;
+#X obj 74 -1 gemhead;
+#X msg 29 80 print;
+#X obj 74 262 glsl_program;
+#X obj 146 121 change;
+#X msg 98 233 print;
+#X floatatom 146 144 2 0 0 0 ID - -;
+#X obj 164 212 print linking;
+#X obj 74 102 glsl_vertex;
+#X obj 74 451 pix_texture;
+#X obj 124 59 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
+-1;
+#X obj 74 24 alpha;
+#X obj 101 397 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
+1;
+#X floatatom 292 202 5 0 0 0 - - -;
+#X msg 101 375 0;
+#X msg 292 223 K \$1;
+#X obj 74 494 sphere 2 30;
+#N canvas 0 50 450 300 load_shader 0;
+#X obj 89 99 t b b;
+#X msg 119 126 0;
+#X obj 89 154 outlet;
+#X obj 89 71 gemhead 1;
+#X connect 0 0 2 0;
+#X connect 0 1 1 0;
+#X connect 1 0 3 0;
+#X connect 3 0 0 0;
+#X restore 124 38 pd load_shader;
+#N canvas 50 82 450 300 init_shader 0;
+#X obj 89 154 outlet;
+#X obj 89 45 inlet;
+#X obj 89 73 change;
+#X obj 89 100 t b;
+#X connect 1 0 2 0;
+#X connect 2 0 3 0;
+#X connect 3 0 0 0;
+#X restore 153 286 pd init_shader;
+#X obj 101 354 loadbang;
+#X text 347 201 <- 2;
+#X text 395 670 ch 20007;
+#X msg 103 305 open texture.jpg;
+#X obj 74 471 rotateXYZ -90 0 0;
+#X msg 292 177 0.1;
+#X obj 74 328 pix_image img3.jpg;
+#X msg 88 80 open P_distord.vert;
+#X text 69 527 this shader create a dirty pseudo random value \, and
+move all vertices separatly;
+#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 389 41 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 359 58 pd gemwin;
+#X msg 101 417 rectangle \$1;
+#X msg 146 191 link \$1;
+#X connect 0 0 10 0;
+#X connect 1 0 7 0;
+#X connect 2 0 24 0;
+#X connect 2 1 17 0;
+#X connect 3 0 5 0;
+#X connect 4 0 2 0;
+#X connect 5 0 30 0;
+#X connect 7 0 2 0;
+#X connect 7 1 3 0;
+#X connect 8 0 22 0;
+#X connect 9 0 25 0;
+#X connect 10 0 7 0;
+#X connect 11 0 29 0;
+#X connect 12 0 14 0;
+#X connect 13 0 11 0;
+#X connect 14 0 2 0;
+#X connect 16 0 9 0;
+#X connect 17 0 23 0;
+#X connect 18 0 13 0;
+#X connect 21 0 24 0;
+#X connect 22 0 15 0;
+#X connect 23 0 12 0;
+#X connect 24 0 8 0;
+#X connect 25 0 7 0;
+#X connect 27 0 28 0;
+#X connect 29 0 8 0;
+#X connect 30 0 2 0;
+#X connect 30 0 6 0;