#N canvas 519 142 857 570 8;
#X text 111 111 create and destroy the graphics window;
#X obj 14 362 gemwin;
#X msg 47 110 create;
#X obj 477 89 gemhead;
#X msg 54 138 destroy;
#X msg 68 190 1;
#X msg 67 228 0;
#X msg 122 336 lighting 1;
#X obj 477 200 rotate;
#X floatatom 522 162;
#X obj 318 508 world_light;
#X obj 318 394 gemhead 1;
#X msg 122 305 lighting 0;
#X obj 477 253 sphere;
#X text 150 38 create a sphere with and without lighting;
#X text 492 135 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 61 284 you can turn lighting on and off while it is running;
#X text 110 210 turn rendering on and off;
#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;
#X msg 185 424 debug 0;
#X msg 186 455 debug 1;
#X text 96 400 figure out where the light is;
#X connect 2 0 1 0;
#X connect 3 0 8 0;
#X connect 4 0 1 0;
#X connect 5 0 1 0;
#X connect 6 0 1 0;
#X connect 7 0 1 0;
#X connect 8 0 13 0;
#X connect 9 0 8 1;
#X connect 11 0 23 0;
#X connect 12 0 1 0;
#X connect 20 0 10 1;
#X connect 21 0 10 1;
#X connect 23 0 10 0;
#X connect 24 0 23 2;
#X connect 25 0 10 0;
#X connect 26 0 10 0;
