| 1 |
{ -*- buffer-read-only: t -*- |
| 2 |
|
| 3 |
Copyright 2015-2024 Michalis Kamburelis. |
| 4 |
|
| 5 |
This file is part of "Castle Game Engine". |
| 6 |
|
| 7 |
"Castle Game Engine" is free software; see the file COPYING.txt, |
| 8 |
included in this distribution, for details about the copyright. |
| 9 |
|
| 10 |
"Castle Game Engine" is distributed in the hope that it will be useful, |
| 11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 13 |
|
| 14 |
---------------------------------------------------------------------------- |
| 15 |
} |
| 16 |
|
| 17 |
{ Automatically generated node properties. |
| 18 |
|
| 19 |
Do not edit this file manually! |
| 20 |
To add new properties: |
| 21 |
- add them to the text files in tools/internal/x3d-nodes-to-pascal/nodes-specification/ , |
| 22 |
- and regenerate include files by running x3d-nodes-to-pascal } |
| 23 |
|
| 24 |
{$ifdef read_interface} |
| 25 |
|
| 26 |
strict private |
| 27 |
function GetEnableARC: Boolean; |
| 28 |
procedure SetEnableARC(const Value: Boolean); |
| 29 |
function GetFrustumCulling: Boolean; |
| 30 |
procedure SetFrustumCulling(const Value: Boolean); |
| 31 |
function GetGammaCorrectionDefault: String; |
| 32 |
procedure SetGammaCorrectionDefault(const Value: String); |
| 33 |
function GetLowPriorityCulling: Boolean; |
| 34 |
procedure SetLowPriorityCulling(const Value: Boolean); |
| 35 |
function GetLowPriorityFactor: Single; |
| 36 |
procedure SetLowPriorityFactor(const Value: Single); |
| 37 |
function GetLowPriorityThreshold: Single; |
| 38 |
procedure SetLowPriorityThreshold(const Value: Single); |
| 39 |
function GetMaxFrameRate: Single; |
| 40 |
procedure SetMaxFrameRate(const Value: Single); |
| 41 |
function GetMinFrameRate: Single; |
| 42 |
procedure SetMinFrameRate(const Value: Single); |
| 43 |
function GetOcclusionCulling: Boolean; |
| 44 |
procedure SetOcclusionCulling(const Value: Boolean); |
| 45 |
function GetOcclusionVisibilityFactor: Single; |
| 46 |
procedure SetOcclusionVisibilityFactor(const Value: Single); |
| 47 |
function GetOcclusionVisibilityThreshold: Single; |
| 48 |
procedure SetOcclusionVisibilityThreshold(const Value: Single); |
| 49 |
function GetShadowExcludeTransparentObjects: Boolean; |
| 50 |
procedure SetShadowExcludeTransparentObjects(const Value: Boolean); |
| 51 |
function GetSmallFeatureCulling: Boolean; |
| 52 |
procedure SetSmallFeatureCulling(const Value: Boolean); |
| 53 |
function GetSmallFeatureFactor: Single; |
| 54 |
procedure SetSmallFeatureFactor(const Value: Single); |
| 55 |
function GetSmallFeatureThreshold: Single; |
| 56 |
procedure SetSmallFeatureThreshold(const Value: Single); |
| 57 |
function GetSortTrans: Boolean; |
| 58 |
procedure SetSortTrans(const Value: Boolean); |
| 59 |
function GetSSAO: Boolean; |
| 60 |
procedure SetSSAO(const Value: Boolean); |
| 61 |
function GetSSAOamount: Single; |
| 62 |
procedure SetSSAOamount(const Value: Single); |
| 63 |
function GetSSAOblurDepthTreshold: Single; |
| 64 |
procedure SetSSAOblurDepthTreshold(const Value: Single); |
| 65 |
function GetSSAOradius: Single; |
| 66 |
procedure SetSSAOradius(const Value: Single); |
| 67 |
function GetSSAOrandomTextureSize: Single; |
| 68 |
procedure SetSSAOrandomTextureSize(const Value: Single); |
| 69 |
function GetTessellationDetailCulling: Boolean; |
| 70 |
procedure SetTessellationDetailCulling(const Value: Boolean); |
| 71 |
function GetTessellationErrorFactor: Single; |
| 72 |
procedure SetTessellationErrorFactor(const Value: Single); |
| 73 |
function GetTessellationErrorThreshold: Single; |
| 74 |
procedure SetTessellationErrorThreshold(const Value: Single); |
| 75 |
function GetTonemapping: TToneMapping; |
| 76 |
procedure SetTonemapping(const Value: TToneMapping); |
| 77 |
function GetUserDataFactor: Single; |
| 78 |
procedure SetUserDataFactor(const Value: Single); |
| 79 |
public |
| 80 |
{ Create node fields and events. } |
| 81 |
procedure CreateNode; override; |
| 82 |
class function ClassX3DType: String; override; |
| 83 |
|
| 84 |
strict private FFdEnableARC: TSFBool; |
| 85 |
{ Internal wrapper for property @code(EnableARC). This wrapper API may change, we advise to access simpler @code(EnableARC) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 86 |
public property FdEnableARC: TSFBool read FFdEnableARC; |
| 87 |
{ Experimental: If true ARC adjusts rendering parameters } |
| 88 |
property EnableARC: Boolean read GetEnableARC write SetEnableARC; |
| 89 |
|
| 90 |
strict private FFdFrustumCulling: TSFBool; |
| 91 |
{ Internal wrapper for property @code(FrustumCulling). This wrapper API may change, we advise to access simpler @code(FrustumCulling) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 92 |
public property FdFrustumCulling: TSFBool read FFdFrustumCulling; |
| 93 |
{ If TRUE, objects outside the viewing frustum are ignored } |
| 94 |
property FrustumCulling: Boolean read GetFrustumCulling write SetFrustumCulling; |
| 95 |
|
| 96 |
strict private FFdGammaCorrectionDefault: TSFString; |
| 97 |
{ Internal wrapper for property @code(GammaCorrectionDefault). This wrapper API may change, we advise to access simpler @code(GammaCorrectionDefault) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 98 |
public property FdGammaCorrectionDefault: TSFString read FFdGammaCorrectionDefault; |
| 99 |
{ The gamma correction to apply by default, see lighting and gamma tutorial } |
| 100 |
property GammaCorrectionDefault: String read GetGammaCorrectionDefault write SetGammaCorrectionDefault; |
| 101 |
|
| 102 |
strict private FFdLowPriorityCulling: TSFBool; |
| 103 |
{ Internal wrapper for property @code(LowPriorityCulling). This wrapper API may change, we advise to access simpler @code(LowPriorityCulling) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 104 |
public property FdLowPriorityCulling: TSFBool read FFdLowPriorityCulling; |
| 105 |
{ If TRUE and occlusion culling supported, only threshold fraction of objects, sorted by their screen space coverage, are rendered } |
| 106 |
property LowPriorityCulling: Boolean read GetLowPriorityCulling write SetLowPriorityCulling; |
| 107 |
|
| 108 |
strict private FFdLowPriorityFactor: TSFFloat; |
| 109 |
{ Internal wrapper for property @code(LowPriorityFactor). This wrapper API may change, we advise to access simpler @code(LowPriorityFactor) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 110 |
public property FdLowPriorityFactor: TSFFloat read FFdLowPriorityFactor; |
| 111 |
{ Experimenal: Factor of low priority culling for controlling speed-performance trade-off } |
| 112 |
property LowPriorityFactor: Single read GetLowPriorityFactor write SetLowPriorityFactor; |
| 113 |
|
| 114 |
strict private FFdLowPriorityThreshold: TSFFloat; |
| 115 |
{ Internal wrapper for property @code(LowPriorityThreshold). This wrapper API may change, we advise to access simpler @code(LowPriorityThreshold) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 116 |
public property FdLowPriorityThreshold: TSFFloat read FFdLowPriorityThreshold; |
| 117 |
{ Only threshold fraction of objects, sorted by their screen space coverage, are rendered } |
| 118 |
property LowPriorityThreshold: Single read GetLowPriorityThreshold write SetLowPriorityThreshold; |
| 119 |
|
| 120 |
strict private FFdMaxFrameRate: TSFFloat; |
| 121 |
{ Internal wrapper for property @code(MaxFrameRate). This wrapper API may change, we advise to access simpler @code(MaxFrameRate) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 122 |
public property FdMaxFrameRate: TSFFloat read FFdMaxFrameRate; |
| 123 |
{ Experimental: Define maximal target frame-rate for dynamic moments and quality-speed trade-off } |
| 124 |
property MaxFrameRate: Single read GetMaxFrameRate write SetMaxFrameRate; |
| 125 |
|
| 126 |
strict private FFdMinFrameRate: TSFFloat; |
| 127 |
{ Internal wrapper for property @code(MinFrameRate). This wrapper API may change, we advise to access simpler @code(MinFrameRate) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 128 |
public property FdMinFrameRate: TSFFloat read FFdMinFrameRate; |
| 129 |
{ Experimental: Define minimal target frame-rate for static moments and quality-speed trade-off } |
| 130 |
property MinFrameRate: Single read GetMinFrameRate write SetMinFrameRate; |
| 131 |
|
| 132 |
strict private FFdOcclusionCulling: TSFBool; |
| 133 |
{ Internal wrapper for property @code(OcclusionCulling). This wrapper API may change, we advise to access simpler @code(OcclusionCulling) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 134 |
public property FdOcclusionCulling: TSFBool read FFdOcclusionCulling; |
| 135 |
{ If TRUE and occlusion culling supported, objects occluding less than the threshold below are ignored } |
| 136 |
property OcclusionCulling: Boolean read GetOcclusionCulling write SetOcclusionCulling; |
| 137 |
|
| 138 |
strict private FFdOcclusionVisibilityFactor: TSFFloat; |
| 139 |
{ Internal wrapper for property @code(OcclusionVisibilityFactor). This wrapper API may change, we advise to access simpler @code(OcclusionVisibilityFactor) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 140 |
public property FdOcclusionVisibilityFactor: TSFFloat read FFdOcclusionVisibilityFactor; |
| 141 |
{ Experimenal: Factor of occlusion culling for controlling speed-performance trade-off } |
| 142 |
property OcclusionVisibilityFactor: Single read GetOcclusionVisibilityFactor write SetOcclusionVisibilityFactor; |
| 143 |
|
| 144 |
strict private FFdOcclusionVisibilityThreshold: TSFFloat; |
| 145 |
{ Internal wrapper for property @code(OcclusionVisibilityThreshold). This wrapper API may change, we advise to access simpler @code(OcclusionVisibilityThreshold) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 146 |
public property FdOcclusionVisibilityThreshold: TSFFloat read FFdOcclusionVisibilityThreshold; |
| 147 |
{ Objects occluding less than the threshold below are ignored } |
| 148 |
property OcclusionVisibilityThreshold: Single read GetOcclusionVisibilityThreshold write SetOcclusionVisibilityThreshold; |
| 149 |
|
| 150 |
strict private FFdShadowExcludeTransparentObjects: TSFBool; |
| 151 |
{ Internal wrapper for property @code(ShadowExcludeTransparentObjects). This wrapper API may change, we advise to access simpler @code(ShadowExcludeTransparentObjects) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 152 |
public property FdShadowExcludeTransparentObjects: TSFBool read FFdShadowExcludeTransparentObjects; |
| 153 |
{ Transparent objects like glass do not throw much shadow, enable this IR convenience flag with TRUE } |
| 154 |
property ShadowExcludeTransparentObjects: Boolean read GetShadowExcludeTransparentObjects write SetShadowExcludeTransparentObjects; |
| 155 |
|
| 156 |
strict private FFdSmallFeatureCulling: TSFBool; |
| 157 |
{ Internal wrapper for property @code(SmallFeatureCulling). This wrapper API may change, we advise to access simpler @code(SmallFeatureCulling) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 158 |
public property FdSmallFeatureCulling: TSFBool read FFdSmallFeatureCulling; |
| 159 |
{ If TRUE, objects smaller than the threshold below are ignored } |
| 160 |
property SmallFeatureCulling: Boolean read GetSmallFeatureCulling write SetSmallFeatureCulling; |
| 161 |
|
| 162 |
strict private FFdSmallFeatureFactor: TSFFloat; |
| 163 |
{ Internal wrapper for property @code(SmallFeatureFactor). This wrapper API may change, we advise to access simpler @code(SmallFeatureFactor) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 164 |
public property FdSmallFeatureFactor: TSFFloat read FFdSmallFeatureFactor; |
| 165 |
{ Experimenal: Factor of small feature culling for controlling speed-performance trade-off } |
| 166 |
property SmallFeatureFactor: Single read GetSmallFeatureFactor write SetSmallFeatureFactor; |
| 167 |
|
| 168 |
strict private FFdSmallFeatureThreshold: TSFFloat; |
| 169 |
{ Internal wrapper for property @code(SmallFeatureThreshold). This wrapper API may change, we advise to access simpler @code(SmallFeatureThreshold) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 170 |
public property FdSmallFeatureThreshold: TSFFloat read FFdSmallFeatureThreshold; |
| 171 |
{ Objects smaller than the threshold below are ignored } |
| 172 |
property SmallFeatureThreshold: Single read GetSmallFeatureThreshold write SetSmallFeatureThreshold; |
| 173 |
|
| 174 |
strict private FFdSortTrans: TSFBool; |
| 175 |
{ Internal wrapper for property @code(SortTrans). This wrapper API may change, we advise to access simpler @code(SortTrans) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 176 |
public property FdSortTrans: TSFBool read FFdSortTrans; |
| 177 |
{ If TRUE, transparent objects are sorted from back to front (allows explicitly disabling sorting) } |
| 178 |
property SortTrans: Boolean read GetSortTrans write SetSortTrans; |
| 179 |
|
| 180 |
strict private FFdSSAO: TSFBool; |
| 181 |
{ Internal wrapper for property @code(SSAO). This wrapper API may change, we advise to access simpler @code(SSAO) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 182 |
public property FdSSAO: TSFBool read FFdSSAO; |
| 183 |
{ Flag to enable Screen Space Ambient Occlusion } |
| 184 |
property SSAO: Boolean read GetSSAO write SetSSAO; |
| 185 |
|
| 186 |
strict private FFdSSAOamount: TSFFloat; |
| 187 |
{ Internal wrapper for property @code(SSAOamount). This wrapper API may change, we advise to access simpler @code(SSAOamount) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 188 |
public property FdSSAOamount: TSFFloat read FFdSSAOamount; |
| 189 |
{ Value that determines the amount of contribution of SSAO (from 0 to 1) } |
| 190 |
property SSAOamount: Single read GetSSAOamount write SetSSAOamount; |
| 191 |
|
| 192 |
strict private FFdSSAOblurDepthTreshold: TSFFloat; |
| 193 |
{ Internal wrapper for property @code(SSAOblurDepthTreshold). This wrapper API may change, we advise to access simpler @code(SSAOblurDepthTreshold) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 194 |
public property FdSSAOblurDepthTreshold: TSFFloat read FFdSSAOblurDepthTreshold; |
| 195 |
{ Value that determines the maximum depth difference for the SSAO blurring pass. Pixels with higher depth difference to the filer kernel center are not incorporated into the average. } |
| 196 |
property SSAOblurDepthTreshold: Single read GetSSAOblurDepthTreshold write SetSSAOblurDepthTreshold; |
| 197 |
|
| 198 |
strict private FFdSSAOradius: TSFFloat; |
| 199 |
{ Internal wrapper for property @code(SSAOradius). This wrapper API may change, we advise to access simpler @code(SSAOradius) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 200 |
public property FdSSAOradius: TSFFloat read FFdSSAOradius; |
| 201 |
{ Value that determines the radius in which the SSAO is sampled in world space } |
| 202 |
property SSAOradius: Single read GetSSAOradius write SetSSAOradius; |
| 203 |
|
| 204 |
strict private FFdSSAOrandomTextureSize: TSFFloat; |
| 205 |
{ Internal wrapper for property @code(SSAOrandomTextureSize). This wrapper API may change, we advise to access simpler @code(SSAOrandomTextureSize) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 206 |
public property FdSSAOrandomTextureSize: TSFFloat read FFdSSAOrandomTextureSize; |
| 207 |
{ Value that determines the size of the random texture used for sparse sampling of SSAO } |
| 208 |
property SSAOrandomTextureSize: Single read GetSSAOrandomTextureSize write SetSSAOrandomTextureSize; |
| 209 |
|
| 210 |
strict private FFdTessellationDetailCulling: TSFBool; |
| 211 |
{ Internal wrapper for property @code(TessellationDetailCulling). This wrapper API may change, we advise to access simpler @code(TessellationDetailCulling) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 212 |
public property FdTessellationDetailCulling: TSFBool read FFdTessellationDetailCulling; |
| 213 |
{ If TRUE, shape tesselation is lowered as long as resulting error is lower than threshold } |
| 214 |
property TessellationDetailCulling: Boolean read GetTessellationDetailCulling write SetTessellationDetailCulling; |
| 215 |
|
| 216 |
strict private FFdTessellationErrorFactor: TSFFloat; |
| 217 |
{ Internal wrapper for property @code(TessellationErrorFactor). This wrapper API may change, we advise to access simpler @code(TessellationErrorFactor) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 218 |
public property FdTessellationErrorFactor: TSFFloat read FFdTessellationErrorFactor; |
| 219 |
{ Experimenal: Factor of tesselation error for controlling speed-performance trade-off } |
| 220 |
property TessellationErrorFactor: Single read GetTessellationErrorFactor write SetTessellationErrorFactor; |
| 221 |
|
| 222 |
strict private FFdTessellationErrorThreshold: TSFFloat; |
| 223 |
{ Internal wrapper for property @code(TessellationErrorThreshold). This wrapper API may change, we advise to access simpler @code(TessellationErrorThreshold) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 224 |
public property FdTessellationErrorThreshold: TSFFloat read FFdTessellationErrorThreshold; |
| 225 |
{ Shape tesselation is lowered as long as resulting error is lower than threshold } |
| 226 |
property TessellationErrorThreshold: Single read GetTessellationErrorThreshold write SetTessellationErrorThreshold; |
| 227 |
|
| 228 |
strict private FFdTonemapping: TSFStringEnum; |
| 229 |
{ Internal wrapper for property @code(Tonemapping). This wrapper API may change, we advise to access simpler @code(Tonemapping) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 230 |
public property FdTonemapping: TSFStringEnum read FFdTonemapping; |
| 231 |
{ Specifies the used tonemapping operator. Note that X3DOM and Castle Game Engine support a bit different tone mapping options. } |
| 232 |
property Tonemapping: TToneMapping read GetTonemapping write SetTonemapping; |
| 233 |
|
| 234 |
strict private FFdUserDataFactor: TSFFloat; |
| 235 |
{ Internal wrapper for property @code(UserDataFactor). This wrapper API may change, we advise to access simpler @code(UserDataFactor) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 236 |
public property FdUserDataFactor: TSFFloat read FFdUserDataFactor; |
| 237 |
{ Experimenal: Factor of user data for controlling speed-performance trade-off } |
| 238 |
property UserDataFactor: Single read GetUserDataFactor write SetUserDataFactor; |
| 239 |
|
| 240 |
{$endif read_interface} |
| 241 |
|
| 242 |
{$ifdef read_implementation} |
| 243 |
|
| 244 |
{ TEnvironmentNode ----------------------------------------------- } |
| 245 |
|
| 246 |
function TEnvironmentNode.GetEnableARC: Boolean; |
| 247 |
begin |
| 248 |
Result := FdEnableARC.Value; |
| 249 |
end; |
| 250 |
|
| 251 |
procedure TEnvironmentNode.SetEnableARC(const Value: Boolean); |
| 252 |
begin |
| 253 |
FdEnableARC.Send(Value); |
| 254 |
end; |
| 255 |
|
| 256 |
function TEnvironmentNode.GetFrustumCulling: Boolean; |
| 257 |
begin |
| 258 |
Result := FdFrustumCulling.Value; |
| 259 |
end; |
| 260 |
|
| 261 |
procedure TEnvironmentNode.SetFrustumCulling(const Value: Boolean); |
| 262 |
begin |
| 263 |
FdFrustumCulling.Send(Value); |
| 264 |
end; |
| 265 |
|
| 266 |
function TEnvironmentNode.GetGammaCorrectionDefault: String; |
| 267 |
begin |
| 268 |
Result := FdGammaCorrectionDefault.Value; |
| 269 |
end; |
| 270 |
|
| 271 |
procedure TEnvironmentNode.SetGammaCorrectionDefault(const Value: String); |
| 272 |
begin |
| 273 |
FdGammaCorrectionDefault.Send(Value); |
| 274 |
end; |
| 275 |
|
| 276 |
function TEnvironmentNode.GetLowPriorityCulling: Boolean; |
| 277 |
begin |
| 278 |
Result := FdLowPriorityCulling.Value; |
| 279 |
end; |
| 280 |
|
| 281 |
procedure TEnvironmentNode.SetLowPriorityCulling(const Value: Boolean); |
| 282 |
begin |
| 283 |
FdLowPriorityCulling.Send(Value); |
| 284 |
end; |
| 285 |
|
| 286 |
function TEnvironmentNode.GetLowPriorityFactor: Single; |
| 287 |
begin |
| 288 |
Result := FdLowPriorityFactor.Value; |
| 289 |
end; |
| 290 |
|
| 291 |
procedure TEnvironmentNode.SetLowPriorityFactor(const Value: Single); |
| 292 |
begin |
| 293 |
FdLowPriorityFactor.Send(Value); |
| 294 |
end; |
| 295 |
|
| 296 |
function TEnvironmentNode.GetLowPriorityThreshold: Single; |
| 297 |
begin |
| 298 |
Result := FdLowPriorityThreshold.Value; |
| 299 |
end; |
| 300 |
|
| 301 |
procedure TEnvironmentNode.SetLowPriorityThreshold(const Value: Single); |
| 302 |
begin |
| 303 |
FdLowPriorityThreshold.Send(Value); |
| 304 |
end; |
| 305 |
|
| 306 |
function TEnvironmentNode.GetMaxFrameRate: Single; |
| 307 |
begin |
| 308 |
Result := FdMaxFrameRate.Value; |
| 309 |
end; |
| 310 |
|
| 311 |
procedure TEnvironmentNode.SetMaxFrameRate(const Value: Single); |
| 312 |
begin |
| 313 |
FdMaxFrameRate.Send(Value); |
| 314 |
end; |
| 315 |
|
| 316 |
function TEnvironmentNode.GetMinFrameRate: Single; |
| 317 |
begin |
| 318 |
Result := FdMinFrameRate.Value; |
| 319 |
end; |
| 320 |
|
| 321 |
procedure TEnvironmentNode.SetMinFrameRate(const Value: Single); |
| 322 |
begin |
| 323 |
FdMinFrameRate.Send(Value); |
| 324 |
end; |
| 325 |
|
| 326 |
function TEnvironmentNode.GetOcclusionCulling: Boolean; |
| 327 |
begin |
| 328 |
Result := FdOcclusionCulling.Value; |
| 329 |
end; |
| 330 |
|
| 331 |
procedure TEnvironmentNode.SetOcclusionCulling(const Value: Boolean); |
| 332 |
begin |
| 333 |
FdOcclusionCulling.Send(Value); |
| 334 |
end; |
| 335 |
|
| 336 |
function TEnvironmentNode.GetOcclusionVisibilityFactor: Single; |
| 337 |
begin |
| 338 |
Result := FdOcclusionVisibilityFactor.Value; |
| 339 |
end; |
| 340 |
|
| 341 |
procedure TEnvironmentNode.SetOcclusionVisibilityFactor(const Value: Single); |
| 342 |
begin |
| 343 |
FdOcclusionVisibilityFactor.Send(Value); |
| 344 |
end; |
| 345 |
|
| 346 |
function TEnvironmentNode.GetOcclusionVisibilityThreshold: Single; |
| 347 |
begin |
| 348 |
Result := FdOcclusionVisibilityThreshold.Value; |
| 349 |
end; |
| 350 |
|
| 351 |
procedure TEnvironmentNode.SetOcclusionVisibilityThreshold(const Value: Single); |
| 352 |
begin |
| 353 |
FdOcclusionVisibilityThreshold.Send(Value); |
| 354 |
end; |
| 355 |
|
| 356 |
function TEnvironmentNode.GetShadowExcludeTransparentObjects: Boolean; |
| 357 |
begin |
| 358 |
Result := FdShadowExcludeTransparentObjects.Value; |
| 359 |
end; |
| 360 |
|
| 361 |
procedure TEnvironmentNode.SetShadowExcludeTransparentObjects(const Value: Boolean); |
| 362 |
begin |
| 363 |
FdShadowExcludeTransparentObjects.Send(Value); |
| 364 |
end; |
| 365 |
|
| 366 |
function TEnvironmentNode.GetSmallFeatureCulling: Boolean; |
| 367 |
begin |
| 368 |
Result := FdSmallFeatureCulling.Value; |
| 369 |
end; |
| 370 |
|
| 371 |
procedure TEnvironmentNode.SetSmallFeatureCulling(const Value: Boolean); |
| 372 |
begin |
| 373 |
FdSmallFeatureCulling.Send(Value); |
| 374 |
end; |
| 375 |
|
| 376 |
function TEnvironmentNode.GetSmallFeatureFactor: Single; |
| 377 |
begin |
| 378 |
Result := FdSmallFeatureFactor.Value; |
| 379 |
end; |
| 380 |
|
| 381 |
procedure TEnvironmentNode.SetSmallFeatureFactor(const Value: Single); |
| 382 |
begin |
| 383 |
FdSmallFeatureFactor.Send(Value); |
| 384 |
end; |
| 385 |
|
| 386 |
function TEnvironmentNode.GetSmallFeatureThreshold: Single; |
| 387 |
begin |
| 388 |
Result := FdSmallFeatureThreshold.Value; |
| 389 |
end; |
| 390 |
|
| 391 |
procedure TEnvironmentNode.SetSmallFeatureThreshold(const Value: Single); |
| 392 |
begin |
| 393 |
FdSmallFeatureThreshold.Send(Value); |
| 394 |
end; |
| 395 |
|
| 396 |
function TEnvironmentNode.GetSortTrans: Boolean; |
| 397 |
begin |
| 398 |
Result := FdSortTrans.Value; |
| 399 |
end; |
| 400 |
|
| 401 |
procedure TEnvironmentNode.SetSortTrans(const Value: Boolean); |
| 402 |
begin |
| 403 |
FdSortTrans.Send(Value); |
| 404 |
end; |
| 405 |
|
| 406 |
function TEnvironmentNode.GetSSAO: Boolean; |
| 407 |
begin |
| 408 |
Result := FdSSAO.Value; |
| 409 |
end; |
| 410 |
|
| 411 |
procedure TEnvironmentNode.SetSSAO(const Value: Boolean); |
| 412 |
begin |
| 413 |
FdSSAO.Send(Value); |
| 414 |
end; |
| 415 |
|
| 416 |
function TEnvironmentNode.GetSSAOamount: Single; |
| 417 |
begin |
| 418 |
Result := FdSSAOamount.Value; |
| 419 |
end; |
| 420 |
|
| 421 |
procedure TEnvironmentNode.SetSSAOamount(const Value: Single); |
| 422 |
begin |
| 423 |
FdSSAOamount.Send(Value); |
| 424 |
end; |
| 425 |
|
| 426 |
function TEnvironmentNode.GetSSAOblurDepthTreshold: Single; |
| 427 |
begin |
| 428 |
Result := FdSSAOblurDepthTreshold.Value; |
| 429 |
end; |
| 430 |
|
| 431 |
procedure TEnvironmentNode.SetSSAOblurDepthTreshold(const Value: Single); |
| 432 |
begin |
| 433 |
FdSSAOblurDepthTreshold.Send(Value); |
| 434 |
end; |
| 435 |
|
| 436 |
function TEnvironmentNode.GetSSAOradius: Single; |
| 437 |
begin |
| 438 |
Result := FdSSAOradius.Value; |
| 439 |
end; |
| 440 |
|
| 441 |
procedure TEnvironmentNode.SetSSAOradius(const Value: Single); |
| 442 |
begin |
| 443 |
FdSSAOradius.Send(Value); |
| 444 |
end; |
| 445 |
|
| 446 |
function TEnvironmentNode.GetSSAOrandomTextureSize: Single; |
| 447 |
begin |
| 448 |
Result := FdSSAOrandomTextureSize.Value; |
| 449 |
end; |
| 450 |
|
| 451 |
procedure TEnvironmentNode.SetSSAOrandomTextureSize(const Value: Single); |
| 452 |
begin |
| 453 |
FdSSAOrandomTextureSize.Send(Value); |
| 454 |
end; |
| 455 |
|
| 456 |
function TEnvironmentNode.GetTessellationDetailCulling: Boolean; |
| 457 |
begin |
| 458 |
Result := FdTessellationDetailCulling.Value; |
| 459 |
end; |
| 460 |
|
| 461 |
procedure TEnvironmentNode.SetTessellationDetailCulling(const Value: Boolean); |
| 462 |
begin |
| 463 |
FdTessellationDetailCulling.Send(Value); |
| 464 |
end; |
| 465 |
|
| 466 |
function TEnvironmentNode.GetTessellationErrorFactor: Single; |
| 467 |
begin |
| 468 |
Result := FdTessellationErrorFactor.Value; |
| 469 |
end; |
| 470 |
|
| 471 |
procedure TEnvironmentNode.SetTessellationErrorFactor(const Value: Single); |
| 472 |
begin |
| 473 |
FdTessellationErrorFactor.Send(Value); |
| 474 |
end; |
| 475 |
|
| 476 |
function TEnvironmentNode.GetTessellationErrorThreshold: Single; |
| 477 |
begin |
| 478 |
Result := FdTessellationErrorThreshold.Value; |
| 479 |
end; |
| 480 |
|
| 481 |
procedure TEnvironmentNode.SetTessellationErrorThreshold(const Value: Single); |
| 482 |
begin |
| 483 |
FdTessellationErrorThreshold.Send(Value); |
| 484 |
end; |
| 485 |
|
| 486 |
function TEnvironmentNode.GetTonemapping: TToneMapping; |
| 487 |
begin |
| 488 |
Result := TToneMapping(FdTonemapping.EnumValue); |
| 489 |
end; |
| 490 |
|
| 491 |
procedure TEnvironmentNode.SetTonemapping(const Value: TToneMapping); |
| 492 |
begin |
| 493 |
FdTonemapping.SendEnumValue(Ord(Value)); |
| 494 |
end; |
| 495 |
|
| 496 |
function TEnvironmentNode.GetUserDataFactor: Single; |
| 497 |
begin |
| 498 |
Result := FdUserDataFactor.Value; |
| 499 |
end; |
| 500 |
|
| 501 |
procedure TEnvironmentNode.SetUserDataFactor(const Value: Single); |
| 502 |
begin |
| 503 |
FdUserDataFactor.Send(Value); |
| 504 |
end; |
| 505 |
|
| 506 |
class function TEnvironmentNode.ClassX3DType: String; |
| 507 |
begin |
| 508 |
Result := 'Environment'; |
| 509 |
end; |
| 510 |
|
| 511 |
procedure TEnvironmentNode.CreateNode; |
| 512 |
begin |
| 513 |
inherited; |
| 514 |
|
| 515 |
FFdEnableARC := TSFBool.Create(Self, True, 'enableARC', false); |
| 516 |
FdEnableARC.ChangeAlways := chVisibleNonGeometry; |
| 517 |
AddField(FFdEnableARC); |
| 518 |
|
| 519 |
FFdFrustumCulling := TSFBool.Create(Self, True, 'frustumCulling', true); |
| 520 |
FdFrustumCulling.ChangeAlways := chVisibleNonGeometry; |
| 521 |
AddField(FFdFrustumCulling); |
| 522 |
|
| 523 |
FFdGammaCorrectionDefault := TSFString.Create(Self, True, 'gammaCorrectionDefault', 'linear'); |
| 524 |
FdGammaCorrectionDefault.ChangeAlways := chVisibleNonGeometry; |
| 525 |
AddField(FFdGammaCorrectionDefault); |
| 526 |
|
| 527 |
FFdLowPriorityCulling := TSFBool.Create(Self, True, 'lowPriorityCulling', false); |
| 528 |
FdLowPriorityCulling.ChangeAlways := chVisibleNonGeometry; |
| 529 |
AddField(FFdLowPriorityCulling); |
| 530 |
|
| 531 |
FFdLowPriorityFactor := TSFFloat.Create(Self, True, 'lowPriorityFactor', -1); |
| 532 |
FdLowPriorityFactor.ChangeAlways := chVisibleNonGeometry; |
| 533 |
AddField(FFdLowPriorityFactor); |
| 534 |
|
| 535 |
FFdLowPriorityThreshold := TSFFloat.Create(Self, True, 'lowPriorityThreshold', 1.0); |
| 536 |
FdLowPriorityThreshold.ChangeAlways := chVisibleNonGeometry; |
| 537 |
FdLowPriorityThreshold.MustBeNonnegative := true; |
| 538 |
AddField(FFdLowPriorityThreshold); |
| 539 |
|
| 540 |
FFdMaxFrameRate := TSFFloat.Create(Self, True, 'maxFrameRate', 62.5); |
| 541 |
FdMaxFrameRate.ChangeAlways := chVisibleNonGeometry; |
| 542 |
AddField(FFdMaxFrameRate); |
| 543 |
|
| 544 |
FFdMinFrameRate := TSFFloat.Create(Self, True, 'minFrameRate', 1.0); |
| 545 |
FdMinFrameRate.ChangeAlways := chVisibleNonGeometry; |
| 546 |
AddField(FFdMinFrameRate); |
| 547 |
|
| 548 |
FFdOcclusionCulling := TSFBool.Create(Self, True, 'occlusionCulling', false); |
| 549 |
FdOcclusionCulling.ChangeAlways := chVisibleNonGeometry; |
| 550 |
AddField(FFdOcclusionCulling); |
| 551 |
|
| 552 |
FFdOcclusionVisibilityFactor := TSFFloat.Create(Self, True, 'occlusionVisibilityFactor', -1); |
| 553 |
FdOcclusionVisibilityFactor.ChangeAlways := chVisibleNonGeometry; |
| 554 |
AddField(FFdOcclusionVisibilityFactor); |
| 555 |
|
| 556 |
FFdOcclusionVisibilityThreshold := TSFFloat.Create(Self, True, 'occlusionVisibilityThreshold', 0.0); |
| 557 |
FdOcclusionVisibilityThreshold.ChangeAlways := chVisibleNonGeometry; |
| 558 |
FdOcclusionVisibilityThreshold.MustBeNonnegative := true; |
| 559 |
AddField(FFdOcclusionVisibilityThreshold); |
| 560 |
|
| 561 |
FFdShadowExcludeTransparentObjects := TSFBool.Create(Self, True, 'shadowExcludeTransparentObjects', false); |
| 562 |
FdShadowExcludeTransparentObjects.ChangeAlways := chVisibleNonGeometry; |
| 563 |
AddField(FFdShadowExcludeTransparentObjects); |
| 564 |
|
| 565 |
FFdSmallFeatureCulling := TSFBool.Create(Self, True, 'smallFeatureCulling', false); |
| 566 |
FdSmallFeatureCulling.ChangeAlways := chVisibleNonGeometry; |
| 567 |
AddField(FFdSmallFeatureCulling); |
| 568 |
|
| 569 |
FFdSmallFeatureFactor := TSFFloat.Create(Self, True, 'smallFeatureFactor', -1); |
| 570 |
FdSmallFeatureFactor.ChangeAlways := chVisibleNonGeometry; |
| 571 |
AddField(FFdSmallFeatureFactor); |
| 572 |
|
| 573 |
FFdSmallFeatureThreshold := TSFFloat.Create(Self, True, 'smallFeatureThreshold', 1.0); |
| 574 |
FdSmallFeatureThreshold.ChangeAlways := chVisibleNonGeometry; |
| 575 |
AddField(FFdSmallFeatureThreshold); |
| 576 |
|
| 577 |
FFdSortTrans := TSFBool.Create(Self, True, 'sortTrans', true); |
| 578 |
FdSortTrans.ChangeAlways := chVisibleNonGeometry; |
| 579 |
AddField(FFdSortTrans); |
| 580 |
|
| 581 |
FFdSSAO := TSFBool.Create(Self, True, 'SSAO', false); |
| 582 |
FdSSAO.ChangeAlways := chVisibleNonGeometry; |
| 583 |
AddField(FFdSSAO); |
| 584 |
|
| 585 |
FFdSSAOamount := TSFFloat.Create(Self, True, 'SSAOamount', 0); |
| 586 |
FdSSAOamount.ChangeAlways := chVisibleNonGeometry; |
| 587 |
AddField(FFdSSAOamount); |
| 588 |
|
| 589 |
FFdSSAOblurDepthTreshold := TSFFloat.Create(Self, True, 'SSAOblurDepthTreshold', 5); |
| 590 |
FdSSAOblurDepthTreshold.ChangeAlways := chVisibleNonGeometry; |
| 591 |
AddField(FFdSSAOblurDepthTreshold); |
| 592 |
|
| 593 |
FFdSSAOradius := TSFFloat.Create(Self, True, 'SSAOradius', 4); |
| 594 |
FdSSAOradius.ChangeAlways := chVisibleNonGeometry; |
| 595 |
AddField(FFdSSAOradius); |
| 596 |
|
| 597 |
FFdSSAOrandomTextureSize := TSFFloat.Create(Self, True, 'SSAOrandomTextureSize', 4); |
| 598 |
FdSSAOrandomTextureSize.ChangeAlways := chVisibleNonGeometry; |
| 599 |
AddField(FFdSSAOrandomTextureSize); |
| 600 |
|
| 601 |
FFdTessellationDetailCulling := TSFBool.Create(Self, True, 'tessellationDetailCulling', false); |
| 602 |
FdTessellationDetailCulling.ChangeAlways := chVisibleNonGeometry; |
| 603 |
AddField(FFdTessellationDetailCulling); |
| 604 |
|
| 605 |
FFdTessellationErrorFactor := TSFFloat.Create(Self, True, 'tessellationErrorFactor', -1); |
| 606 |
FdTessellationErrorFactor.ChangeAlways := chVisibleNonGeometry; |
| 607 |
AddField(FFdTessellationErrorFactor); |
| 608 |
|
| 609 |
FFdTessellationErrorThreshold := TSFFloat.Create(Self, True, 'tessellationErrorThreshold', 0.0); |
| 610 |
FdTessellationErrorThreshold.ChangeAlways := chVisibleNonGeometry; |
| 611 |
FdTessellationErrorThreshold.MustBeNonnegative := true; |
| 612 |
AddField(FFdTessellationErrorThreshold); |
| 613 |
|
| 614 |
FFdTonemapping := TSFStringEnum.Create(Self, True, 'tonemapping', @ToneMappingNames, Ord(High(ToneMappingNames)) + 1, Ord(tmNone)); |
| 615 |
FdTonemapping.ChangeAlways := chVisibleNonGeometry; |
| 616 |
AddField(FFdTonemapping); |
| 617 |
|
| 618 |
FFdUserDataFactor := TSFFloat.Create(Self, True, 'userDataFactor', -1); |
| 619 |
FdUserDataFactor.ChangeAlways := chVisibleNonGeometry; |
| 620 |
AddField(FFdUserDataFactor); |
| 621 |
|
| 622 |
DefaultContainerField := 'environment'; |
| 623 |
end; |
| 624 |
|
| 625 |
{$endif read_implementation} |