fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / System / NodeCores / Groups / Light / Shadow / Engines / OSGShaderShadowMapEngine.fcd
blob302c68b3be4df0da8eda25aa6e41327368575757
1 <?xml version="1.0" ?>
3 <FieldContainer
4 name="ShaderShadowMapEngine"
5 parent="ShadowMapEngine"
6 library="Group"
7 structure="concrete"
8 pointerfieldtypes="both"
9 systemcomponent="true"
10 parentsystemcomponent="true"
11 isNodeCore="false"
12 docGroupBase="GrpGroupLightShadowEngines"
14 <Field
15 name="shadowVertexProgram"
16 category="pointer"
17 type="ShaderProgram"
18 cardinality="single"
19 visibility="external"
20 defaultValue="NULL"
21 access="public"
23 Vertex program snippet to perform necessary calculations for shadow map
24 lookup. Currently not used.
25 </Field>
26 <Field
27 name="shadowFragmentProgram"
28 category="pointer"
29 type="ShaderProgram"
30 cardinality="single"
31 visibility="external"
32 defaultValue="NULL"
33 access="public"
35 Fragment program snippet to perform shadow map lookup.
36 Contains a function vec4 OSG_SSME_FP_calcShadow(vec4 fragPos) that returns
37 a shadow factor for the fragment with eye coordinate positoin fragPos.
38 </Field>
39 <Field
40 name="forceTextureUnit"
41 type="Int32"
42 cardinality="single"
43 visibility="external"
44 defaultValue="-1"
45 access="public"
47 Texture unit to use for the shadow texture (this is passed to the shader
48 snippets).
49 </Field>
50 <Field
51 name="shadowNear"
52 type="Real32"
53 category="data"
54 cardinality="single"
55 visibility="external"
56 defaultValue="0.f"
57 access="public"
59 Near clipping plane value to use when rendering the shadow map.
60 Only used when not 0.f.
61 </Field>
62 <Field
63 name="shadowFar"
64 type="Real32"
65 category="data"
66 cardinality="single"
67 visibility="external"
68 defaultValue="0.f"
69 access="public"
71 Far clipping plane value to use when rendering the shadow map.
72 Only used when not 0.f.
73 </Field>
74 </FieldContainer>