Debian Codegraph @

models/oiv_compliance/directionallight.iv

raw
1 #Inventor V2.1 ascii
2
3 # Check rendering with an SoDirectionalLight.
4 # NB: turn off the headlight in the viewer.
5 #
6 # 19990423 mortene
7
8 Separator {
9 # ROW 0 -- different direction vectors
10 Separator {
11 BaseColor { rgb 1 0 0 }
12 Separator {
13 DirectionalLight { }
14 Cube { }
15 }
16
17 BaseColor { rgb 0 1 0 }
18 Translation { translation +4 0 0 }
19 Separator {
20 DirectionalLight { direction 1 0 0}
21 Cube { }
22 }
23
24 BaseColor { rgb 1 1 0 }
25 Translation { translation +4 0 0 }
26 Separator {
27 DirectionalLight { direction 0 1 0}
28 Cube { }
29 }
30
31 BaseColor { rgb 1 0 1 }
32 Translation { translation +4 0 0 }
33 Separator {
34 DirectionalLight { direction 0 0 1 }
35 Cube { }
36 }
37
38 BaseColor { rgb 1 1 1 }
39 Translation { translation +4 0 0 }
40 Separator {
41 DirectionalLight { direction 0 -1 -1 }
42 Cube { }
43 }
44 }
45
46 # ROW 1 -- misc field settings
47 Translation { translation 0 +4 0 }
48 Separator {
49 BaseColor { rgb 1 0 0 }
50 Separator {
51 DirectionalLight { on FALSE }
52 Cube { }
53 }
54
55 BaseColor { rgb 1 1 0 }
56 Translation { translation +4 0 0 }
57 Separator {
58 DirectionalLight { intensity 0.8 }
59 Cube { }
60 }
61
62 BaseColor { rgb 1 1 0 }
63 Translation { translation +4 0 0 }
64 Separator {
65 DirectionalLight { intensity 0.5 }
66 Cube { }
67 }
68
69 BaseColor { rgb 1 1 0 }
70 Translation { translation +4 0 0 }
71 Separator {
72 DirectionalLight { intensity 0.2 }
73 Cube { }
74 }
75
76 BaseColor { rgb 1 1 1 }
77 Translation { translation +4 0 0 }
78 Separator {
79 DirectionalLight { color 1 0 0 }
80 Cube { }
81 }
82
83 BaseColor { rgb 0 0 0 }
84 Translation { translation +4 0 0 }
85 Separator {
86 DirectionalLight { color 1 0 0 }
87 Cube { }
88 }
89 }
90
91 # ROW 2 -- set ignore flags
92 Translation { translation 0 +4 0 }
93 Separator {
94 BaseColor { rgb 1 0 0 }
95 Separator {
96 DirectionalLight { direction -1 -1 -1 ~ }
97 Cube { }
98 }
99
100 BaseColor { rgb 1 1 0 }
101 Translation { translation +4 0 0 }
102 Separator {
103 DirectionalLight { intensity 0.2 ~ }
104 Cube { }
105 }
106
107 BaseColor { rgb 1 1 1 }
108 Translation { translation +4 0 0 }
109 Separator {
110 DirectionalLight { on FALSE ~ }
111 Cube { }
112 }
113
114 BaseColor { rgb 1 1 1 }
115 Translation { translation +4 0 0 }
116 Separator {
117 DirectionalLight { color 1 0 0 ~ }
118 Cube { }
119 }
120 }
121 }