Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_commonsurfaceshader.inc

raw
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 GetAlphaFactor: Single;
28 procedure SetAlphaFactor(const Value: Single);
29 function GetAlphaTextureId: Integer;
30 procedure SetAlphaTextureId(const Value: Integer);
31 function GetAlphaTextureCoordinatesId: Integer;
32 procedure SetAlphaTextureCoordinatesId(const Value: Integer);
33 function GetAlphaTextureChannelMask: String;
34 procedure SetAlphaTextureChannelMask(const Value: String);
35 function GetAlphaTexture: TAbstractTextureNode;
36 procedure SetAlphaTexture(const Value: TAbstractTextureNode);
37 function GetAmbientFactor: TVector3;
38 procedure SetAmbientFactor(const Value: TVector3);
39 function GetAmbientTextureId: Integer;
40 procedure SetAmbientTextureId(const Value: Integer);
41 function GetAmbientTextureCoordinatesId: Integer;
42 procedure SetAmbientTextureCoordinatesId(const Value: Integer);
43 function GetAmbientTextureChannelMask: String;
44 procedure SetAmbientTextureChannelMask(const Value: String);
45 function GetAmbientTexture: TAbstractTextureNode;
46 procedure SetAmbientTexture(const Value: TAbstractTextureNode);
47 function GetDiffuseFactor: TVector3;
48 procedure SetDiffuseFactor(const Value: TVector3);
49 function GetDiffuseTextureId: Integer;
50 procedure SetDiffuseTextureId(const Value: Integer);
51 function GetDiffuseTextureCoordinatesId: Integer;
52 procedure SetDiffuseTextureCoordinatesId(const Value: Integer);
53 function GetDiffuseTextureChannelMask: String;
54 procedure SetDiffuseTextureChannelMask(const Value: String);
55 function GetDiffuseTexture: TAbstractTextureNode;
56 procedure SetDiffuseTexture(const Value: TAbstractTextureNode);
57 function GetDiffuseDisplacementTexture: TAbstractTextureNode;
58 procedure SetDiffuseDisplacementTexture(const Value: TAbstractTextureNode);
59 function GetDisplacementAxis: String;
60 procedure SetDisplacementAxis(const Value: String);
61 function GetDisplacementFactor: Single;
62 procedure SetDisplacementFactor(const Value: Single);
63 function GetDisplacementTextureId: Integer;
64 procedure SetDisplacementTextureId(const Value: Integer);
65 function GetDisplacementTextureCoordinatesId: Integer;
66 procedure SetDisplacementTextureCoordinatesId(const Value: Integer);
67 function GetDisplacementTexture: TAbstractTextureNode;
68 procedure SetDisplacementTexture(const Value: TAbstractTextureNode);
69 function GetEmissiveFactor: TVector3;
70 procedure SetEmissiveFactor(const Value: TVector3);
71 function GetEmissiveTextureId: Integer;
72 procedure SetEmissiveTextureId(const Value: Integer);
73 function GetEmissiveTextureCoordinatesId: Integer;
74 procedure SetEmissiveTextureCoordinatesId(const Value: Integer);
75 function GetEmissiveTextureChannelMask: String;
76 procedure SetEmissiveTextureChannelMask(const Value: String);
77 function GetEmissiveTexture: TAbstractTextureNode;
78 procedure SetEmissiveTexture(const Value: TAbstractTextureNode);
79 function GetEnvironmentFactor: TVector3;
80 procedure SetEnvironmentFactor(const Value: TVector3);
81 function GetEnvironmentTextureId: Integer;
82 procedure SetEnvironmentTextureId(const Value: Integer);
83 function GetEnvironmentTextureCoordinatesId: Integer;
84 procedure SetEnvironmentTextureCoordinatesId(const Value: Integer);
85 function GetEnvironmentTextureChannelMask: String;
86 procedure SetEnvironmentTextureChannelMask(const Value: String);
87 function GetEnvironmentTexture: TAbstractEnvironmentTextureNode;
88 procedure SetEnvironmentTexture(const Value: TAbstractEnvironmentTextureNode);
89 function GetMultiDiffuseAlphaTexture: TAbstractTextureNode;
90 procedure SetMultiDiffuseAlphaTexture(const Value: TAbstractTextureNode);
91 function GetMultiEmmisiveAmbientIntensityTexture: TAbstractTextureNode;
92 procedure SetMultiEmmisiveAmbientIntensityTexture(const Value: TAbstractTextureNode);
93 function GetMultiSpecularShininessTexture: TAbstractTextureNode;
94 procedure SetMultiSpecularShininessTexture(const Value: TAbstractTextureNode);
95 function GetMultiVisibilityTexture: TAbstractTextureNode;
96 procedure SetMultiVisibilityTexture(const Value: TAbstractTextureNode);
97 function GetNormalFormat: String;
98 procedure SetNormalFormat(const Value: String);
99 function GetNormalSpace: String;
100 procedure SetNormalSpace(const Value: String);
101 function GetNormalTextureId: Integer;
102 procedure SetNormalTextureId(const Value: Integer);
103 function GetNormalTextureCoordinatesId: Integer;
104 procedure SetNormalTextureCoordinatesId(const Value: Integer);
105 function GetNormalTextureChannelMask: String;
106 procedure SetNormalTextureChannelMask(const Value: String);
107 function GetNormalScale: TVector3;
108 procedure SetNormalScale(const Value: TVector3);
109 function GetNormalBias: TVector3;
110 procedure SetNormalBias(const Value: TVector3);
111 function GetNormalTexture: TAbstractTextureNode;
112 procedure SetNormalTexture(const Value: TAbstractTextureNode);
113 function GetNormalTextureParallaxHeight: Single;
114 procedure SetNormalTextureParallaxHeight(const Value: Single);
115 function GetReflectionFactor: TVector3;
116 procedure SetReflectionFactor(const Value: TVector3);
117 function GetReflectionTextureId: Integer;
118 procedure SetReflectionTextureId(const Value: Integer);
119 function GetReflectionTextureCoordinatesId: Integer;
120 procedure SetReflectionTextureCoordinatesId(const Value: Integer);
121 function GetReflectionTextureChannelMask: String;
122 procedure SetReflectionTextureChannelMask(const Value: String);
123 function GetReflectionTexture: TAbstractTextureNode;
124 procedure SetReflectionTexture(const Value: TAbstractTextureNode);
125 function GetShininessFactor: Single;
126 procedure SetShininessFactor(const Value: Single);
127 function GetShininessTextureId: Integer;
128 procedure SetShininessTextureId(const Value: Integer);
129 function GetShininessTextureCoordinatesId: Integer;
130 procedure SetShininessTextureCoordinatesId(const Value: Integer);
131 function GetShininessTextureChannelMask: String;
132 procedure SetShininessTextureChannelMask(const Value: String);
133 function GetShininessTexture: TAbstractTextureNode;
134 procedure SetShininessTexture(const Value: TAbstractTextureNode);
135 function GetSpecularFactor: TVector3;
136 procedure SetSpecularFactor(const Value: TVector3);
137 function GetSpecularTextureId: Integer;
138 procedure SetSpecularTextureId(const Value: Integer);
139 function GetSpecularTextureCoordinatesId: Integer;
140 procedure SetSpecularTextureCoordinatesId(const Value: Integer);
141 function GetSpecularTextureChannelMask: String;
142 procedure SetSpecularTextureChannelMask(const Value: String);
143 function GetSpecularTexture: TAbstractTextureNode;
144 procedure SetSpecularTexture(const Value: TAbstractTextureNode);
145 function GetTransmissionFactor: TVector3;
146 procedure SetTransmissionFactor(const Value: TVector3);
147 function GetTransmissionTextureId: Integer;
148 procedure SetTransmissionTextureId(const Value: Integer);
149 function GetTransmissionTextureCoordinatesId: Integer;
150 procedure SetTransmissionTextureCoordinatesId(const Value: Integer);
151 function GetTransmissionTextureChannelMask: String;
152 procedure SetTransmissionTextureChannelMask(const Value: String);
153 function GetTransmissionTexture: TAbstractTextureNode;
154 procedure SetTransmissionTexture(const Value: TAbstractTextureNode);
155 function GetTangentTextureCoordinatesId: Integer;
156 procedure SetTangentTextureCoordinatesId(const Value: Integer);
157 function GetBinormalTextureCoordinatesId: Integer;
158 procedure SetBinormalTextureCoordinatesId(const Value: Integer);
159 function GetInvertAlphaTexture: Boolean;
160 procedure SetInvertAlphaTexture(const Value: Boolean);
161 function GetRelativeIndexOfRefraction: Single;
162 procedure SetRelativeIndexOfRefraction(const Value: Single);
163 function GetFresnelBlend: Single;
164 procedure SetFresnelBlend(const Value: Single);
165 public
166 { Create node fields and events. }
167 procedure CreateNode; override;
168 class function ClassX3DType: String; override;
169
170 strict private FFdAlphaFactor: TSFFloat;
171 { Internal wrapper for property @code(AlphaFactor). This wrapper API may change, we advise to access simpler @code(AlphaFactor) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
172 public property FdAlphaFactor: TSFFloat read FFdAlphaFactor;
173 { }
174 property AlphaFactor: Single read GetAlphaFactor write SetAlphaFactor;
175
176 strict private FFdAlphaTextureId: TSFInt32;
177 { Internal wrapper for property @code(AlphaTextureId). This wrapper API may change, we advise to access simpler @code(AlphaTextureId) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
178 public property FdAlphaTextureId: TSFInt32 read FFdAlphaTextureId;
179 { }
180 property AlphaTextureId: Integer read GetAlphaTextureId write SetAlphaTextureId;
181
182 strict private FFdAlphaTextureCoordinatesId: TSFInt32;
183 { Internal wrapper for property @code(AlphaTextureCoordinatesId). This wrapper API may change, we advise to access simpler @code(AlphaTextureCoordinatesId) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
184 public property FdAlphaTextureCoordinatesId: TSFInt32 read FFdAlphaTextureCoordinatesId;
185 { }
186 property AlphaTextureCoordinatesId: Integer read GetAlphaTextureCoordinatesId write SetAlphaTextureCoordinatesId;
187
188 strict private FFdAlphaTextureChannelMask: TSFString;
189 { Internal wrapper for property @code(AlphaTextureChannelMask). This wrapper API may change, we advise to access simpler @code(AlphaTextureChannelMask) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
190 public property FdAlphaTextureChannelMask: TSFString read FFdAlphaTextureChannelMask;
191 { }
192 property AlphaTextureChannelMask: String read GetAlphaTextureChannelMask write SetAlphaTextureChannelMask;
193
194 strict private FFdAlphaTexture: TSFNode;
195 { Internal wrapper for property @code(AlphaTexture). This wrapper API may change, we advise to access simpler @code(AlphaTexture) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
196 public property FdAlphaTexture: TSFNode read FFdAlphaTexture;
197 { }
198 property AlphaTexture: TAbstractTextureNode read GetAlphaTexture write SetAlphaTexture;
199
200 strict private FFdAmbientFactor: TSFVec3f;
201 { Internal wrapper for property @code(AmbientFactor). This wrapper API may change, we advise to access simpler @code(AmbientFactor) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
202 public property FdAmbientFactor: TSFVec3f read FFdAmbientFactor;
203 { }
204 property AmbientFactor: TVector3 read GetAmbientFactor write SetAmbientFactor;
205
206 strict private FFdAmbientTextureId: TSFInt32;
207 { Internal wrapper for property @code(AmbientTextureId). This wrapper API may change, we advise to access simpler @code(AmbientTextureId) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
208 public property FdAmbientTextureId: TSFInt32 read FFdAmbientTextureId;
209 { }
210 property AmbientTextureId: Integer read GetAmbientTextureId write SetAmbientTextureId;
211
212 strict private FFdAmbientTextureCoordinatesId: TSFInt32;
213 { Internal wrapper for property @code(AmbientTextureCoordinatesId). This wrapper API may change, we advise to access simpler @code(AmbientTextureCoordinatesId) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
214 public property FdAmbientTextureCoordinatesId: TSFInt32 read FFdAmbientTextureCoordinatesId;
215 { }
216 property AmbientTextureCoordinatesId: Integer read GetAmbientTextureCoordinatesId write SetAmbientTextureCoordinatesId;
217
218 strict private FFdAmbientTextureChannelMask: TSFString;
219 { Internal wrapper for property @code(AmbientTextureChannelMask). This wrapper API may change, we advise to access simpler @code(AmbientTextureChannelMask) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
220 public property FdAmbientTextureChannelMask: TSFString read FFdAmbientTextureChannelMask;
221 { }
222 property AmbientTextureChannelMask: String read GetAmbientTextureChannelMask write SetAmbientTextureChannelMask;
223
224 strict private FFdAmbientTexture: TSFNode;
225 { Internal wrapper for property @code(AmbientTexture). This wrapper API may change, we advise to access simpler @code(AmbientTexture) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
226 public property FdAmbientTexture: TSFNode read FFdAmbientTexture;
227 { }
228 property AmbientTexture: TAbstractTextureNode read GetAmbientTexture write SetAmbientTexture;
229
230 strict private FFdDiffuseFactor: TSFVec3f;
231 { Internal wrapper for property @code(DiffuseFactor). This wrapper API may change, we advise to access simpler @code(DiffuseFactor) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
232 public property FdDiffuseFactor: TSFVec3f read FFdDiffuseFactor;
233 { }
234 property DiffuseFactor: TVector3 read GetDiffuseFactor write SetDiffuseFactor;
235
236 strict private FFdDiffuseTextureId: TSFInt32;
237 { Internal wrapper for property @code(DiffuseTextureId). This wrapper API may change, we advise to access simpler @code(DiffuseTextureId) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
238 public property FdDiffuseTextureId: TSFInt32 read FFdDiffuseTextureId;
239 { }
240 property DiffuseTextureId: Integer read GetDiffuseTextureId write SetDiffuseTextureId;
241
242 strict private FFdDiffuseTextureCoordinatesId: TSFInt32;
243 { Internal wrapper for property @code(DiffuseTextureCoordinatesId). This wrapper API may change, we advise to access simpler @code(DiffuseTextureCoordinatesId) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
244 public property FdDiffuseTextureCoordinatesId: TSFInt32 read FFdDiffuseTextureCoordinatesId;
245 { }
246 property DiffuseTextureCoordinatesId: Integer read GetDiffuseTextureCoordinatesId write SetDiffuseTextureCoordinatesId;
247
248 strict private FFdDiffuseTextureChannelMask: TSFString;
249 { Internal wrapper for property @code(DiffuseTextureChannelMask). This wrapper API may change, we advise to access simpler @code(DiffuseTextureChannelMask) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
250 public property FdDiffuseTextureChannelMask: TSFString read FFdDiffuseTextureChannelMask;
251 { }
252 property DiffuseTextureChannelMask: String read GetDiffuseTextureChannelMask write SetDiffuseTextureChannelMask;
253
254 strict private FFdDiffuseTexture: TSFNode;
255 { Internal wrapper for property @code(DiffuseTexture). This wrapper API may change, we advise to access simpler @code(DiffuseTexture) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
256 public property FdDiffuseTexture: TSFNode read FFdDiffuseTexture;
257 { The texture controlling the diffuse color, multiplied by @link(DiffuseFactor). }
258 property DiffuseTexture: TAbstractTextureNode read GetDiffuseTexture write SetDiffuseTexture;
259
260 strict private FFdDiffuseDisplacementTexture: TSFNode;
261 { Internal wrapper for property @code(DiffuseDisplacementTexture). This wrapper API may change, we advise to access simpler @code(DiffuseDisplacementTexture) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
262 public property FdDiffuseDisplacementTexture: TSFNode read FFdDiffuseDisplacementTexture;
263 { }
264 property DiffuseDisplacementTexture: TAbstractTextureNode read GetDiffuseDisplacementTexture write SetDiffuseDisplacementTexture;
265
266 strict private FFdDisplacementAxis: TSFString;
267 { Internal wrapper for property @code(DisplacementAxis). This wrapper API may change, we advise to access simpler @code(DisplacementAxis) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
268 public property FdDisplacementAxis: TSFString read FFdDisplacementAxis;
269 { }
270 property DisplacementAxis: String read GetDisplacementAxis write SetDisplacementAxis;
271
272 strict private FFdDisplacementFactor: TSFFloat;
273 { Internal wrapper for property @code(DisplacementFactor). This wrapper API may change, we advise to access simpler @code(DisplacementFactor) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
274 public property FdDisplacementFactor: TSFFloat read FFdDisplacementFactor;
275 { }
276 property DisplacementFactor: Single read GetDisplacementFactor write SetDisplacementFactor;
277
278 strict private FFdDisplacementTextureId: TSFInt32;
279 { Internal wrapper for property @code(DisplacementTextureId). This wrapper API may change, we advise to access simpler @code(DisplacementTextureId) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
280 public property FdDisplacementTextureId: TSFInt32 read FFdDisplacementTextureId;
281 { }
282 property DisplacementTextureId: Integer read GetDisplacementTextureId write SetDisplacementTextureId;
283
284 strict private FFdDisplacementTextureCoordinatesId: TSFInt32;
285 { Internal wrapper for property @code(DisplacementTextureCoordinatesId). This wrapper API may change, we advise to access simpler @code(DisplacementTextureCoordinatesId) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
286 public property FdDisplacementTextureCoordinatesId: TSFInt32 read FFdDisplacementTextureCoordinatesId;
287 { }
288 property DisplacementTextureCoordinatesId: Integer read GetDisplacementTextureCoordinatesId write SetDisplacementTextureCoordinatesId;
289
290 strict private FFdDisplacementTexture: TSFNode;
291 { Internal wrapper for property @code(DisplacementTexture). This wrapper API may change, we advise to access simpler @code(DisplacementTexture) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
292 public property FdDisplacementTexture: TSFNode read FFdDisplacementTexture;
293 { }
294 property DisplacementTexture: TAbstractTextureNode read GetDisplacementTexture write SetDisplacementTexture;
295
296 strict private FFdEmissiveFactor: TSFVec3f;
297 { Internal wrapper for property @code(EmissiveFactor). This wrapper API may change, we advise to access simpler @code(EmissiveFactor) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
298 public property FdEmissiveFactor: TSFVec3f read FFdEmissiveFactor;
299 { }
300 property EmissiveFactor: TVector3 read GetEmissiveFactor write SetEmissiveFactor;
301
302 strict private FFdEmissiveTextureId: TSFInt32;
303 { Internal wrapper for property @code(EmissiveTextureId). This wrapper API may change, we advise to access simpler @code(EmissiveTextureId) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
304 public property FdEmissiveTextureId: TSFInt32 read FFdEmissiveTextureId;
305 { }
306 property EmissiveTextureId: Integer read GetEmissiveTextureId write SetEmissiveTextureId;
307
308 strict private FFdEmissiveTextureCoordinatesId: TSFInt32;
309 { Internal wrapper for property @code(EmissiveTextureCoordinatesId). This wrapper API may change, we advise to access simpler @code(EmissiveTextureCoordinatesId) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
310 public property FdEmissiveTextureCoordinatesId: TSFInt32 read FFdEmissiveTextureCoordinatesId;
311 { }
312 property EmissiveTextureCoordinatesId: Integer read GetEmissiveTextureCoordinatesId write SetEmissiveTextureCoordinatesId;
313
314 strict private FFdEmissiveTextureChannelMask: TSFString;
315 { Internal wrapper for property @code(EmissiveTextureChannelMask). This wrapper API may change, we advise to access simpler @code(EmissiveTextureChannelMask) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
316 public property FdEmissiveTextureChannelMask: TSFString read FFdEmissiveTextureChannelMask;
317 { }
318 property EmissiveTextureChannelMask: String read GetEmissiveTextureChannelMask write SetEmissiveTextureChannelMask;
319
320 strict private FFdEmissiveTexture: TSFNode;
321 { Internal wrapper for property @code(EmissiveTexture). This wrapper API may change, we advise to access simpler @code(EmissiveTexture) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
322 public property FdEmissiveTexture: TSFNode read FFdEmissiveTexture;
323 { }
324 property EmissiveTexture: TAbstractTextureNode read GetEmissiveTexture write SetEmissiveTexture;
325
326 strict private FFdEnvironmentFactor: TSFVec3f;
327 { Internal wrapper for property @code(EnvironmentFactor). This wrapper API may change, we advise to access simpler @code(EnvironmentFactor) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
328 public property FdEnvironmentFactor: TSFVec3f read FFdEnvironmentFactor;
329 { }
330 property EnvironmentFactor: TVector3 read GetEnvironmentFactor write SetEnvironmentFactor;
331
332 strict private FFdEnvironmentTextureId: TSFInt32;
333 { Internal wrapper for property @code(EnvironmentTextureId). This wrapper API may change, we advise to access simpler @code(EnvironmentTextureId) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
334 public property FdEnvironmentTextureId: TSFInt32 read FFdEnvironmentTextureId;
335 { }
336 property EnvironmentTextureId: Integer read GetEnvironmentTextureId write SetEnvironmentTextureId;
337
338 strict private FFdEnvironmentTextureCoordinatesId: TSFInt32;
339 { Internal wrapper for property @code(EnvironmentTextureCoordinatesId). This wrapper API may change, we advise to access simpler @code(EnvironmentTextureCoordinatesId) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
340 public property FdEnvironmentTextureCoordinatesId: TSFInt32 read FFdEnvironmentTextureCoordinatesId;
341 { }
342 property EnvironmentTextureCoordinatesId: Integer read GetEnvironmentTextureCoordinatesId write SetEnvironmentTextureCoordinatesId;
343
344 strict private FFdEnvironmentTextureChannelMask: TSFString;
345 { Internal wrapper for property @code(EnvironmentTextureChannelMask). This wrapper API may change, we advise to access simpler @code(EnvironmentTextureChannelMask) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
346 public property FdEnvironmentTextureChannelMask: TSFString read FFdEnvironmentTextureChannelMask;
347 { }
348 property EnvironmentTextureChannelMask: String read GetEnvironmentTextureChannelMask write SetEnvironmentTextureChannelMask;
349
350 strict private FFdEnvironmentTexture: TSFNode;
351 { Internal wrapper for property @code(EnvironmentTexture). This wrapper API may change, we advise to access simpler @code(EnvironmentTexture) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
352 public property FdEnvironmentTexture: TSFNode read FFdEnvironmentTexture;
353 { }
354 property EnvironmentTexture: TAbstractEnvironmentTextureNode read GetEnvironmentTexture write SetEnvironmentTexture;
355
356 strict private FFdMultiDiffuseAlphaTexture: TSFNode;
357 { Internal wrapper for property @code(MultiDiffuseAlphaTexture). This wrapper API may change, we advise to access simpler @code(MultiDiffuseAlphaTexture) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
358 public property FdMultiDiffuseAlphaTexture: TSFNode read FFdMultiDiffuseAlphaTexture;
359 { The texture controlling the diffuse (rgb) and alpha (alpha channel). Diffuse color is multiplied by @link(DiffuseFactor), alpha is (or rather: should be) multiplied by @link(AlphaFactor). }
360 property MultiDiffuseAlphaTexture: TAbstractTextureNode read GetMultiDiffuseAlphaTexture write SetMultiDiffuseAlphaTexture;
361
362 strict private FFdMultiEmmisiveAmbientIntensityTexture: TSFNode;
363 { Internal wrapper for property @code(MultiEmmisiveAmbientIntensityTexture). This wrapper API may change, we advise to access simpler @code(MultiEmmisiveAmbientIntensityTexture) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
364 public property FdMultiEmmisiveAmbientIntensityTexture: TSFNode read FFdMultiEmmisiveAmbientIntensityTexture;
365 { }
366 property MultiEmmisiveAmbientIntensityTexture: TAbstractTextureNode read GetMultiEmmisiveAmbientIntensityTexture write SetMultiEmmisiveAmbientIntensityTexture;
367
368 strict private FFdMultiSpecularShininessTexture: TSFNode;
369 { Internal wrapper for property @code(MultiSpecularShininessTexture). This wrapper API may change, we advise to access simpler @code(MultiSpecularShininessTexture) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
370 public property FdMultiSpecularShininessTexture: TSFNode read FFdMultiSpecularShininessTexture;
371 { }
372 property MultiSpecularShininessTexture: TAbstractTextureNode read GetMultiSpecularShininessTexture write SetMultiSpecularShininessTexture;
373
374 strict private FFdMultiVisibilityTexture: TSFNode;
375 { Internal wrapper for property @code(MultiVisibilityTexture). This wrapper API may change, we advise to access simpler @code(MultiVisibilityTexture) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
376 public property FdMultiVisibilityTexture: TSFNode read FFdMultiVisibilityTexture;
377 { }
378 property MultiVisibilityTexture: TAbstractTextureNode read GetMultiVisibilityTexture write SetMultiVisibilityTexture;
379
380 strict private FFdNormalFormat: TSFString;
381 { Internal wrapper for property @code(NormalFormat). This wrapper API may change, we advise to access simpler @code(NormalFormat) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
382 public property FdNormalFormat: TSFString read FFdNormalFormat;
383 { }
384 property NormalFormat: String read GetNormalFormat write SetNormalFormat;
385
386 strict private FFdNormalSpace: TSFString;
387 { Internal wrapper for property @code(NormalSpace). This wrapper API may change, we advise to access simpler @code(NormalSpace) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
388 public property FdNormalSpace: TSFString read FFdNormalSpace;
389 { }
390 property NormalSpace: String read GetNormalSpace write SetNormalSpace;
391
392 strict private FFdNormalTextureId: TSFInt32;
393 { Internal wrapper for property @code(NormalTextureId). This wrapper API may change, we advise to access simpler @code(NormalTextureId) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
394 public property FdNormalTextureId: TSFInt32 read FFdNormalTextureId;
395 { }
396 property NormalTextureId: Integer read GetNormalTextureId write SetNormalTextureId;
397
398 strict private FFdNormalTextureCoordinatesId: TSFInt32;
399 { Internal wrapper for property @code(NormalTextureCoordinatesId). This wrapper API may change, we advise to access simpler @code(NormalTextureCoordinatesId) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
400 public property FdNormalTextureCoordinatesId: TSFInt32 read FFdNormalTextureCoordinatesId;
401 { }
402 property NormalTextureCoordinatesId: Integer read GetNormalTextureCoordinatesId write SetNormalTextureCoordinatesId;
403
404 strict private FFdNormalTextureChannelMask: TSFString;
405 { Internal wrapper for property @code(NormalTextureChannelMask). This wrapper API may change, we advise to access simpler @code(NormalTextureChannelMask) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
406 public property FdNormalTextureChannelMask: TSFString read FFdNormalTextureChannelMask;
407 { }
408 property NormalTextureChannelMask: String read GetNormalTextureChannelMask write SetNormalTextureChannelMask;
409
410 strict private FFdNormalScale: TSFVec3f;
411 { Internal wrapper for property @code(NormalScale). This wrapper API may change, we advise to access simpler @code(NormalScale) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
412 public property FdNormalScale: TSFVec3f read FFdNormalScale;
413 { }
414 property NormalScale: TVector3 read GetNormalScale write SetNormalScale;
415
416 strict private FFdNormalBias: TSFVec3f;
417 { Internal wrapper for property @code(NormalBias). This wrapper API may change, we advise to access simpler @code(NormalBias) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
418 public property FdNormalBias: TSFVec3f read FFdNormalBias;
419 { }
420 property NormalBias: TVector3 read GetNormalBias write SetNormalBias;
421
422 strict private FFdNormalTexture: TSFNode;
423 { Internal wrapper for property @code(NormalTexture). This wrapper API may change, we advise to access simpler @code(NormalTexture) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
424 public property FdNormalTexture: TSFNode read FFdNormalTexture;
425 { Normalmap for bump mapping (the texture controlling the normals). }
426 property NormalTexture: TAbstractTextureNode read GetNormalTexture write SetNormalTexture;
427
428 strict private FFdNormalTextureParallaxHeight: TSFFloat;
429 { Internal wrapper for property @code(NormalTextureParallaxHeight). This wrapper API may change, we advise to access simpler @code(NormalTextureParallaxHeight) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
430 public property FdNormalTextureParallaxHeight: TSFFloat read FFdNormalTextureParallaxHeight;
431 { }
432 property NormalTextureParallaxHeight: Single read GetNormalTextureParallaxHeight write SetNormalTextureParallaxHeight;
433
434 strict private FFdReflectionFactor: TSFVec3f;
435 { Internal wrapper for property @code(ReflectionFactor). This wrapper API may change, we advise to access simpler @code(ReflectionFactor) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
436 public property FdReflectionFactor: TSFVec3f read FFdReflectionFactor;
437 { }
438 property ReflectionFactor: TVector3 read GetReflectionFactor write SetReflectionFactor;
439
440 strict private FFdReflectionTextureId: TSFInt32;
441 { Internal wrapper for property @code(ReflectionTextureId). This wrapper API may change, we advise to access simpler @code(ReflectionTextureId) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
442 public property FdReflectionTextureId: TSFInt32 read FFdReflectionTextureId;
443 { }
444 property ReflectionTextureId: Integer read GetReflectionTextureId write SetReflectionTextureId;
445
446 strict private FFdReflectionTextureCoordinatesId: TSFInt32;
447 { Internal wrapper for property @code(ReflectionTextureCoordinatesId). This wrapper API may change, we advise to access simpler @code(ReflectionTextureCoordinatesId) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
448 public property FdReflectionTextureCoordinatesId: TSFInt32 read FFdReflectionTextureCoordinatesId;
449 { }
450 property ReflectionTextureCoordinatesId: Integer read GetReflectionTextureCoordinatesId write SetReflectionTextureCoordinatesId;
451
452 strict private FFdReflectionTextureChannelMask: TSFString;
453 { Internal wrapper for property @code(ReflectionTextureChannelMask). This wrapper API may change, we advise to access simpler @code(ReflectionTextureChannelMask) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
454 public property FdReflectionTextureChannelMask: TSFString read FFdReflectionTextureChannelMask;
455 { }
456 property ReflectionTextureChannelMask: String read GetReflectionTextureChannelMask write SetReflectionTextureChannelMask;
457
458 strict private FFdReflectionTexture: TSFNode;
459 { Internal wrapper for property @code(ReflectionTexture). This wrapper API may change, we advise to access simpler @code(ReflectionTexture) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
460 public property FdReflectionTexture: TSFNode read FFdReflectionTexture;
461 { }
462 property ReflectionTexture: TAbstractTextureNode read GetReflectionTexture write SetReflectionTexture;
463
464 strict private FFdShininessFactor: TSFFloat;
465 { Internal wrapper for property @code(ShininessFactor). This wrapper API may change, we advise to access simpler @code(ShininessFactor) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
466 public property FdShininessFactor: TSFFloat read FFdShininessFactor;
467 { }
468 property ShininessFactor: Single read GetShininessFactor write SetShininessFactor;
469
470 strict private FFdShininessTextureId: TSFInt32;
471 { Internal wrapper for property @code(ShininessTextureId). This wrapper API may change, we advise to access simpler @code(ShininessTextureId) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
472 public property FdShininessTextureId: TSFInt32 read FFdShininessTextureId;
473 { }
474 property ShininessTextureId: Integer read GetShininessTextureId write SetShininessTextureId;
475
476 strict private FFdShininessTextureCoordinatesId: TSFInt32;
477 { Internal wrapper for property @code(ShininessTextureCoordinatesId). This wrapper API may change, we advise to access simpler @code(ShininessTextureCoordinatesId) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
478 public property FdShininessTextureCoordinatesId: TSFInt32 read FFdShininessTextureCoordinatesId;
479 { }
480 property ShininessTextureCoordinatesId: Integer read GetShininessTextureCoordinatesId write SetShininessTextureCoordinatesId;
481
482 strict private FFdShininessTextureChannelMask: TSFString;
483 { Internal wrapper for property @code(ShininessTextureChannelMask). This wrapper API may change, we advise to access simpler @code(ShininessTextureChannelMask) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
484 public property FdShininessTextureChannelMask: TSFString read FFdShininessTextureChannelMask;
485 { }
486 property ShininessTextureChannelMask: String read GetShininessTextureChannelMask write SetShininessTextureChannelMask;
487
488 strict private FFdShininessTexture: TSFNode;
489 { Internal wrapper for property @code(ShininessTexture). This wrapper API may change, we advise to access simpler @code(ShininessTexture) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
490 public property FdShininessTexture: TSFNode read FFdShininessTexture;
491 { }
492 property ShininessTexture: TAbstractTextureNode read GetShininessTexture write SetShininessTexture;
493
494 strict private FFdSpecularFactor: TSFVec3f;
495 { Internal wrapper for property @code(SpecularFactor). This wrapper API may change, we advise to access simpler @code(SpecularFactor) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
496 public property FdSpecularFactor: TSFVec3f read FFdSpecularFactor;
497 { }
498 property SpecularFactor: TVector3 read GetSpecularFactor write SetSpecularFactor;
499
500 strict private FFdSpecularTextureId: TSFInt32;
501 { Internal wrapper for property @code(SpecularTextureId). This wrapper API may change, we advise to access simpler @code(SpecularTextureId) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
502 public property FdSpecularTextureId: TSFInt32 read FFdSpecularTextureId;
503 { }
504 property SpecularTextureId: Integer read GetSpecularTextureId write SetSpecularTextureId;
505
506 strict private FFdSpecularTextureCoordinatesId: TSFInt32;
507 { Internal wrapper for property @code(SpecularTextureCoordinatesId). This wrapper API may change, we advise to access simpler @code(SpecularTextureCoordinatesId) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
508 public property FdSpecularTextureCoordinatesId: TSFInt32 read FFdSpecularTextureCoordinatesId;
509 { }
510 property SpecularTextureCoordinatesId: Integer read GetSpecularTextureCoordinatesId write SetSpecularTextureCoordinatesId;
511
512 strict private FFdSpecularTextureChannelMask: TSFString;
513 { Internal wrapper for property @code(SpecularTextureChannelMask). This wrapper API may change, we advise to access simpler @code(SpecularTextureChannelMask) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
514 public property FdSpecularTextureChannelMask: TSFString read FFdSpecularTextureChannelMask;
515 { }
516 property SpecularTextureChannelMask: String read GetSpecularTextureChannelMask write SetSpecularTextureChannelMask;
517
518 strict private FFdSpecularTexture: TSFNode;
519 { Internal wrapper for property @code(SpecularTexture). This wrapper API may change, we advise to access simpler @code(SpecularTexture) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
520 public property FdSpecularTexture: TSFNode read FFdSpecularTexture;
521 { }
522 property SpecularTexture: TAbstractTextureNode read GetSpecularTexture write SetSpecularTexture;
523
524 strict private FFdTransmissionFactor: TSFVec3f;
525 { Internal wrapper for property @code(TransmissionFactor). This wrapper API may change, we advise to access simpler @code(TransmissionFactor) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
526 public property FdTransmissionFactor: TSFVec3f read FFdTransmissionFactor;
527 { }
528 property TransmissionFactor: TVector3 read GetTransmissionFactor write SetTransmissionFactor;
529
530 strict private FFdTransmissionTextureId: TSFInt32;
531 { Internal wrapper for property @code(TransmissionTextureId). This wrapper API may change, we advise to access simpler @code(TransmissionTextureId) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
532 public property FdTransmissionTextureId: TSFInt32 read FFdTransmissionTextureId;
533 { }
534 property TransmissionTextureId: Integer read GetTransmissionTextureId write SetTransmissionTextureId;
535
536 strict private FFdTransmissionTextureCoordinatesId: TSFInt32;
537 { Internal wrapper for property @code(TransmissionTextureCoordinatesId). This wrapper API may change, we advise to access simpler @code(TransmissionTextureCoordinatesId) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
538 public property FdTransmissionTextureCoordinatesId: TSFInt32 read FFdTransmissionTextureCoordinatesId;
539 { }
540 property TransmissionTextureCoordinatesId: Integer read GetTransmissionTextureCoordinatesId write SetTransmissionTextureCoordinatesId;
541
542 strict private FFdTransmissionTextureChannelMask: TSFString;
543 { Internal wrapper for property @code(TransmissionTextureChannelMask). This wrapper API may change, we advise to access simpler @code(TransmissionTextureChannelMask) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
544 public property FdTransmissionTextureChannelMask: TSFString read FFdTransmissionTextureChannelMask;
545 { }
546 property TransmissionTextureChannelMask: String read GetTransmissionTextureChannelMask write SetTransmissionTextureChannelMask;
547
548 strict private FFdTransmissionTexture: TSFNode;
549 { Internal wrapper for property @code(TransmissionTexture). This wrapper API may change, we advise to access simpler @code(TransmissionTexture) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
550 public property FdTransmissionTexture: TSFNode read FFdTransmissionTexture;
551 { }
552 property TransmissionTexture: TAbstractTextureNode read GetTransmissionTexture write SetTransmissionTexture;
553
554 strict private FFdTangentTextureCoordinatesId: TSFInt32;
555 { Internal wrapper for property @code(TangentTextureCoordinatesId). This wrapper API may change, we advise to access simpler @code(TangentTextureCoordinatesId) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
556 public property FdTangentTextureCoordinatesId: TSFInt32 read FFdTangentTextureCoordinatesId;
557 { }
558 property TangentTextureCoordinatesId: Integer read GetTangentTextureCoordinatesId write SetTangentTextureCoordinatesId;
559
560 strict private FFdBinormalTextureCoordinatesId: TSFInt32;
561 { Internal wrapper for property @code(BinormalTextureCoordinatesId). This wrapper API may change, we advise to access simpler @code(BinormalTextureCoordinatesId) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
562 public property FdBinormalTextureCoordinatesId: TSFInt32 read FFdBinormalTextureCoordinatesId;
563 { }
564 property BinormalTextureCoordinatesId: Integer read GetBinormalTextureCoordinatesId write SetBinormalTextureCoordinatesId;
565
566 strict private FFdInvertAlphaTexture: TSFBool;
567 { Internal wrapper for property @code(InvertAlphaTexture). This wrapper API may change, we advise to access simpler @code(InvertAlphaTexture) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
568 public property FdInvertAlphaTexture: TSFBool read FFdInvertAlphaTexture;
569 { }
570 property InvertAlphaTexture: Boolean read GetInvertAlphaTexture write SetInvertAlphaTexture;
571
572 strict private FFdRelativeIndexOfRefraction: TSFFloat;
573 { Internal wrapper for property @code(RelativeIndexOfRefraction). This wrapper API may change, we advise to access simpler @code(RelativeIndexOfRefraction) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
574 public property FdRelativeIndexOfRefraction: TSFFloat read FFdRelativeIndexOfRefraction;
575 { }
576 property RelativeIndexOfRefraction: Single read GetRelativeIndexOfRefraction write SetRelativeIndexOfRefraction;
577
578 strict private FFdFresnelBlend: TSFFloat;
579 { Internal wrapper for property @code(FresnelBlend). This wrapper API may change, we advise to access simpler @code(FresnelBlend) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
580 public property FdFresnelBlend: TSFFloat read FFdFresnelBlend;
581 { }
582 property FresnelBlend: Single read GetFresnelBlend write SetFresnelBlend;
583
584 strict private FFdTextureTransformEnabled: TMFBool;
585 { Internal wrapper for property @code(TextureTransformEnabled). This wrapper API may change, we advise to access simpler @code(TextureTransformEnabled) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
586 public property FdTextureTransformEnabled: TMFBool read FFdTextureTransformEnabled;
587 { }
588 procedure SetTextureTransformEnabled(const Value: array of boolean); overload;
589 { }
590 procedure SetTextureTransformEnabled(const Value: TBooleanList); overload;
591
592 {$endif read_interface}
593
594 {$ifdef read_implementation}
595
596 { TCommonSurfaceShaderNode ----------------------------------------------- }
597
598 function TCommonSurfaceShaderNode.GetAlphaFactor: Single;
599 begin
600 Result := FdAlphaFactor.Value;
601 end;
602
603 procedure TCommonSurfaceShaderNode.SetAlphaFactor(const Value: Single);
604 begin
605 FdAlphaFactor.Send(Value);
606 end;
607
608 function TCommonSurfaceShaderNode.GetAlphaTextureId: Integer;
609 begin
610 Result := FdAlphaTextureId.Value;
611 end;
612
613 procedure TCommonSurfaceShaderNode.SetAlphaTextureId(const Value: Integer);
614 begin
615 FdAlphaTextureId.Send(Value);
616 end;
617
618 function TCommonSurfaceShaderNode.GetAlphaTextureCoordinatesId: Integer;
619 begin
620 Result := FdAlphaTextureCoordinatesId.Value;
621 end;
622
623 procedure TCommonSurfaceShaderNode.SetAlphaTextureCoordinatesId(const Value: Integer);
624 begin
625 FdAlphaTextureCoordinatesId.Send(Value);
626 end;
627
628 function TCommonSurfaceShaderNode.GetAlphaTextureChannelMask: String;
629 begin
630 Result := FdAlphaTextureChannelMask.Value;
631 end;
632
633 procedure TCommonSurfaceShaderNode.SetAlphaTextureChannelMask(const Value: String);
634 begin
635 FdAlphaTextureChannelMask.Send(Value);
636 end;
637
638 function TCommonSurfaceShaderNode.GetAlphaTexture: TAbstractTextureNode;
639 begin
640 if FdAlphaTexture.Value is TAbstractTextureNode then
641 Result := TAbstractTextureNode(FdAlphaTexture.Value)
642 else
643 Result := nil;
644 end;
645
646 procedure TCommonSurfaceShaderNode.SetAlphaTexture(const Value: TAbstractTextureNode);
647 begin
648 FdAlphaTexture.Send(Value);
649 end;
650
651 function TCommonSurfaceShaderNode.GetAmbientFactor: TVector3;
652 begin
653 Result := FdAmbientFactor.Value;
654 end;
655
656 procedure TCommonSurfaceShaderNode.SetAmbientFactor(const Value: TVector3);
657 begin
658 FdAmbientFactor.Send(Value);
659 end;
660
661 function TCommonSurfaceShaderNode.GetAmbientTextureId: Integer;
662 begin
663 Result := FdAmbientTextureId.Value;
664 end;
665
666 procedure TCommonSurfaceShaderNode.SetAmbientTextureId(const Value: Integer);
667 begin
668 FdAmbientTextureId.Send(Value);
669 end;
670
671 function TCommonSurfaceShaderNode.GetAmbientTextureCoordinatesId: Integer;
672 begin
673 Result := FdAmbientTextureCoordinatesId.Value;
674 end;
675
676 procedure TCommonSurfaceShaderNode.SetAmbientTextureCoordinatesId(const Value: Integer);
677 begin
678 FdAmbientTextureCoordinatesId.Send(Value);
679 end;
680
681 function TCommonSurfaceShaderNode.GetAmbientTextureChannelMask: String;
682 begin
683 Result := FdAmbientTextureChannelMask.Value;
684 end;
685
686 procedure TCommonSurfaceShaderNode.SetAmbientTextureChannelMask(const Value: String);
687 begin
688 FdAmbientTextureChannelMask.Send(Value);
689 end;
690
691 function TCommonSurfaceShaderNode.GetAmbientTexture: TAbstractTextureNode;
692 begin
693 if FdAmbientTexture.Value is TAbstractTextureNode then
694 Result := TAbstractTextureNode(FdAmbientTexture.Value)
695 else
696 Result := nil;
697 end;
698
699 procedure TCommonSurfaceShaderNode.SetAmbientTexture(const Value: TAbstractTextureNode);
700 begin
701 FdAmbientTexture.Send(Value);
702 end;
703
704 function TCommonSurfaceShaderNode.GetDiffuseFactor: TVector3;
705 begin
706 Result := FdDiffuseFactor.Value;
707 end;
708
709 procedure TCommonSurfaceShaderNode.SetDiffuseFactor(const Value: TVector3);
710 begin
711 FdDiffuseFactor.Send(Value);
712 end;
713
714 function TCommonSurfaceShaderNode.GetDiffuseTextureId: Integer;
715 begin
716 Result := FdDiffuseTextureId.Value;
717 end;
718
719 procedure TCommonSurfaceShaderNode.SetDiffuseTextureId(const Value: Integer);
720 begin
721 FdDiffuseTextureId.Send(Value);
722 end;
723
724 function TCommonSurfaceShaderNode.GetDiffuseTextureCoordinatesId: Integer;
725 begin
726 Result := FdDiffuseTextureCoordinatesId.Value;
727 end;
728
729 procedure TCommonSurfaceShaderNode.SetDiffuseTextureCoordinatesId(const Value: Integer);
730 begin
731 FdDiffuseTextureCoordinatesId.Send(Value);
732 end;
733
734 function TCommonSurfaceShaderNode.GetDiffuseTextureChannelMask: String;
735 begin
736 Result := FdDiffuseTextureChannelMask.Value;
737 end;
738
739 procedure TCommonSurfaceShaderNode.SetDiffuseTextureChannelMask(const Value: String);
740 begin
741 FdDiffuseTextureChannelMask.Send(Value);
742 end;
743
744 function TCommonSurfaceShaderNode.GetDiffuseTexture: TAbstractTextureNode;
745 begin
746 if FdDiffuseTexture.Value is TAbstractTextureNode then
747 Result := TAbstractTextureNode(FdDiffuseTexture.Value)
748 else
749 Result := nil;
750 end;
751
752 procedure TCommonSurfaceShaderNode.SetDiffuseTexture(const Value: TAbstractTextureNode);
753 begin
754 FdDiffuseTexture.Send(Value);
755 end;
756
757 function TCommonSurfaceShaderNode.GetDiffuseDisplacementTexture: TAbstractTextureNode;
758 begin
759 if FdDiffuseDisplacementTexture.Value is TAbstractTextureNode then
760 Result := TAbstractTextureNode(FdDiffuseDisplacementTexture.Value)
761 else
762 Result := nil;
763 end;
764
765 procedure TCommonSurfaceShaderNode.SetDiffuseDisplacementTexture(const Value: TAbstractTextureNode);
766 begin
767 FdDiffuseDisplacementTexture.Send(Value);
768 end;
769
770 function TCommonSurfaceShaderNode.GetDisplacementAxis: String;
771 begin
772 Result := FdDisplacementAxis.Value;
773 end;
774
775 procedure TCommonSurfaceShaderNode.SetDisplacementAxis(const Value: String);
776 begin
777 FdDisplacementAxis.Send(Value);
778 end;
779
780 function TCommonSurfaceShaderNode.GetDisplacementFactor: Single;
781 begin
782 Result := FdDisplacementFactor.Value;
783 end;
784
785 procedure TCommonSurfaceShaderNode.SetDisplacementFactor(const Value: Single);
786 begin
787 FdDisplacementFactor.Send(Value);
788 end;
789
790 function TCommonSurfaceShaderNode.GetDisplacementTextureId: Integer;
791 begin
792 Result := FdDisplacementTextureId.Value;
793 end;
794
795 procedure TCommonSurfaceShaderNode.SetDisplacementTextureId(const Value: Integer);
796 begin
797 FdDisplacementTextureId.Send(Value);
798 end;
799
800 function TCommonSurfaceShaderNode.GetDisplacementTextureCoordinatesId: Integer;
801 begin
802 Result := FdDisplacementTextureCoordinatesId.Value;
803 end;
804
805 procedure TCommonSurfaceShaderNode.SetDisplacementTextureCoordinatesId(const Value: Integer);
806 begin
807 FdDisplacementTextureCoordinatesId.Send(Value);
808 end;
809
810 function TCommonSurfaceShaderNode.GetDisplacementTexture: TAbstractTextureNode;
811 begin
812 if FdDisplacementTexture.Value is TAbstractTextureNode then
813 Result := TAbstractTextureNode(FdDisplacementTexture.Value)
814 else
815 Result := nil;
816 end;
817
818 procedure TCommonSurfaceShaderNode.SetDisplacementTexture(const Value: TAbstractTextureNode);
819 begin
820 FdDisplacementTexture.Send(Value);
821 end;
822
823 function TCommonSurfaceShaderNode.GetEmissiveFactor: TVector3;
824 begin
825 Result := FdEmissiveFactor.Value;
826 end;
827
828 procedure TCommonSurfaceShaderNode.SetEmissiveFactor(const Value: TVector3);
829 begin
830 FdEmissiveFactor.Send(Value);
831 end;
832
833 function TCommonSurfaceShaderNode.GetEmissiveTextureId: Integer;
834 begin
835 Result := FdEmissiveTextureId.Value;
836 end;
837
838 procedure TCommonSurfaceShaderNode.SetEmissiveTextureId(const Value: Integer);
839 begin
840 FdEmissiveTextureId.Send(Value);
841 end;
842
843 function TCommonSurfaceShaderNode.GetEmissiveTextureCoordinatesId: Integer;
844 begin
845 Result := FdEmissiveTextureCoordinatesId.Value;
846 end;
847
848 procedure TCommonSurfaceShaderNode.SetEmissiveTextureCoordinatesId(const Value: Integer);
849 begin
850 FdEmissiveTextureCoordinatesId.Send(Value);
851 end;
852
853 function TCommonSurfaceShaderNode.GetEmissiveTextureChannelMask: String;
854 begin
855 Result := FdEmissiveTextureChannelMask.Value;
856 end;
857
858 procedure TCommonSurfaceShaderNode.SetEmissiveTextureChannelMask(const Value: String);
859 begin
860 FdEmissiveTextureChannelMask.Send(Value);
861 end;
862
863 function TCommonSurfaceShaderNode.GetEmissiveTexture: TAbstractTextureNode;
864 begin
865 if FdEmissiveTexture.Value is TAbstractTextureNode then
866 Result := TAbstractTextureNode(FdEmissiveTexture.Value)
867 else
868 Result := nil;
869 end;
870
871 procedure TCommonSurfaceShaderNode.SetEmissiveTexture(const Value: TAbstractTextureNode);
872 begin
873 FdEmissiveTexture.Send(Value);
874 end;
875
876 function TCommonSurfaceShaderNode.GetEnvironmentFactor: TVector3;
877 begin
878 Result := FdEnvironmentFactor.Value;
879 end;
880
881 procedure TCommonSurfaceShaderNode.SetEnvironmentFactor(const Value: TVector3);
882 begin
883 FdEnvironmentFactor.Send(Value);
884 end;
885
886 function TCommonSurfaceShaderNode.GetEnvironmentTextureId: Integer;
887 begin
888 Result := FdEnvironmentTextureId.Value;
889 end;
890
891 procedure TCommonSurfaceShaderNode.SetEnvironmentTextureId(const Value: Integer);
892 begin
893 FdEnvironmentTextureId.Send(Value);
894 end;
895
896 function TCommonSurfaceShaderNode.GetEnvironmentTextureCoordinatesId: Integer;
897 begin
898 Result := FdEnvironmentTextureCoordinatesId.Value;
899 end;
900
901 procedure TCommonSurfaceShaderNode.SetEnvironmentTextureCoordinatesId(const Value: Integer);
902 begin
903 FdEnvironmentTextureCoordinatesId.Send(Value);
904 end;
905
906 function TCommonSurfaceShaderNode.GetEnvironmentTextureChannelMask: String;
907 begin
908 Result := FdEnvironmentTextureChannelMask.Value;
909 end;
910
911 procedure TCommonSurfaceShaderNode.SetEnvironmentTextureChannelMask(const Value: String);
912 begin
913 FdEnvironmentTextureChannelMask.Send(Value);
914 end;
915
916 function TCommonSurfaceShaderNode.GetEnvironmentTexture: TAbstractEnvironmentTextureNode;
917 begin
918 if FdEnvironmentTexture.Value is TAbstractEnvironmentTextureNode then
919 Result := TAbstractEnvironmentTextureNode(FdEnvironmentTexture.Value)
920 else
921 Result := nil;
922 end;
923
924 procedure TCommonSurfaceShaderNode.SetEnvironmentTexture(const Value: TAbstractEnvironmentTextureNode);
925 begin
926 FdEnvironmentTexture.Send(Value);
927 end;
928
929 function TCommonSurfaceShaderNode.GetMultiDiffuseAlphaTexture: TAbstractTextureNode;
930 begin
931 if FdMultiDiffuseAlphaTexture.Value is TAbstractTextureNode then
932 Result := TAbstractTextureNode(FdMultiDiffuseAlphaTexture.Value)
933 else
934 Result := nil;
935 end;
936
937 procedure TCommonSurfaceShaderNode.SetMultiDiffuseAlphaTexture(const Value: TAbstractTextureNode);
938 begin
939 FdMultiDiffuseAlphaTexture.Send(Value);
940 end;
941
942 function TCommonSurfaceShaderNode.GetMultiEmmisiveAmbientIntensityTexture: TAbstractTextureNode;
943 begin
944 if FdMultiEmmisiveAmbientIntensityTexture.Value is TAbstractTextureNode then
945 Result := TAbstractTextureNode(FdMultiEmmisiveAmbientIntensityTexture.Value)
946 else
947 Result := nil;
948 end;
949
950 procedure TCommonSurfaceShaderNode.SetMultiEmmisiveAmbientIntensityTexture(const Value: TAbstractTextureNode);
951 begin
952 FdMultiEmmisiveAmbientIntensityTexture.Send(Value);
953 end;
954
955 function TCommonSurfaceShaderNode.GetMultiSpecularShininessTexture: TAbstractTextureNode;
956 begin
957 if FdMultiSpecularShininessTexture.Value is TAbstractTextureNode then
958 Result := TAbstractTextureNode(FdMultiSpecularShininessTexture.Value)
959 else
960 Result := nil;
961 end;
962
963 procedure TCommonSurfaceShaderNode.SetMultiSpecularShininessTexture(const Value: TAbstractTextureNode);
964 begin
965 FdMultiSpecularShininessTexture.Send(Value);
966 end;
967
968 function TCommonSurfaceShaderNode.GetMultiVisibilityTexture: TAbstractTextureNode;
969 begin
970 if FdMultiVisibilityTexture.Value is TAbstractTextureNode then
971 Result := TAbstractTextureNode(FdMultiVisibilityTexture.Value)
972 else
973 Result := nil;
974 end;
975
976 procedure TCommonSurfaceShaderNode.SetMultiVisibilityTexture(const Value: TAbstractTextureNode);
977 begin
978 FdMultiVisibilityTexture.Send(Value);
979 end;
980
981 function TCommonSurfaceShaderNode.GetNormalFormat: String;
982 begin
983 Result := FdNormalFormat.Value;
984 end;
985
986 procedure TCommonSurfaceShaderNode.SetNormalFormat(const Value: String);
987 begin
988 FdNormalFormat.Send(Value);
989 end;
990
991 function TCommonSurfaceShaderNode.GetNormalSpace: String;
992 begin
993 Result := FdNormalSpace.Value;
994 end;
995
996 procedure TCommonSurfaceShaderNode.SetNormalSpace(const Value: String);
997 begin
998 FdNormalSpace.Send(Value);
999 end;
1000
1001 function TCommonSurfaceShaderNode.GetNormalTextureId: Integer;
1002 begin
1003 Result := FdNormalTextureId.Value;
1004 end;
1005
1006 procedure TCommonSurfaceShaderNode.SetNormalTextureId(const Value: Integer);
1007 begin
1008 FdNormalTextureId.Send(Value);
1009 end;
1010
1011 function TCommonSurfaceShaderNode.GetNormalTextureCoordinatesId: Integer;
1012 begin
1013 Result := FdNormalTextureCoordinatesId.Value;
1014 end;
1015
1016 procedure TCommonSurfaceShaderNode.SetNormalTextureCoordinatesId(const Value: Integer);
1017 begin
1018 FdNormalTextureCoordinatesId.Send(Value);
1019 end;
1020
1021 function TCommonSurfaceShaderNode.GetNormalTextureChannelMask: String;
1022 begin
1023 Result := FdNormalTextureChannelMask.Value;
1024 end;
1025
1026 procedure TCommonSurfaceShaderNode.SetNormalTextureChannelMask(const Value: String);
1027 begin
1028 FdNormalTextureChannelMask.Send(Value);
1029 end;
1030
1031 function TCommonSurfaceShaderNode.GetNormalScale: TVector3;
1032 begin
1033 Result := FdNormalScale.Value;
1034 end;
1035
1036 procedure TCommonSurfaceShaderNode.SetNormalScale(const Value: TVector3);
1037 begin
1038 FdNormalScale.Send(Value);
1039 end;
1040
1041 function TCommonSurfaceShaderNode.GetNormalBias: TVector3;
1042 begin
1043 Result := FdNormalBias.Value;
1044 end;
1045
1046 procedure TCommonSurfaceShaderNode.SetNormalBias(const Value: TVector3);
1047 begin
1048 FdNormalBias.Send(Value);
1049 end;
1050
1051 function TCommonSurfaceShaderNode.GetNormalTexture: TAbstractTextureNode;
1052 begin
1053 if FdNormalTexture.Value is TAbstractTextureNode then
1054 Result := TAbstractTextureNode(FdNormalTexture.Value)
1055 else
1056 Result := nil;
1057 end;
1058
1059 procedure TCommonSurfaceShaderNode.SetNormalTexture(const Value: TAbstractTextureNode);
1060 begin
1061 FdNormalTexture.Send(Value);
1062 end;
1063
1064 function TCommonSurfaceShaderNode.GetNormalTextureParallaxHeight: Single;
1065 begin
1066 Result := FdNormalTextureParallaxHeight.Value;
1067 end;
1068
1069 procedure TCommonSurfaceShaderNode.SetNormalTextureParallaxHeight(const Value: Single);
1070 begin
1071 FdNormalTextureParallaxHeight.Send(Value);
1072 end;
1073
1074 function TCommonSurfaceShaderNode.GetReflectionFactor: TVector3;
1075 begin
1076 Result := FdReflectionFactor.Value;
1077 end;
1078
1079 procedure TCommonSurfaceShaderNode.SetReflectionFactor(const Value: TVector3);
1080 begin
1081 FdReflectionFactor.Send(Value);
1082 end;
1083
1084 function TCommonSurfaceShaderNode.GetReflectionTextureId: Integer;
1085 begin
1086 Result := FdReflectionTextureId.Value;
1087 end;
1088
1089 procedure TCommonSurfaceShaderNode.SetReflectionTextureId(const Value: Integer);
1090 begin
1091 FdReflectionTextureId.Send(Value);
1092 end;
1093
1094 function TCommonSurfaceShaderNode.GetReflectionTextureCoordinatesId: Integer;
1095 begin
1096 Result := FdReflectionTextureCoordinatesId.Value;
1097 end;
1098
1099 procedure TCommonSurfaceShaderNode.SetReflectionTextureCoordinatesId(const Value: Integer);
1100 begin
1101 FdReflectionTextureCoordinatesId.Send(Value);
1102 end;
1103
1104 function TCommonSurfaceShaderNode.GetReflectionTextureChannelMask: String;
1105 begin
1106 Result := FdReflectionTextureChannelMask.Value;
1107 end;
1108
1109 procedure TCommonSurfaceShaderNode.SetReflectionTextureChannelMask(const Value: String);
1110 begin
1111 FdReflectionTextureChannelMask.Send(Value);
1112 end;
1113
1114 function TCommonSurfaceShaderNode.GetReflectionTexture: TAbstractTextureNode;
1115 begin
1116 if FdReflectionTexture.Value is TAbstractTextureNode then
1117 Result := TAbstractTextureNode(FdReflectionTexture.Value)
1118 else
1119 Result := nil;
1120 end;
1121
1122 procedure TCommonSurfaceShaderNode.SetReflectionTexture(const Value: TAbstractTextureNode);
1123 begin
1124 FdReflectionTexture.Send(Value);
1125 end;
1126
1127 function TCommonSurfaceShaderNode.GetShininessFactor: Single;
1128 begin
1129 Result := FdShininessFactor.Value;
1130 end;
1131
1132 procedure TCommonSurfaceShaderNode.SetShininessFactor(const Value: Single);
1133 begin
1134 FdShininessFactor.Send(Value);
1135 end;
1136
1137 function TCommonSurfaceShaderNode.GetShininessTextureId: Integer;
1138 begin
1139 Result := FdShininessTextureId.Value;
1140 end;
1141
1142 procedure TCommonSurfaceShaderNode.SetShininessTextureId(const Value: Integer);
1143 begin
1144 FdShininessTextureId.Send(Value);
1145 end;
1146
1147 function TCommonSurfaceShaderNode.GetShininessTextureCoordinatesId: Integer;
1148 begin
1149 Result := FdShininessTextureCoordinatesId.Value;
1150 end;
1151
1152 procedure TCommonSurfaceShaderNode.SetShininessTextureCoordinatesId(const Value: Integer);
1153 begin
1154 FdShininessTextureCoordinatesId.Send(Value);
1155 end;
1156
1157 function TCommonSurfaceShaderNode.GetShininessTextureChannelMask: String;
1158 begin
1159 Result := FdShininessTextureChannelMask.Value;
1160 end;
1161
1162 procedure TCommonSurfaceShaderNode.SetShininessTextureChannelMask(const Value: String);
1163 begin
1164 FdShininessTextureChannelMask.Send(Value);
1165 end;
1166
1167 function TCommonSurfaceShaderNode.GetShininessTexture: TAbstractTextureNode;
1168 begin
1169 if FdShininessTexture.Value is TAbstractTextureNode then
1170 Result := TAbstractTextureNode(FdShininessTexture.Value)
1171 else
1172 Result := nil;
1173 end;
1174
1175 procedure TCommonSurfaceShaderNode.SetShininessTexture(const Value: TAbstractTextureNode);
1176 begin
1177 FdShininessTexture.Send(Value);
1178 end;
1179
1180 function TCommonSurfaceShaderNode.GetSpecularFactor: TVector3;
1181 begin
1182 Result := FdSpecularFactor.Value;
1183 end;
1184
1185 procedure TCommonSurfaceShaderNode.SetSpecularFactor(const Value: TVector3);
1186 begin
1187 FdSpecularFactor.Send(Value);
1188 end;
1189
1190 function TCommonSurfaceShaderNode.GetSpecularTextureId: Integer;
1191 begin
1192 Result := FdSpecularTextureId.Value;
1193 end;
1194
1195 procedure TCommonSurfaceShaderNode.SetSpecularTextureId(const Value: Integer);
1196 begin
1197 FdSpecularTextureId.Send(Value);
1198 end;
1199
1200 function TCommonSurfaceShaderNode.GetSpecularTextureCoordinatesId: Integer;
1201 begin
1202 Result := FdSpecularTextureCoordinatesId.Value;
1203 end;
1204
1205 procedure TCommonSurfaceShaderNode.SetSpecularTextureCoordinatesId(const Value: Integer);
1206 begin
1207 FdSpecularTextureCoordinatesId.Send(Value);
1208 end;
1209
1210 function TCommonSurfaceShaderNode.GetSpecularTextureChannelMask: String;
1211 begin
1212 Result := FdSpecularTextureChannelMask.Value;
1213 end;
1214
1215 procedure TCommonSurfaceShaderNode.SetSpecularTextureChannelMask(const Value: String);
1216 begin
1217 FdSpecularTextureChannelMask.Send(Value);
1218 end;
1219
1220 function TCommonSurfaceShaderNode.GetSpecularTexture: TAbstractTextureNode;
1221 begin
1222 if FdSpecularTexture.Value is TAbstractTextureNode then
1223 Result := TAbstractTextureNode(FdSpecularTexture.Value)
1224 else
1225 Result := nil;
1226 end;
1227
1228 procedure TCommonSurfaceShaderNode.SetSpecularTexture(const Value: TAbstractTextureNode);
1229 begin
1230 FdSpecularTexture.Send(Value);
1231 end;
1232
1233 function TCommonSurfaceShaderNode.GetTransmissionFactor: TVector3;
1234 begin
1235 Result := FdTransmissionFactor.Value;
1236 end;
1237
1238 procedure TCommonSurfaceShaderNode.SetTransmissionFactor(const Value: TVector3);
1239 begin
1240 FdTransmissionFactor.Send(Value);
1241 end;
1242
1243 function TCommonSurfaceShaderNode.GetTransmissionTextureId: Integer;
1244 begin
1245 Result := FdTransmissionTextureId.Value;
1246 end;
1247
1248 procedure TCommonSurfaceShaderNode.SetTransmissionTextureId(const Value: Integer);
1249 begin
1250 FdTransmissionTextureId.Send(Value);
1251 end;
1252
1253 function TCommonSurfaceShaderNode.GetTransmissionTextureCoordinatesId: Integer;
1254 begin
1255 Result := FdTransmissionTextureCoordinatesId.Value;
1256 end;
1257
1258 procedure TCommonSurfaceShaderNode.SetTransmissionTextureCoordinatesId(const Value: Integer);
1259 begin
1260 FdTransmissionTextureCoordinatesId.Send(Value);
1261 end;
1262
1263 function TCommonSurfaceShaderNode.GetTransmissionTextureChannelMask: String;
1264 begin
1265 Result := FdTransmissionTextureChannelMask.Value;
1266 end;
1267
1268 procedure TCommonSurfaceShaderNode.SetTransmissionTextureChannelMask(const Value: String);
1269 begin
1270 FdTransmissionTextureChannelMask.Send(Value);
1271 end;
1272
1273 function TCommonSurfaceShaderNode.GetTransmissionTexture: TAbstractTextureNode;
1274 begin
1275 if FdTransmissionTexture.Value is TAbstractTextureNode then
1276 Result := TAbstractTextureNode(FdTransmissionTexture.Value)
1277 else
1278 Result := nil;
1279 end;
1280
1281 procedure TCommonSurfaceShaderNode.SetTransmissionTexture(const Value: TAbstractTextureNode);
1282 begin
1283 FdTransmissionTexture.Send(Value);
1284 end;
1285
1286 function TCommonSurfaceShaderNode.GetTangentTextureCoordinatesId: Integer;
1287 begin
1288 Result := FdTangentTextureCoordinatesId.Value;
1289 end;
1290
1291 procedure TCommonSurfaceShaderNode.SetTangentTextureCoordinatesId(const Value: Integer);
1292 begin
1293 FdTangentTextureCoordinatesId.Send(Value);
1294 end;
1295
1296 function TCommonSurfaceShaderNode.GetBinormalTextureCoordinatesId: Integer;
1297 begin
1298 Result := FdBinormalTextureCoordinatesId.Value;
1299 end;
1300
1301 procedure TCommonSurfaceShaderNode.SetBinormalTextureCoordinatesId(const Value: Integer);
1302 begin
1303 FdBinormalTextureCoordinatesId.Send(Value);
1304 end;
1305
1306 function TCommonSurfaceShaderNode.GetInvertAlphaTexture: Boolean;
1307 begin
1308 Result := FdInvertAlphaTexture.Value;
1309 end;
1310
1311 procedure TCommonSurfaceShaderNode.SetInvertAlphaTexture(const Value: Boolean);
1312 begin
1313 FdInvertAlphaTexture.Send(Value);
1314 end;
1315
1316 function TCommonSurfaceShaderNode.GetRelativeIndexOfRefraction: Single;
1317 begin
1318 Result := FdRelativeIndexOfRefraction.Value;
1319 end;
1320
1321 procedure TCommonSurfaceShaderNode.SetRelativeIndexOfRefraction(const Value: Single);
1322 begin
1323 FdRelativeIndexOfRefraction.Send(Value);
1324 end;
1325
1326 function TCommonSurfaceShaderNode.GetFresnelBlend: Single;
1327 begin
1328 Result := FdFresnelBlend.Value;
1329 end;
1330
1331 procedure TCommonSurfaceShaderNode.SetFresnelBlend(const Value: Single);
1332 begin
1333 FdFresnelBlend.Send(Value);
1334 end;
1335
1336 procedure TCommonSurfaceShaderNode.SetTextureTransformEnabled(const Value: array of boolean);
1337 begin
1338 FdTextureTransformEnabled.Send(Value);
1339 end;
1340
1341 procedure TCommonSurfaceShaderNode.SetTextureTransformEnabled(const Value: TBooleanList);
1342 begin
1343 FdTextureTransformEnabled.Send(Value);
1344 end;
1345
1346 class function TCommonSurfaceShaderNode.ClassX3DType: String;
1347 begin
1348 Result := 'CommonSurfaceShader';
1349 end;
1350
1351 procedure TCommonSurfaceShaderNode.CreateNode;
1352 begin
1353 inherited;
1354
1355 FFdAlphaFactor := TSFFloat.Create(Self, True, 'alphaFactor', 1);
1356 FdAlphaFactor.ChangeAlways := chVisibleNonGeometry;
1357 AddField(FFdAlphaFactor);
1358
1359 FFdAlphaTextureId := TSFInt32.Create(Self, True, 'alphaTextureId', -1);
1360 FdAlphaTextureId.ChangeAlways := chVisibleNonGeometry;
1361 AddField(FFdAlphaTextureId);
1362
1363 FFdAlphaTextureCoordinatesId := TSFInt32.Create(Self, True, 'alphaTextureCoordinatesId', 0);
1364 FdAlphaTextureCoordinatesId.ChangeAlways := chVisibleNonGeometry;
1365 AddField(FFdAlphaTextureCoordinatesId);
1366
1367 FFdAlphaTextureChannelMask := TSFString.Create(Self, True, 'alphaTextureChannelMask', 'a');
1368 FdAlphaTextureChannelMask.ChangeAlways := chVisibleNonGeometry;
1369 AddField(FFdAlphaTextureChannelMask);
1370
1371 FFdAlphaTexture := TSFNode.Create(Self, True, 'alphaTexture', [TAbstractTextureNode]);
1372 FdAlphaTexture.ChangeAlways := chVisibleNonGeometry;
1373 AddField(FFdAlphaTexture);
1374
1375 FFdAmbientFactor := TSFVec3f.Create(Self, True, 'ambientFactor', Vector3(0.2, 0.2, 0.2));
1376 FdAmbientFactor.ChangeAlways := chVisibleNonGeometry;
1377 AddField(FFdAmbientFactor);
1378
1379 FFdAmbientTextureId := TSFInt32.Create(Self, True, 'ambientTextureId', -1);
1380 FdAmbientTextureId.ChangeAlways := chVisibleNonGeometry;
1381 AddField(FFdAmbientTextureId);
1382
1383 FFdAmbientTextureCoordinatesId := TSFInt32.Create(Self, True, 'ambientTextureCoordinatesId', 0);
1384 FdAmbientTextureCoordinatesId.ChangeAlways := chVisibleNonGeometry;
1385 AddField(FFdAmbientTextureCoordinatesId);
1386
1387 FFdAmbientTextureChannelMask := TSFString.Create(Self, True, 'ambientTextureChannelMask', 'rgb');
1388 FdAmbientTextureChannelMask.ChangeAlways := chVisibleNonGeometry;
1389 AddField(FFdAmbientTextureChannelMask);
1390
1391 FFdAmbientTexture := TSFNode.Create(Self, True, 'ambientTexture', [TAbstractTextureNode]);
1392 FdAmbientTexture.ChangeAlways := chVisibleNonGeometry;
1393 AddField(FFdAmbientTexture);
1394
1395 FFdDiffuseFactor := TSFVec3f.Create(Self, True, 'diffuseFactor', Vector3(0.8, 0.8, 0.8));
1396 FdDiffuseFactor.ChangeAlways := chVisibleNonGeometry;
1397 AddField(FFdDiffuseFactor);
1398
1399 FFdDiffuseTextureId := TSFInt32.Create(Self, True, 'diffuseTextureId', -1);
1400 FdDiffuseTextureId.ChangeAlways := chVisibleNonGeometry;
1401 AddField(FFdDiffuseTextureId);
1402
1403 FFdDiffuseTextureCoordinatesId := TSFInt32.Create(Self, True, 'diffuseTextureCoordinatesId', 0);
1404 FdDiffuseTextureCoordinatesId.ChangeAlways := chVisibleNonGeometry;
1405 AddField(FFdDiffuseTextureCoordinatesId);
1406
1407 FFdDiffuseTextureChannelMask := TSFString.Create(Self, True, 'diffuseTextureChannelMask', 'rgb');
1408 FdDiffuseTextureChannelMask.ChangeAlways := chVisibleNonGeometry;
1409 AddField(FFdDiffuseTextureChannelMask);
1410
1411 FFdDiffuseTexture := TSFNode.Create(Self, True, 'diffuseTexture', [TAbstractTextureNode]);
1412 FdDiffuseTexture.ChangeAlways := chVisibleNonGeometry;
1413 AddField(FFdDiffuseTexture);
1414
1415 FFdDiffuseDisplacementTexture := TSFNode.Create(Self, True, 'diffuseDisplacementTexture', [TAbstractTextureNode]);
1416 FdDiffuseDisplacementTexture.ChangeAlways := chVisibleNonGeometry;
1417 AddField(FFdDiffuseDisplacementTexture);
1418
1419 FFdDisplacementAxis := TSFString.Create(Self, True, 'displacementAxis', 'y');
1420 FdDisplacementAxis.ChangeAlways := chVisibleNonGeometry;
1421 AddField(FFdDisplacementAxis);
1422
1423 FFdDisplacementFactor := TSFFloat.Create(Self, True, 'displacementFactor', 255.0);
1424 FdDisplacementFactor.ChangeAlways := chVisibleNonGeometry;
1425 AddField(FFdDisplacementFactor);
1426
1427 FFdDisplacementTextureId := TSFInt32.Create(Self, True, 'displacementTextureId', -1);
1428 FdDisplacementTextureId.ChangeAlways := chVisibleNonGeometry;
1429 AddField(FFdDisplacementTextureId);
1430
1431 FFdDisplacementTextureCoordinatesId := TSFInt32.Create(Self, True, 'displacementTextureCoordinatesId', 0);
1432 FdDisplacementTextureCoordinatesId.ChangeAlways := chVisibleNonGeometry;
1433 AddField(FFdDisplacementTextureCoordinatesId);
1434
1435 FFdDisplacementTexture := TSFNode.Create(Self, True, 'displacementTexture', [TAbstractTextureNode]);
1436 FdDisplacementTexture.ChangeAlways := chVisibleNonGeometry;
1437 AddField(FFdDisplacementTexture);
1438
1439 FFdEmissiveFactor := TSFVec3f.Create(Self, True, 'emissiveFactor', Vector3(0, 0, 0));
1440 FdEmissiveFactor.ChangeAlways := chVisibleNonGeometry;
1441 AddField(FFdEmissiveFactor);
1442
1443 FFdEmissiveTextureId := TSFInt32.Create(Self, True, 'emissiveTextureId', -1);
1444 FdEmissiveTextureId.ChangeAlways := chVisibleNonGeometry;
1445 AddField(FFdEmissiveTextureId);
1446
1447 FFdEmissiveTextureCoordinatesId := TSFInt32.Create(Self, True, 'emissiveTextureCoordinatesId', 0);
1448 FdEmissiveTextureCoordinatesId.ChangeAlways := chVisibleNonGeometry;
1449 AddField(FFdEmissiveTextureCoordinatesId);
1450
1451 FFdEmissiveTextureChannelMask := TSFString.Create(Self, True, 'emissiveTextureChannelMask', 'rgb');
1452 FdEmissiveTextureChannelMask.ChangeAlways := chVisibleNonGeometry;
1453 AddField(FFdEmissiveTextureChannelMask);
1454
1455 FFdEmissiveTexture := TSFNode.Create(Self, True, 'emissiveTexture', [TAbstractTextureNode]);
1456 FdEmissiveTexture.ChangeAlways := chVisibleNonGeometry;
1457 AddField(FFdEmissiveTexture);
1458
1459 FFdEnvironmentFactor := TSFVec3f.Create(Self, True, 'environmentFactor', Vector3(1, 1, 1));
1460 FdEnvironmentFactor.ChangeAlways := chVisibleNonGeometry;
1461 AddField(FFdEnvironmentFactor);
1462
1463 FFdEnvironmentTextureId := TSFInt32.Create(Self, True, 'environmentTextureId', -1);
1464 FdEnvironmentTextureId.ChangeAlways := chVisibleNonGeometry;
1465 AddField(FFdEnvironmentTextureId);
1466
1467 FFdEnvironmentTextureCoordinatesId := TSFInt32.Create(Self, True, 'environmentTextureCoordinatesId', 0);
1468 FdEnvironmentTextureCoordinatesId.ChangeAlways := chVisibleNonGeometry;
1469 AddField(FFdEnvironmentTextureCoordinatesId);
1470
1471 FFdEnvironmentTextureChannelMask := TSFString.Create(Self, True, 'environmentTextureChannelMask', 'rgb');
1472 FdEnvironmentTextureChannelMask.ChangeAlways := chVisibleNonGeometry;
1473 AddField(FFdEnvironmentTextureChannelMask);
1474
1475 FFdEnvironmentTexture := TSFNode.Create(Self, True, 'environmentTexture', [TAbstractEnvironmentTextureNode]);
1476 FdEnvironmentTexture.ChangeAlways := chVisibleNonGeometry;
1477 AddField(FFdEnvironmentTexture);
1478
1479 FFdMultiDiffuseAlphaTexture := TSFNode.Create(Self, True, 'multiDiffuseAlphaTexture', [TAbstractTextureNode]);
1480 FdMultiDiffuseAlphaTexture.ChangeAlways := chVisibleNonGeometry;
1481 AddField(FFdMultiDiffuseAlphaTexture);
1482
1483 FFdMultiEmmisiveAmbientIntensityTexture := TSFNode.Create(Self, True, 'multiEmmisiveAmbientIntensityTexture', [TAbstractTextureNode]);
1484 FdMultiEmmisiveAmbientIntensityTexture.ChangeAlways := chVisibleNonGeometry;
1485 AddField(FFdMultiEmmisiveAmbientIntensityTexture);
1486
1487 FFdMultiSpecularShininessTexture := TSFNode.Create(Self, True, 'multiSpecularShininessTexture', [TAbstractTextureNode]);
1488 FdMultiSpecularShininessTexture.ChangeAlways := chVisibleNonGeometry;
1489 AddField(FFdMultiSpecularShininessTexture);
1490
1491 FFdMultiVisibilityTexture := TSFNode.Create(Self, True, 'multiVisibilityTexture', [TAbstractTextureNode]);
1492 FdMultiVisibilityTexture.ChangeAlways := chVisibleNonGeometry;
1493 AddField(FFdMultiVisibilityTexture);
1494
1495 FFdNormalFormat := TSFString.Create(Self, True, 'normalFormat', 'UNORM');
1496 FdNormalFormat.ChangeAlways := chVisibleNonGeometry;
1497 AddField(FFdNormalFormat);
1498
1499 FFdNormalSpace := TSFString.Create(Self, True, 'normalSpace', 'TANGENT');
1500 FdNormalSpace.ChangeAlways := chVisibleNonGeometry;
1501 AddField(FFdNormalSpace);
1502
1503 FFdNormalTextureId := TSFInt32.Create(Self, True, 'normalTextureId', -1);
1504 FdNormalTextureId.ChangeAlways := chVisibleNonGeometry;
1505 AddField(FFdNormalTextureId);
1506
1507 FFdNormalTextureCoordinatesId := TSFInt32.Create(Self, True, 'normalTextureCoordinatesId', 0);
1508 FdNormalTextureCoordinatesId.ChangeAlways := chVisibleNonGeometry;
1509 AddField(FFdNormalTextureCoordinatesId);
1510
1511 FFdNormalTextureChannelMask := TSFString.Create(Self, True, 'normalTextureChannelMask', 'rgb');
1512 FdNormalTextureChannelMask.ChangeAlways := chVisibleNonGeometry;
1513 AddField(FFdNormalTextureChannelMask);
1514
1515 FFdNormalScale := TSFVec3f.Create(Self, False, 'normalScale', Vector3(2, 2, 2));
1516 FdNormalScale.ChangeAlways := chVisibleNonGeometry;
1517 AddField(FFdNormalScale);
1518
1519 FFdNormalBias := TSFVec3f.Create(Self, False, 'normalBias', Vector3(-1, -1, -1));
1520 FdNormalBias.ChangeAlways := chVisibleNonGeometry;
1521 AddField(FFdNormalBias);
1522
1523 FFdNormalTexture := TSFNode.Create(Self, True, 'normalTexture', [TAbstractTextureNode]);
1524 FdNormalTexture.ChangeAlways := chVisibleNonGeometry;
1525 AddField(FFdNormalTexture);
1526
1527 FFdNormalTextureParallaxHeight := TSFFloat.Create(Self, True, 'normalTextureParallaxHeight', 0);
1528 FdNormalTextureParallaxHeight.ChangeAlways := chVisibleNonGeometry;
1529 AddField(FFdNormalTextureParallaxHeight);
1530
1531 FFdReflectionFactor := TSFVec3f.Create(Self, True, 'reflectionFactor', Vector3(0, 0, 0));
1532 FdReflectionFactor.ChangeAlways := chVisibleNonGeometry;
1533 AddField(FFdReflectionFactor);
1534
1535 FFdReflectionTextureId := TSFInt32.Create(Self, True, 'reflectionTextureId', -1);
1536 FdReflectionTextureId.ChangeAlways := chVisibleNonGeometry;
1537 AddField(FFdReflectionTextureId);
1538
1539 FFdReflectionTextureCoordinatesId := TSFInt32.Create(Self, True, 'reflectionTextureCoordinatesId', 0);
1540 FdReflectionTextureCoordinatesId.ChangeAlways := chVisibleNonGeometry;
1541 AddField(FFdReflectionTextureCoordinatesId);
1542
1543 FFdReflectionTextureChannelMask := TSFString.Create(Self, True, 'reflectionTextureChannelMask', 'rgb');
1544 FdReflectionTextureChannelMask.ChangeAlways := chVisibleNonGeometry;
1545 AddField(FFdReflectionTextureChannelMask);
1546
1547 FFdReflectionTexture := TSFNode.Create(Self, True, 'reflectionTexture', [TAbstractTextureNode]);
1548 FdReflectionTexture.ChangeAlways := chVisibleNonGeometry;
1549 AddField(FFdReflectionTexture);
1550
1551 FFdShininessFactor := TSFFloat.Create(Self, True, 'shininessFactor', 0.2);
1552 FdShininessFactor.ChangeAlways := chVisibleNonGeometry;
1553 AddField(FFdShininessFactor);
1554
1555 FFdShininessTextureId := TSFInt32.Create(Self, True, 'shininessTextureId', -1);
1556 FdShininessTextureId.ChangeAlways := chVisibleNonGeometry;
1557 AddField(FFdShininessTextureId);
1558
1559 FFdShininessTextureCoordinatesId := TSFInt32.Create(Self, True, 'shininessTextureCoordinatesId', 0);
1560 FdShininessTextureCoordinatesId.ChangeAlways := chVisibleNonGeometry;
1561 AddField(FFdShininessTextureCoordinatesId);
1562
1563 FFdShininessTextureChannelMask := TSFString.Create(Self, True, 'shininessTextureChannelMask', 'a');
1564 FdShininessTextureChannelMask.ChangeAlways := chVisibleNonGeometry;
1565 AddField(FFdShininessTextureChannelMask);
1566
1567 FFdShininessTexture := TSFNode.Create(Self, True, 'shininessTexture', [TAbstractTextureNode]);
1568 FdShininessTexture.ChangeAlways := chVisibleNonGeometry;
1569 AddField(FFdShininessTexture);
1570
1571 FFdSpecularFactor := TSFVec3f.Create(Self, True, 'specularFactor', Vector3(0, 0, 0));
1572 FdSpecularFactor.ChangeAlways := chVisibleNonGeometry;
1573 AddField(FFdSpecularFactor);
1574
1575 FFdSpecularTextureId := TSFInt32.Create(Self, True, 'specularTextureId', -1);
1576 FdSpecularTextureId.ChangeAlways := chVisibleNonGeometry;
1577 AddField(FFdSpecularTextureId);
1578
1579 FFdSpecularTextureCoordinatesId := TSFInt32.Create(Self, True, 'specularTextureCoordinatesId', 0);
1580 FdSpecularTextureCoordinatesId.ChangeAlways := chVisibleNonGeometry;
1581 AddField(FFdSpecularTextureCoordinatesId);
1582
1583 FFdSpecularTextureChannelMask := TSFString.Create(Self, True, 'specularTextureChannelMask', 'rgb');
1584 FdSpecularTextureChannelMask.ChangeAlways := chVisibleNonGeometry;
1585 AddField(FFdSpecularTextureChannelMask);
1586
1587 FFdSpecularTexture := TSFNode.Create(Self, True, 'specularTexture', [TAbstractTextureNode]);
1588 FdSpecularTexture.ChangeAlways := chVisibleNonGeometry;
1589 AddField(FFdSpecularTexture);
1590
1591 FFdTransmissionFactor := TSFVec3f.Create(Self, True, 'transmissionFactor', Vector3(0, 0, 0));
1592 FdTransmissionFactor.ChangeAlways := chVisibleNonGeometry;
1593 AddField(FFdTransmissionFactor);
1594
1595 FFdTransmissionTextureId := TSFInt32.Create(Self, True, 'transmissionTextureId', -1);
1596 FdTransmissionTextureId.ChangeAlways := chVisibleNonGeometry;
1597 AddField(FFdTransmissionTextureId);
1598
1599 FFdTransmissionTextureCoordinatesId := TSFInt32.Create(Self, True, 'transmissionTextureCoordinatesId', 0);
1600 FdTransmissionTextureCoordinatesId.ChangeAlways := chVisibleNonGeometry;
1601 AddField(FFdTransmissionTextureCoordinatesId);
1602
1603 FFdTransmissionTextureChannelMask := TSFString.Create(Self, True, 'transmissionTextureChannelMask', 'rgb');
1604 FdTransmissionTextureChannelMask.ChangeAlways := chVisibleNonGeometry;
1605 AddField(FFdTransmissionTextureChannelMask);
1606
1607 FFdTransmissionTexture := TSFNode.Create(Self, True, 'transmissionTexture', [TAbstractTextureNode]);
1608 FdTransmissionTexture.ChangeAlways := chVisibleNonGeometry;
1609 AddField(FFdTransmissionTexture);
1610
1611 FFdTangentTextureCoordinatesId := TSFInt32.Create(Self, True, 'tangentTextureCoordinatesId', -1);
1612 FdTangentTextureCoordinatesId.ChangeAlways := chVisibleNonGeometry;
1613 AddField(FFdTangentTextureCoordinatesId);
1614
1615 FFdBinormalTextureCoordinatesId := TSFInt32.Create(Self, True, 'binormalTextureCoordinatesId', -1);
1616 FdBinormalTextureCoordinatesId.ChangeAlways := chVisibleNonGeometry;
1617 AddField(FFdBinormalTextureCoordinatesId);
1618
1619 FFdInvertAlphaTexture := TSFBool.Create(Self, True, 'invertAlphaTexture', false);
1620 FdInvertAlphaTexture.ChangeAlways := chVisibleNonGeometry;
1621 AddField(FFdInvertAlphaTexture);
1622
1623 FFdRelativeIndexOfRefraction := TSFFloat.Create(Self, True, 'relativeIndexOfRefraction', 1);
1624 FdRelativeIndexOfRefraction.ChangeAlways := chVisibleNonGeometry;
1625 AddField(FFdRelativeIndexOfRefraction);
1626
1627 FFdFresnelBlend := TSFFloat.Create(Self, True, 'fresnelBlend', 0);
1628 FdFresnelBlend.ChangeAlways := chVisibleNonGeometry;
1629 AddField(FFdFresnelBlend);
1630
1631 FFdTextureTransformEnabled := TMFBool.Create(Self, False, 'textureTransformEnabled', [false, false, false, false, false, false, false, false]);
1632 FdTextureTransformEnabled.ChangeAlways := chVisibleNonGeometry;
1633 AddField(FFdTextureTransformEnabled);
1634
1635 DefaultContainerField := 'shaders';
1636 end;
1637
1638 {$endif read_implementation}