fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / System / NodeCores / Groups / Light / OSGSpotLight.fcd
blob18a148fe64098e1b7404bf4e4831c36bd78b87a6
1 <?xml version="1.0" ?>
3 <FieldContainer
4 name="SpotLight"
5 parent="PointLight"
6 library="Group"
7 structure="concrete"
8 pointerfieldtypes="none"
9 systemcomponent="true"
10 parentsystemcomponent="true"
11 isNodeCore="true"
12 docGroupBase="GrpGroupLight"
14 SpotLight is a located lightsource. The position of the light source
15 (in the beacon's coordinate system) is defined by the \c position
16 attribute, its direction by the \c direction attribute. The spot has an
17 exponential fallof, controlled by the \c spotExponent attribute and a
18 maximum opening angle, defined by the \c spotCutOff attribute.
19 The influence of the light diminishes with distance, controlled
20 by the \c constantAttenuation, \c linearAttenuation and \c
21 quadraticAttenuation attributes.
22 <Field
23 name="direction"
24 type="Vec3f"
25 cardinality="single"
26 visibility="external"
27 defaultValue="0.f,0.f,1.f"
29 </Field>
30 <Field
31 name="spotExponent"
32 type="Real32"
33 cardinality="single"
34 visibility="external"
35 defaultValue="0.1f"
37 The drop-off exponent of the spotlight.
38 </Field>
39 <Field
40 name="spotCutOff"
41 type="Real32"
42 cardinality="single"
43 visibility="external"
44 defaultValue="1.0472f"
46 The cut-off angle of the spotlight (in radians, not degrees!).
47 </Field>
48 </FieldContainer>