aboutsummaryrefslogtreecommitdiff
path: root/Gem/alpha-help.pd
blob: 930dcf9c505e325506af7dd45e9bacdde7915761 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
#N canvas 50 237 711 539 10;
#X text 452 8 GEM object;
#X obj 8 196 cnv 15 430 330 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 37 195 Inlets:;
#X text 453 355 Outlets:;
#X text 461 366 Outlet 1: gemlist;
#X obj 8 161 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 160 Arguments:;
#X obj 8 76 cnv 15 430 80 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 449 77 cnv 15 250 250 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 60 Example:;
#X obj 584 254 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 50 450 300 gemwin 0;
#X obj 132 136 gemwin;
#X obj 67 89 outlet;
#X obj 67 10 inlet;
#X obj 67 41 route create;
#X msg 67 70 set destroy;
#X msg 142 68 set create;
#X msg 132 112 create \, 1;
#X msg 198 112 destroy;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 6 0;
#X connect 3 1 5 0;
#X connect 3 1 7 0;
#X connect 4 0 1 0;
#X connect 5 0 1 0;
#X connect 6 0 0 0;
#X connect 7 0 0 0;
#X restore 589 293 pd gemwin;
#X msg 589 274 create;
#X text 585 253 Create window:;
#X text 71 31 Class: manipulation object;
#X obj 451 197 cnv 15 80 60 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 579 186 color 1 0 0 0.5;
#X text 60 219 Inlet 1: float: turn alpha blending on/off;
#X text 50 12 Synopsis: [alpha];
#X text 29 77 Description: enable alpha blending;
#X obj 458 310 square;
#X obj 458 233 alpha;
#X obj 458 108 color 0 1 0 0.5;
#X text 61 208 Inlet 1: gemlist;
#X text 60 231 Inlet 1: message "auto 1" | "auto 0" turn on/off automatic
depth detection;
#X floatatom 583 139 5 0 0 0 - - -;
#X obj 458 86 gemhead 51;
#X obj 579 211 sphere;
#X obj 458 137 rotate 114 0 1 0;
#X obj 579 162 gemhead 50;
#X msg 474 176 auto \$1;
#X obj 474 158 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X msg 583 108 0 1 0 \$1;
#X floatatom 583 88 5 0 1 0 - - -;
#X obj 628 88 hsl 64 15 0 1 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 0 1;
#X text 22 91 [alpha] turns on and off alpha blending. Be aware that
the rendering order matters \, so you probably want to set the gemhead
order number high so that the object is rendered after all of the non-alpha
blended ones.;
#X text 63 171 float : blending function (default: GL_ONE_MINUS_SRC_ALPHA)
;
#X text 60 260 Inlet 2: float: blending function;
#X text 70 272 0=GL_ONE_MINUS_SOURCE_ALPHA;
#X text 70 282 1=GL_ONE;
#X text 70 294 2=GL_ZERO;
#X text 70 306 3=GL_SRC_COLOR;
#X text 70 318 4=GL_ONE_MINUS_SRC_COLOR;
#X text 70 330 5=GL_DST_COLOR;
#X text 70 342 6=GL_ONE_MINUS_DST_COLOR;
#X text 70 354 7=GL_SRC_ALPHA;
#X text 70 366 8=GL_ONE_MINUS_SRC_ALPHA;
#X text 70 378 9=GL_DST_ALPHA;
#X text 70 390 10=GL_ONE_MINUS_DST_ALPHA;
#X text 70 402 11=GL_CONSTANT_COLOR;
#X text 70 414 12=GL_ONE_MINUS_CONSTANT_COLOR;
#X text 70 426 13=GL_CONSTANT_ALPHA;
#X text 70 438 14=GL_ONE_MINUS_CONSTANT_ALPHA;
#X text 70 450 15=GL_SRC_ALPHA_SATURATE;
#X text 70 462 16=GL_SRC1_COLOR;
#X text 70 474 17=GL_ONE_MINUS_SRC1_COLOR;
#X text 70 486 18=GL_SRC1_ALPHA;
#X text 70 498 19=GL_ONE_MINUS_SRC1_ALPHA;
#X obj 477 210 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X floatatom 501 210 2 0 19 0 - - -;
#X connect 11 0 12 0;
#X connect 12 0 11 0;
#X connect 16 0 27 0;
#X connect 21 0 20 0;
#X connect 22 0 28 0;
#X connect 25 0 28 1;
#X connect 26 0 22 0;
#X connect 28 0 21 0;
#X connect 29 0 16 0;
#X connect 30 0 21 0;
#X connect 31 0 30 0;
#X connect 32 0 22 1;
#X connect 33 0 32 0;
#X connect 34 0 33 0;
#X connect 58 0 21 0;
#X connect 59 0 21 1;