| 1 |
X3DBackgroundNode : X3DBindableNode { |
| 2 |
MFNode [in,out] shaders [] |
| 3 |
range: X3DShaderNode |
| 4 |
change: chEverything |
| 5 |
doc: Shaders used to render background geometry. |
| 6 |
MFNode [] effects [] |
| 7 |
range: Effect |
| 8 |
change: chEverything |
| 9 |
doc: Shader effects (see https://castle-engine.io/compositing_shaders.php) used to render background geometry. |
| 10 |
} |
| 11 |
|
| 12 |
# X3D specification has just X3DBackgroundNode, not X3D3DBackgroundNode. |
| 13 |
# We split in into (empty) X3DBackgroundNode and X3D3DBackgroundNode (with colors and angles). |
| 14 |
# This allows to cleanly define ImageBackground. |
| 15 |
X3D3DBackgroundNode : X3DBindableNode { |
| 16 |
MFFloat [in,out] groundAngle [] |
| 17 |
range: [0,Pi/2] |
| 18 |
change: chBackground |
| 19 |
angle |
| 20 |
MFColor [in,out] groundColor [] |
| 21 |
range: [0,1] |
| 22 |
change: chBackground |
| 23 |
MFFloat [in,out] skyAngle [] |
| 24 |
range: [0,Pi] |
| 25 |
change: chBackground |
| 26 |
angle |
| 27 |
MFColor [in,out] skyColor 0 0 0 |
| 28 |
range: [0,1] |
| 29 |
change: chBackground |
| 30 |
SFFloat [in,out] transparency 0 |
| 31 |
range: [0,1] |
| 32 |
change: chBackground |
| 33 |
} |
| 34 |
|
| 35 |
X3DFogObject { |
| 36 |
SFColor [in,out] color 1 1 1 |
| 37 |
range: [0,1] |
| 38 |
change: chRedisplay |
| 39 |
SFString [in,out] fogType "LINEAR" |
| 40 |
range: ["LINEAR"|"EXPONENTIAL"] |
| 41 |
enumerated-type: TFogType FogTypeNames ftLinear |
| 42 |
change: chRedisplay |
| 43 |
SFFloat [in,out] visibilityRange 0 |
| 44 |
range: [0,-Inf) |
| 45 |
change: chRedisplay |
| 46 |
|
| 47 |
# CASTLE GAME ENGINE EXTENSIONS: |
| 48 |
SFBool [in,out] volumetric FALSE |
| 49 |
doc: Activate volumetric fog, see https://castle-engine.io/x3d_extensions.php#ext_fog_volumetric . |
| 50 |
change: chRedisplay |
| 51 |
SFVec3f [in,out] volumetricDirection 0 -1 0 |
| 52 |
range: any non-zero vector |
| 53 |
change: chRedisplay |
| 54 |
SFFloat [in,out] volumetricVisibilityStart 0 |
| 55 |
change: chRedisplay |
| 56 |
} |
| 57 |
|
| 58 |
Background : X3D3DBackgroundNode { |
| 59 |
MFString [in,out] backUrl [] |
| 60 |
range: [URI] |
| 61 |
# TODO: chEverything is very unoptimal. |
| 62 |
# Changing background XxxUrl should only cause reloading of the Textures |
| 63 |
# (even better: only of the appropriate background side), |
| 64 |
# and then chBackground. |
| 65 |
change: chEverything |
| 66 |
MFString [in,out] bottomUrl [] |
| 67 |
range: [URI] |
| 68 |
change: chEverything |
| 69 |
MFString [in,out] frontUrl [] |
| 70 |
range: [URI] |
| 71 |
change: chEverything |
| 72 |
MFString [in,out] leftUrl [] |
| 73 |
range: [URI] |
| 74 |
change: chEverything |
| 75 |
MFString [in,out] rightUrl [] |
| 76 |
range: [URI] |
| 77 |
change: chEverything |
| 78 |
MFString [in,out] topUrl [] |
| 79 |
range: [URI] |
| 80 |
change: chEverything |
| 81 |
} |
| 82 |
|
| 83 |
Fog : X3DBindableNode, X3DFogObject { |
| 84 |
# Although some of these fields are already present in X3DFogObject, |
| 85 |
# but we repeat them here, because only the fields from 1st ancestor |
| 86 |
# (X3DBindableNode here) are automatically inherited. |
| 87 |
# In Pascal we realize the remaining ancestors as TNodeFunctionality components. |
| 88 |
|
| 89 |
SFColor [in,out] color 1 1 1 |
| 90 |
range: [0,1] |
| 91 |
change: chRedisplay |
| 92 |
SFString [in,out] fogType "LINEAR" |
| 93 |
range: ["LINEAR"|"EXPONENTIAL"] |
| 94 |
enumerated-type: TFogType FogTypeNames ftLinear |
| 95 |
change: chRedisplay |
| 96 |
SFFloat [in,out] visibilityRange 0 |
| 97 |
range: [0,Inf) |
| 98 |
change: chRedisplay |
| 99 |
|
| 100 |
# CASTLE GAME ENGINE EXTENSIONS: |
| 101 |
SFBool [in,out] volumetric FALSE |
| 102 |
change: chRedisplay |
| 103 |
doc: Activate volumetric fog, see https://castle-engine.io/x3d_extensions.php#ext_fog_volumetric . |
| 104 |
SFVec3f [in,out] volumetricDirection 0 -1 0 |
| 105 |
range: any non-zero vector |
| 106 |
change: chRedisplay |
| 107 |
SFFloat [in,out] volumetricVisibilityStart 0 |
| 108 |
change: chRedisplay |
| 109 |
} |
| 110 |
|
| 111 |
FogCoordinate : X3DGeometricPropertyNode { |
| 112 |
default-container-field: fogCoord |
| 113 |
MFFloat [in,out] depth [] |
| 114 |
range: [0,1] |
| 115 |
} |
| 116 |
|
| 117 |
LocalFog : X3DChildNode, X3DFogObject { |
| 118 |
# Although some of these fields are already present in X3DFogObject, |
| 119 |
# but we repeat them here, because only the fields from 1st ancestor |
| 120 |
# (X3DBindableNode here) are automatically inherited. |
| 121 |
# In Pascal we realize the remaining ancestors as interfaces |
| 122 |
# or TNodeFunctionality components. |
| 123 |
|
| 124 |
SFColor [in,out] color 1 1 1 |
| 125 |
range: [0,1] |
| 126 |
SFBool [in,out] enabled TRUE |
| 127 |
SFString [in,out] fogType "LINEAR" |
| 128 |
range: ["LINEAR"|"EXPONENTIAL"] |
| 129 |
enumerated-type: TFogType FogTypeNames ftLinear |
| 130 |
SFFloat [in,out] visibilityRange 0 |
| 131 |
range: [0,-Inf) |
| 132 |
|
| 133 |
# CASTLE GAME ENGINE EXTENSIONS: |
| 134 |
SFBool [in,out] volumetric FALSE |
| 135 |
doc: Activate volumetric fog, see https://castle-engine.io/x3d_extensions.php#ext_fog_volumetric . |
| 136 |
change: chEverything |
| 137 |
SFVec3f [in,out] volumetricDirection 0 -1 0 |
| 138 |
range: any non-zero vector |
| 139 |
change: chEverything |
| 140 |
SFFloat [in,out] volumetricVisibilityStart 0 |
| 141 |
change: chEverything |
| 142 |
} |
| 143 |
|
| 144 |
TextureBackground : X3D3DBackgroundNode { |
| 145 |
SFNode [in,out] backTexture NULL |
| 146 |
range: X3DTextureNode |
| 147 |
SFNode [in,out] bottomTexture NULL |
| 148 |
range: X3DTextureNode |
| 149 |
SFNode [in,out] frontTexture NULL |
| 150 |
range: X3DTextureNode |
| 151 |
SFNode [in,out] leftTexture NULL |
| 152 |
range: X3DTextureNode |
| 153 |
SFNode [in,out] rightTexture NULL |
| 154 |
range: X3DTextureNode |
| 155 |
SFNode [in,out] topTexture NULL |
| 156 |
range: X3DTextureNode |
| 157 |
} |