Debian Codegraph @

tools/internal/x3d-nodes-to-pascal/nodes-specification/Lighting.txt

raw
1 X3DLightNode : X3DChildNode {
2 SFFloat [in,out] ambientIntensity 0
3 range: [0,1]
4 SFColor [in,out] color 1 1 1
5 range: [0,1]
6 SFBool [in,out] global FALSE
7 change: chEverything
8 SFFloat [in,out] intensity 1
9 range: [0,1]
10 SFBool [in,out] on TRUE
11
12 # CASTLE GAME ENGINE EXTENSIONS:
13 MFNode [] effects []
14 range: Effect
15 change: chEverything
16 SFBool [in,out] shadowVolumes FALSE
17 change: chLightForShadowVolumes
18 }
19
20 X3DPunctualLightNode : X3DLightNode {
21 # CASTLE GAME ENGINE EXTENSIONS:
22 SFBool [] shadows FALSE
23 change: chShadowMaps
24 SFBool [in,out] shadowVolumesMain FALSE
25 doc: Does this light determine shadows (when using shadow volumes). Ignored if not @link(ShadowVolumes).
26 change: chLightForShadowVolumes
27 SFBool [in,out] showProxyGeometry FALSE
28 doc: InstantReality extension, see [http://instant-reality.com/documentation/nodetype/Light/].
29 SFFloat [in,out] projectionNear 0
30 range: > 0
31 doc: Projection near, for shadow maps. See https://castle-engine.io/x3d_extensions_shadow_maps.php#section_light_parameters . }
32 # We want to set UpdateNeeded := true for all GeneratedShadowMap using
33 # this light. For now, simply send chVisibleGeometry that will
34 # force updating all GeneratedShadowMaps.
35 change: chVisibleGeometry
36 SFFloat [in,out] projectionFar 0
37 range: anything > projectionNear
38 doc: Projection far, for shadow maps. See https://castle-engine.io/x3d_extensions_shadow_maps.php#section_light_parameters . }
39 # We want to set UpdateNeeded := true for all GeneratedShadowMap using
40 # this light. For now, simply send chVisibleGeometry that will
41 # force updating all GeneratedShadowMaps.
42 change: chVisibleGeometry
43 SFVec3f [in,out] up 0 0 0
44 doc: View up vector, for shadow maps. See https://castle-engine.io/x3d_extensions_shadow_maps.php#section_light_parameters . }
45 # We want to set UpdateNeeded := true for all GeneratedShadowMap using
46 # this light. For now, simply send chVisibleGeometry that will
47 # force updating all GeneratedShadowMaps.
48 change: chVisibleGeometry
49 SFNode [] defaultShadowMap NULL
50 range: GeneratedShadowMap
51 doc: Shadow map used by this light source. See https://castle-engine.io/x3d_extensions_shadow_maps.php#section_light_parameters . }
52 change: chEverything
53 }
54
55 # We add abstract X3DDirectionalLight, not present in X3D spec.
56 # This is an ancestor for X3D DirectionalLight and VRML 1.0 DirectionalLight.
57 X3DDirectionalLightNode : X3DPunctualLightNode {
58 SFVec3f [in,out] direction 0 0 -1
59 range: (-Inf,Inf)
60 change: chLightLocationDirection
61
62 # NOTE: global by default is FALSE
63
64 # CASTLE GAME ENGINE EXTENSIONS:
65 SFVec4f [in,out] projectionRectangle 0 0 0 0
66 range: left, bottom, right, top; must be left < right and bottom < top
67 # We want to set UpdateNeeded := true for all GeneratedShadowMap using
68 # this light. For now, simply send chVisibleGeometry that will
69 # force updating all GeneratedShadowMaps.
70 change: chVisibleGeometry
71 SFVec3f [in,out] projectionLocation 0 0 0
72 # We want to set UpdateNeeded := true for all GeneratedShadowMap using
73 # this light. For now, simply send chVisibleGeometry that will
74 # force updating all GeneratedShadowMaps.
75 change: chVisibleGeometry
76 }
77
78 # We add abstract X3DPositionalLightNode, not present in X3D spec.
79 # This is an ancestor for at least X3D PointLight, X3D SpotLight,
80 # VRML 1.0 PointLight, VRML 1.0 SpotLight.
81 X3DPositionalLightNode : X3DPunctualLightNode {
82 # NOTE: global by default is TRUE
83
84 SFVec3f [in,out] attenuation 1 0 0
85 range: 0,Inf)
86 SFVec3f [in,out] location 0 0 0
87 range: 0 0 0 (-Inf,Inf)
88 change: chLightLocationDirection
89 SFFloat [in,out] radius 100
90 # As an extension to X3D, CGE allows radius -1 to indicate "no radius"
91 range: [0,Inf) or -1
92 change: chLightInstanceProperty
93 }
94
95 X3DPointLightNode : X3DPositionalLightNode {
96 }
97
98 DirectionalLight : X3DDirectionalLightNode {
99 }
100
101 PointLight : X3DPointLightNode {
102 }
103
104 SpotLight : X3DPositionalLightNode {
105 SFFloat [in,out] beamWidth Pi*3/16
106 range: (0,Pi/2]
107 SFFloat [in,out] cutOffAngle Pi/4
108 range: (0,Pi/2]
109 SFVec3f [in,out] direction 0 0 -1
110 range: (-Inf,Inf)
111 change: chLightLocationDirection
112
113 # CASTLE GAME ENGINE EXTENSIONS:
114 SFFloat [in,out] projectionAngle 0
115 # We want to set UpdateNeeded := true for all GeneratedShadowMap using
116 # this light. For now, simply send chVisibleGeometry that will
117 # force updating all GeneratedShadowMaps.
118 change: chVisibleGeometry
119 angle
120 }
121
122 EnvironmentLight : X3DLightNode {
123 SFNode [in,out] diffuseTexture NULL
124 range: X3DEnvironmentTextureNode
125 SFNode [in,out] specularTexture NULL
126 range: X3DEnvironmentTextureNode
127 }