aboutsummaryrefslogtreecommitdiff
path: root/Gem/examples/03.lighting/01.world_light.pd
blob: 8987c3826063ea2710f864c284c64beb4701f62b (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
#N canvas 139 90 771 570 10;
#X obj 518 59 gemhead;
#X msg 86 180 lighting 1;
#X obj 518 170 rotate;
#X floatatom 563 132 0 0 0 0 - - -;
#X obj 318 508 world_light;
#X obj 318 394 gemhead 1;
#X msg 86 149 lighting 0;
#X obj 518 194 sphere;
#X text 150 38 create a sphere with and without lighting;
#X text 533 105 rotate the sphere;
#X text 139 545 creates a light an infinite distance away.;
#X text 314 341 gemhead has a value of 1 so that it is rendered before
the sphere is;
#X text 52 124 you can turn lighting on and off while it is running
;
#X msg 457 466 1 1 1;
#X msg 404 464 1 0 1;
#X text 508 460 change the lights color;
#X obj 318 456 rotateXYZ;
#X floatatom 409 399 0 0 0 0 - - -;
#X msg 185 424 debug 0;
#X msg 186 455 debug 1;
#X text 96 400 figure out where the light is;
#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 64 238 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 0 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 34 255 pd gemwin;
#X connect 0 0 2 0;
#X connect 1 0 22 0;
#X connect 2 0 7 0;
#X connect 3 0 2 1;
#X connect 5 0 16 0;
#X connect 6 0 22 0;
#X connect 13 0 4 1;
#X connect 14 0 4 1;
#X connect 16 0 4 0;
#X connect 17 0 16 2;
#X connect 18 0 4 0;
#X connect 19 0 4 0;
#X connect 21 0 22 0;