changed: gcc8 base update
[opensg.git] / Source / System / NodeCores / Groups / Base / OSGLight.fcd
blobfaef74284d887c0fb18bbd312e0630facb10d72a
1 <?xml version="1.0"?>
3 <FieldContainer
4 name="Light"
5 parent="Group"
6 library="System"
7 pointerfieldtypes="both"
8 structure="abstract"
9 systemcomponent="true"
10 parentsystemcomponent="true"
11 isNodeCore="true"
12 decoratable="false"
13 useLocalIncludes="false"
14 docGroupBase="GrpSystemNodeCoreGroups"
17 Light is the base class for all the light source nodes.
18 It contains the field for the general light source attributes
19 (AmbientColor, DiffuseColor, SpecularColor, Beacon). The Beacon
20 defines the reference coordinate system for the lightsource, while
21 the position in the graph defines the objects that are lit.
23 <Field
24 name="ambient"
25 type="Color4f"
26 cardinality="single"
27 visibility="external"
28 defaultValue="0.f,0.f,0.f,1.f"
29 access="public"
31 The light's ambient component.
32 </Field>
33 <Field
34 name="diffuse"
35 type="Color4f"
36 cardinality="single"
37 visibility="external"
38 defaultValue="1.f,1.f,1.f,1.f"
39 access="public"
41 The light's diffuse color.
42 </Field>
43 <Field
44 name="specular"
45 type="Color4f"
46 cardinality="single"
47 visibility="external"
48 defaultValue="1.f,1.f,1.f,1.f"
49 access="public"
51 The light's specular color.
52 </Field>
53 <Field
54 name="beacon"
55 type="Node"
56 category="weakpointer"
57 cardinality="single"
58 visibility="external"
59 access="public"
61 </Field>
62 <Field
63 name="on"
64 type="bool"
65 cardinality="single"
66 visibility="external"
67 defaultValue="true"
68 access="public"
70 </Field>
71 <Field
72 name="constantAttenuation"
73 type="Real32"
74 cardinality="single"
75 visibility="external"
76 defaultValue="1.f"
77 access="public"
79 The light's constant attenuation.
80 </Field>
81 <Field
82 name="linearAttenuation"
83 type="Real32"
84 cardinality="single"
85 visibility="external"
86 defaultValue="0.f"
87 access="public"
89 The light's linear attenuation.
90 </Field>
91 <Field
92 name="quadraticAttenuation"
93 type="Real32"
94 cardinality="single"
95 visibility="external"
96 defaultValue="0.f"
97 access="public"
99 The light's quadratic attenuation.
100 </Field>
101 <Field
102 name="lightEngine"
103 type="LightEnginePtr"
104 cardinality="single"
105 visibility="external"
106 access="public"
108 </Field>
111 <Field
112 name="shadowIntensity"
113 type="Real32"
114 cardinality="single"
115 visibility="external"
116 defaultValue="0.f"
117 access="public"
119 </Field>
120 <Field
121 name="shadowMode"
122 type="UInt32"
123 cardinality="single"
124 visibility="external"
125 defaultValue="0"
126 access="public"
128 </Field>
131 </FieldContainer>