Debian Codegraph @

texmf-dist/doc/latex/movie15/javascript/lights.js

raw
1 ////////////////////////////////////////////////////////////////////////
2 //
3 // lights.js
4 //
5 // example JavaScript for use with `3Djscript' option of \includemovie
6 //
7 // * Adds light sources around the object for better illumination.
8 //
9 ////////////////////////////////////////////////////////////////////////
10 console.println(scene.lightScheme);
11 ////first remove any scene lights
12 //for (var i = scene.lights.count - 1; i >= 0; i--) {
13 // scene.lights.removeByIndex(i);
14 //}
15 //
16 ////new lights
17 ////from left
18 //l1 = scene.createLight();
19 //l1.color.set(1,1,1);
20 //l1.brightness = .4;
21 //l1.direction.set(1,0,0);
22 //
23 ////from right
24 //l2 = scene.createLight();
25 //l2.color.set(1,1,1);
26 //l2.brightness = .4;
27 //l2.direction.set(-1,0,0);
28 //
29 ////from bottom
30 //l3 = scene.createLight();
31 //l3.color.set(1,1,1);
32 //l3.brightness = .4;
33 //l3.direction.set(0,0,1);
34 //
35 ////from top
36 //l4 = scene.createLight();
37 //l4.color.set(1,1,1);
38 //l4.brightness = .4;
39 //l4.direction.set(0,0,-1);
40 //
41 ////from front
42 //l5 = scene.createLight();
43 //l5.color.set(1,1,1);
44 //l5.brightness = .4;
45 //l5.direction.set(0,1,0);
46 //
47 ////from back
48 //l6 = scene.createLight();
49 //l6.color.set(1,1,1);
50 //l6.brightness = .4;
51 //l6.direction.set(0,-1,0);