-
Notifications
You must be signed in to change notification settings - Fork 2
/
of.pointlight-help.pd
97 lines (97 loc) · 3.03 KB
/
of.pointlight-help.pd
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
#N canvas 528 95 703 637 12;
#X declare -lib ofelia;
#X obj 9 10 cnv 15 600 60 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 470 49 declare -lib ofelia;
#X floatatom 78 158 5 0 0 0 - - -;
#X msg 58 130 active \$1;
#X obj 58 107 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X floatatom 79 208 5 0 10 0 - - -;
#X msg 79 231 attenuation \$1;
#X msg 123 399 debug \$1;
#X obj 123 377 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1
1;
#X obj 130 426 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X msg 130 452 smooth \$1;
#X text 148 422 light smothing (default 1), f 29;
#X text 16 19 Create a point light;
#X floatatom 487 173 5 0 0 0 size - -;
#X floatatom 569 174 5 0 0 0 geo - -;
#X msg 461 406 ambient \$1 0.5 0.3;
#X floatatom 461 346 5 0 0 0 - - -;
#X text 145 378 show light source (also turn on lighting);
#X text 121 206 light attenuation (default 1);
#X text 76 105 light on/off (default 1);
#X text 499 345 red ambient color;
#X floatatom 461 378 5 0 0 0 - - -;
#X msg 461 430 diffuse 0 0.2 \$1;
#X msg 113 328 cutoff \$1;
#X floatatom 113 305 5 0 0 0 - - -;
#X floatatom 92 257 5 0 127 0 - - -;
#X msg 92 280 spotconcentration \$1;
#X msg 461 454 specular 0 1.5 0.5;
#X text 499 375 Blue diffuse color;
#X text 16 39 Arguments: active \, attenuation \, cutoff \, concentration
\, smooth \, debug (default: 1 1 40 20 1 0);
#X obj 446 139 of.translate 0 0 -200;
#X obj 446 205 of.plane 400 400 100 100;
#X floatatom 500 225 5 0 0 0 size - -;
#X floatatom 555 226 5 0 0 0 geo - -;
#X obj 446 257 of.sphere 100 50;
#X text 457 326 RGB color control:;
#X text 25 559 More infos on lighting: https://openframeworks.cc/documentation/gl/ofLight/
, f 81;
#X text 117 159 position X (;
#X text 25 528 Point light : Light comes from a single point and spreads
outward evenly in all directions, f 81;
#X text 588 452 (default 1 \, 1 \, 1);
#X text 588 430 (default 1 \, 1 \, 1);
#X text 598 407 (default 0.2 \, 0.2 \, 0.2);
#X text 197 182 (default position to 0 \, 0 \, 0);
#X obj 446 108 of.draw 1 1;
#X msg 403 19 lighting \$1;
#X obj 380 21 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1
1;
#X obj 518 19 of.window 1;
#X obj 497 21 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X text 438 88 draw objects with depth test;
#X msg 78 181 position \$1 0 200;
#X obj 123 353 loadbang;
#X obj 26 84 of.draw 2 1;
#X obj 26 508 of.pointlight 1;
#X connect 2 0 49 0;
#X connect 3 0 52 0;
#X connect 4 0 3 0;
#X connect 5 0 6 0;
#X connect 6 0 52 0;
#X connect 7 0 52 0;
#X connect 8 0 7 0;
#X connect 9 0 10 0;
#X connect 10 0 52 0;
#X connect 13 0 31 1;
#X connect 13 0 31 2;
#X connect 14 0 31 3;
#X connect 14 0 31 4;
#X connect 15 0 52 0;
#X connect 16 0 15 0;
#X connect 21 0 22 0;
#X connect 22 0 52 0;
#X connect 23 0 52 0;
#X connect 24 0 23 0;
#X connect 25 0 26 0;
#X connect 26 0 52 0;
#X connect 27 0 52 0;
#X connect 30 0 31 0;
#X connect 31 0 34 0;
#X connect 32 0 34 1;
#X connect 33 0 34 2;
#X connect 43 0 30 0;
#X connect 44 0 46 0;
#X connect 45 0 44 0;
#X connect 47 0 46 0;
#X connect 49 0 52 0;
#X connect 50 0 8 0;
#X connect 51 0 52 0;