@babylonjs/loaders 8.28.1 → 8.28.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/OBJ/solidParser.d.ts +8 -7
  2. package/OBJ/solidParser.js +95 -53
  3. package/OBJ/solidParser.js.map +1 -1
  4. package/glTF/2.0/Extensions/KHR_materials_anisotropy.d.ts +1 -1
  5. package/glTF/2.0/Extensions/KHR_materials_anisotropy.js +15 -10
  6. package/glTF/2.0/Extensions/KHR_materials_anisotropy.js.map +1 -1
  7. package/glTF/2.0/Extensions/KHR_materials_clearcoat.js +44 -28
  8. package/glTF/2.0/Extensions/KHR_materials_clearcoat.js.map +1 -1
  9. package/glTF/2.0/Extensions/KHR_materials_clearcoat_anisotropy.d.ts +42 -0
  10. package/glTF/2.0/Extensions/KHR_materials_clearcoat_anisotropy.js +66 -0
  11. package/glTF/2.0/Extensions/KHR_materials_clearcoat_anisotropy.js.map +1 -0
  12. package/glTF/2.0/Extensions/KHR_materials_clearcoat_color.d.ts +42 -0
  13. package/glTF/2.0/Extensions/KHR_materials_clearcoat_color.js +62 -0
  14. package/glTF/2.0/Extensions/KHR_materials_clearcoat_color.js.map +1 -0
  15. package/glTF/2.0/Extensions/KHR_materials_clearcoat_darkening.d.ts +43 -0
  16. package/glTF/2.0/Extensions/KHR_materials_clearcoat_darkening.js +62 -0
  17. package/glTF/2.0/Extensions/KHR_materials_clearcoat_darkening.js.map +1 -0
  18. package/glTF/2.0/Extensions/{EXT_materials_diffuse_roughness.d.ts → KHR_materials_diffuse_roughness.d.ts} +5 -5
  19. package/glTF/2.0/Extensions/{EXT_materials_diffuse_roughness.js → KHR_materials_diffuse_roughness.js} +8 -18
  20. package/glTF/2.0/Extensions/KHR_materials_diffuse_roughness.js.map +1 -0
  21. package/glTF/2.0/Extensions/KHR_materials_diffuse_transmission.js +6 -31
  22. package/glTF/2.0/Extensions/KHR_materials_diffuse_transmission.js.map +1 -1
  23. package/glTF/2.0/Extensions/KHR_materials_dispersion.js +3 -7
  24. package/glTF/2.0/Extensions/KHR_materials_dispersion.js.map +1 -1
  25. package/glTF/2.0/Extensions/KHR_materials_emissive_strength.js +5 -9
  26. package/glTF/2.0/Extensions/KHR_materials_emissive_strength.js.map +1 -1
  27. package/glTF/2.0/Extensions/KHR_materials_ior.js +3 -10
  28. package/glTF/2.0/Extensions/KHR_materials_ior.js.map +1 -1
  29. package/glTF/2.0/Extensions/KHR_materials_iridescence.js +13 -11
  30. package/glTF/2.0/Extensions/KHR_materials_iridescence.js.map +1 -1
  31. package/glTF/2.0/Extensions/KHR_materials_sheen.js +11 -22
  32. package/glTF/2.0/Extensions/KHR_materials_sheen.js.map +1 -1
  33. package/glTF/2.0/Extensions/KHR_materials_specular.js +9 -17
  34. package/glTF/2.0/Extensions/KHR_materials_specular.js.map +1 -1
  35. package/glTF/2.0/Extensions/KHR_materials_transmission.js +25 -39
  36. package/glTF/2.0/Extensions/KHR_materials_transmission.js.map +1 -1
  37. package/glTF/2.0/Extensions/KHR_materials_unlit.js +7 -13
  38. package/glTF/2.0/Extensions/KHR_materials_unlit.js.map +1 -1
  39. package/glTF/2.0/Extensions/KHR_materials_volume.js +13 -22
  40. package/glTF/2.0/Extensions/KHR_materials_volume.js.map +1 -1
  41. package/glTF/2.0/Extensions/MSFT_minecraftMesh.js +1 -2
  42. package/glTF/2.0/Extensions/MSFT_minecraftMesh.js.map +1 -1
  43. package/glTF/2.0/Extensions/MSFT_sRGBFactors.js +5 -8
  44. package/glTF/2.0/Extensions/MSFT_sRGBFactors.js.map +1 -1
  45. package/glTF/2.0/Extensions/dynamic.js +3 -3
  46. package/glTF/2.0/Extensions/dynamic.js.map +1 -1
  47. package/glTF/2.0/Extensions/index.d.ts +4 -1
  48. package/glTF/2.0/Extensions/index.js +4 -1
  49. package/glTF/2.0/Extensions/index.js.map +1 -1
  50. package/glTF/2.0/glTFLoader.d.ts +17 -0
  51. package/glTF/2.0/glTFLoader.js +104 -50
  52. package/glTF/2.0/glTFLoader.js.map +1 -1
  53. package/glTF/2.0/index.d.ts +2 -0
  54. package/glTF/2.0/index.js +2 -0
  55. package/glTF/2.0/index.js.map +1 -1
  56. package/glTF/2.0/materialLoadingAdapter.d.ts +314 -0
  57. package/glTF/2.0/materialLoadingAdapter.js +2 -0
  58. package/glTF/2.0/materialLoadingAdapter.js.map +1 -0
  59. package/glTF/2.0/openPbrMaterialLoadingAdapter.d.ts +594 -0
  60. package/glTF/2.0/openPbrMaterialLoadingAdapter.js +902 -0
  61. package/glTF/2.0/openPbrMaterialLoadingAdapter.js.map +1 -0
  62. package/glTF/2.0/pbrMaterialLoadingAdapter.d.ts +612 -0
  63. package/glTF/2.0/pbrMaterialLoadingAdapter.js +973 -0
  64. package/glTF/2.0/pbrMaterialLoadingAdapter.js.map +1 -0
  65. package/glTF/glTFFileLoader.d.ts +5 -0
  66. package/glTF/glTFFileLoader.js +6 -0
  67. package/glTF/glTFFileLoader.js.map +1 -1
  68. package/package.json +3 -3
  69. package/glTF/2.0/Extensions/EXT_materials_diffuse_roughness.js.map +0 -1
@@ -0,0 +1,594 @@
1
+ import type { OpenPBRMaterial } from "@babylonjs/core/Materials/PBR/openPbrMaterial.js";
2
+ import type { Material } from "@babylonjs/core/Materials/material.js";
3
+ import type { BaseTexture } from "@babylonjs/core/Materials/Textures/baseTexture.js";
4
+ import type { Nullable } from "@babylonjs/core/types.js";
5
+ import type { Color3 } from "@babylonjs/core/Maths/math.color.js";
6
+ import type { IMaterialLoadingAdapter } from "./materialLoadingAdapter.js";
7
+ /**
8
+ * Material Loading Adapter for OpenPBR materials that provides a unified OpenPBR-like interface.
9
+ */
10
+ export declare class OpenPBRMaterialLoadingAdapter implements IMaterialLoadingAdapter {
11
+ private _material;
12
+ /**
13
+ * Creates a new instance of the OpenPBRMaterialLoadingAdapter.
14
+ * @param material - The OpenPBR material to adapt.
15
+ */
16
+ constructor(material: Material);
17
+ /**
18
+ * Gets the underlying material
19
+ */
20
+ get material(): OpenPBRMaterial;
21
+ /**
22
+ * Whether the material should be treated as unlit
23
+ */
24
+ get isUnlit(): boolean;
25
+ /**
26
+ * Sets whether the material should be treated as unlit
27
+ */
28
+ set isUnlit(value: boolean);
29
+ /**
30
+ * Sets whether back face culling is enabled.
31
+ * @param value True to enable back face culling
32
+ */
33
+ set backFaceCulling(value: boolean);
34
+ /**
35
+ * Gets whether back face culling is enabled.
36
+ * @returns True if back face culling is enabled
37
+ */
38
+ get backFaceCulling(): boolean;
39
+ /**
40
+ * Sets whether two-sided lighting is enabled.
41
+ * @param value True to enable two-sided lighting
42
+ */
43
+ set twoSidedLighting(value: boolean);
44
+ /**
45
+ * Gets whether two-sided lighting is enabled.
46
+ * @returns True if two-sided lighting is enabled
47
+ */
48
+ get twoSidedLighting(): boolean;
49
+ /**
50
+ * Sets the alpha cutoff value for alpha testing.
51
+ * Note: OpenPBR doesn't have a direct equivalent, so this is a no-op.
52
+ * @param value The alpha cutoff threshold (ignored for OpenPBR)
53
+ */
54
+ set alphaCutOff(value: number);
55
+ /**
56
+ * Gets the alpha cutoff value.
57
+ * @returns Default value of 0.5 (OpenPBR doesn't support this directly)
58
+ */
59
+ get alphaCutOff(): number;
60
+ /**
61
+ * Sets whether to use alpha from the base color texture.
62
+ * Note: OpenPBR handles this differently through the baseColorTexture alpha channel.
63
+ * @param value True to use alpha from base color texture (handled automatically in OpenPBR)
64
+ */
65
+ set useAlphaFromBaseColorTexture(value: boolean);
66
+ /**
67
+ * Gets whether alpha is used from the base color texture.
68
+ * @returns Always false for OpenPBR as it's handled automatically
69
+ */
70
+ get useAlphaFromBaseColorTexture(): boolean;
71
+ /**
72
+ * Gets whether the transparency is treated as alpha coverage.
73
+ */
74
+ get transparencyAsAlphaCoverage(): boolean;
75
+ /**
76
+ * Sets/Gets whether the transparency is treated as alpha coverage
77
+ */
78
+ set transparencyAsAlphaCoverage(value: boolean);
79
+ /**
80
+ * Sets the base color of the OpenPBR material.
81
+ * @param value The base color as a Color3
82
+ */
83
+ set baseColor(value: Color3);
84
+ /**
85
+ * Gets the base color of the OpenPBR material.
86
+ * @returns The base color as a Color3
87
+ */
88
+ get baseColor(): Color3;
89
+ /**
90
+ * Sets the base color texture of the OpenPBR material.
91
+ * @param value The base color texture or null
92
+ */
93
+ set baseColorTexture(value: Nullable<BaseTexture>);
94
+ /**
95
+ * Gets the base color texture of the OpenPBR material.
96
+ * @returns The base color texture or null
97
+ */
98
+ get baseColorTexture(): Nullable<BaseTexture>;
99
+ /**
100
+ * Sets the base diffuse roughness of the OpenPBR material.
101
+ * @param value The diffuse roughness value (0-1)
102
+ */
103
+ set baseDiffuseRoughness(value: number);
104
+ /**
105
+ * Gets the base diffuse roughness of the OpenPBR material.
106
+ * @returns The diffuse roughness value (0-1)
107
+ */
108
+ get baseDiffuseRoughness(): number;
109
+ /**
110
+ * Sets the base diffuse roughness texture of the OpenPBR material.
111
+ * @param value The diffuse roughness texture or null
112
+ */
113
+ set baseDiffuseRoughnessTexture(value: Nullable<BaseTexture>);
114
+ /**
115
+ * Gets the base diffuse roughness texture of the OpenPBR material.
116
+ * @returns The diffuse roughness texture or null
117
+ */
118
+ get baseDiffuseRoughnessTexture(): Nullable<BaseTexture>;
119
+ /**
120
+ * Sets the base metalness value of the OpenPBR material.
121
+ * @param value The metalness value (0-1)
122
+ */
123
+ set baseMetalness(value: number);
124
+ /**
125
+ * Gets the base metalness value of the OpenPBR material.
126
+ * @returns The metalness value (0-1)
127
+ */
128
+ get baseMetalness(): number;
129
+ /**
130
+ * Sets the base metalness texture of the OpenPBR material.
131
+ * @param value The metalness texture or null
132
+ */
133
+ set baseMetalnessTexture(value: Nullable<BaseTexture>);
134
+ /**
135
+ * Gets the base metalness texture of the OpenPBR material.
136
+ * @returns The metalness texture or null
137
+ */
138
+ get baseMetalnessTexture(): Nullable<BaseTexture>;
139
+ /**
140
+ * Sets whether to use roughness from the metallic texture's green channel.
141
+ * @param value True to use green channel for roughness
142
+ */
143
+ set useRoughnessFromMetallicTextureGreen(value: boolean);
144
+ /**
145
+ * Sets whether to use metalness from the metallic texture's blue channel.
146
+ * @param value True to use blue channel for metalness
147
+ */
148
+ set useMetallicFromMetallicTextureBlue(value: boolean);
149
+ /**
150
+ * Configures specular properties for OpenPBR material.
151
+ * @param _enableEdgeColor Whether to enable edge color support (ignored for OpenPBR)
152
+ */
153
+ enableSpecularEdgeColor(_enableEdgeColor?: boolean): void;
154
+ /**
155
+ * Sets the specular weight of the OpenPBR material.
156
+ * @param value The specular weight value (0-1)
157
+ */
158
+ set specularWeight(value: number);
159
+ /**
160
+ * Gets the specular weight of the OpenPBR material.
161
+ * @returns The specular weight value (0-1)
162
+ */
163
+ get specularWeight(): number;
164
+ /**
165
+ * Sets the specular weight texture of the OpenPBR material.
166
+ * If the same texture is used for specular color, optimizes by using alpha channel for weight.
167
+ * @param value The specular weight texture or null
168
+ */
169
+ set specularWeightTexture(value: Nullable<BaseTexture>);
170
+ /**
171
+ * Gets the specular weight texture of the OpenPBR material.
172
+ * @returns The specular weight texture or null
173
+ */
174
+ get specularWeightTexture(): Nullable<BaseTexture>;
175
+ /**
176
+ * Sets the specular color of the OpenPBR material.
177
+ * @param value The specular color as a Color3
178
+ */
179
+ set specularColor(value: Color3);
180
+ /**
181
+ * Gets the specular color of the OpenPBR material.
182
+ * @returns The specular color as a Color3
183
+ */
184
+ get specularColor(): Color3;
185
+ /**
186
+ * Sets the specular color texture of the OpenPBR material.
187
+ * If the same texture is used for specular weight, optimizes by using alpha channel for weight.
188
+ * @param value The specular color texture or null
189
+ */
190
+ set specularColorTexture(value: Nullable<BaseTexture>);
191
+ /**
192
+ * Gets the specular color texture of the OpenPBR material.
193
+ * @returns The specular color texture or null
194
+ */
195
+ get specularColorTexture(): Nullable<BaseTexture>;
196
+ /**
197
+ * Sets the specular roughness of the OpenPBR material.
198
+ * @param value The roughness value (0-1)
199
+ */
200
+ set specularRoughness(value: number);
201
+ /**
202
+ * Gets the specular roughness of the OpenPBR material.
203
+ * @returns The roughness value (0-1)
204
+ */
205
+ get specularRoughness(): number;
206
+ /**
207
+ * Sets the specular roughness texture of the OpenPBR material.
208
+ * @param value The roughness texture or null
209
+ */
210
+ set specularRoughnessTexture(value: Nullable<BaseTexture>);
211
+ /**
212
+ * Gets the specular roughness texture of the OpenPBR material.
213
+ * @returns The roughness texture or null
214
+ */
215
+ get specularRoughnessTexture(): Nullable<BaseTexture>;
216
+ /**
217
+ * Sets the specular index of refraction (IOR) of the OpenPBR material.
218
+ * @param value The IOR value
219
+ */
220
+ set specularIor(value: number);
221
+ /**
222
+ * Gets the specular index of refraction (IOR) of the OpenPBR material.
223
+ * @returns The IOR value
224
+ */
225
+ get specularIor(): number;
226
+ /**
227
+ * Sets the emission color of the OpenPBR material.
228
+ * @param value The emission color as a Color3
229
+ */
230
+ set emissionColor(value: Color3);
231
+ /**
232
+ * Gets the emission color of the OpenPBR material.
233
+ * @returns The emission color as a Color3
234
+ */
235
+ get emissionColor(): Color3;
236
+ /**
237
+ * Sets the emission luminance of the OpenPBR material.
238
+ * @param value The emission luminance value
239
+ */
240
+ set emissionLuminance(value: number);
241
+ /**
242
+ * Gets the emission luminance of the OpenPBR material.
243
+ * @returns The emission luminance value
244
+ */
245
+ get emissionLuminance(): number;
246
+ /**
247
+ * Sets the emission color texture of the OpenPBR material.
248
+ * @param value The emission texture or null
249
+ */
250
+ set emissionColorTexture(value: Nullable<BaseTexture>);
251
+ /**
252
+ * Gets the emission color texture of the OpenPBR material.
253
+ * @returns The emission texture or null
254
+ */
255
+ get emissionColorTexture(): Nullable<BaseTexture>;
256
+ /**
257
+ * Sets the ambient occlusion texture of the OpenPBR material.
258
+ * @param value The ambient occlusion texture or null
259
+ */
260
+ set ambientOcclusionTexture(value: Nullable<BaseTexture>);
261
+ /**
262
+ * Gets the ambient occlusion texture of the OpenPBR material.
263
+ * @returns The ambient occlusion texture or null
264
+ */
265
+ get ambientOcclusionTexture(): Nullable<BaseTexture>;
266
+ /**
267
+ * Sets the ambient occlusion texture strength by modifying the texture's level.
268
+ * @param value The strength value (typically 0-1)
269
+ */
270
+ set ambientOcclusionTextureStrength(value: number);
271
+ /**
272
+ * Gets the ambient occlusion texture strength from the texture's level property.
273
+ * @returns The strength value, defaults to 1.0 if no texture or level is set
274
+ */
275
+ get ambientOcclusionTextureStrength(): number;
276
+ /**
277
+ * Configures coat parameters for OpenPBR material.
278
+ * OpenPBR coat is already built-in, so no configuration is needed.
279
+ */
280
+ configureCoat(): void;
281
+ /**
282
+ * Sets the coat weight of the OpenPBR material.
283
+ * @param value The coat weight value (0-1)
284
+ */
285
+ set coatWeight(value: number);
286
+ /**
287
+ * Gets the coat weight of the OpenPBR material.
288
+ * @returns The coat weight value (0-1)
289
+ */
290
+ get coatWeight(): number;
291
+ /**
292
+ * Sets the coat weight texture of the OpenPBR material.
293
+ * @param value The coat weight texture or null
294
+ */
295
+ set coatWeightTexture(value: Nullable<BaseTexture>);
296
+ /**
297
+ * Gets the coat weight texture of the OpenPBR material.
298
+ * @returns The coat weight texture or null
299
+ */
300
+ get coatWeightTexture(): Nullable<BaseTexture>;
301
+ /**
302
+ * Sets the coat color of the OpenPBR material.
303
+ * @param value The coat color as a Color3
304
+ */
305
+ set coatColor(value: Color3);
306
+ /**
307
+ * Sets the coat color texture of the OpenPBR material.
308
+ * @param value The coat color texture or null
309
+ */
310
+ set coatColorTexture(value: Nullable<BaseTexture>);
311
+ /**
312
+ * Sets the coat roughness of the OpenPBR material.
313
+ * @param value The coat roughness value (0-1)
314
+ */
315
+ set coatRoughness(value: number);
316
+ /**
317
+ * Gets the coat roughness of the OpenPBR material.
318
+ * @returns The coat roughness value (0-1)
319
+ */
320
+ get coatRoughness(): number;
321
+ /**
322
+ * Sets the coat roughness texture of the OpenPBR material.
323
+ * @param value The coat roughness texture or null
324
+ */
325
+ set coatRoughnessTexture(value: Nullable<BaseTexture>);
326
+ /**
327
+ * Gets the coat roughness texture of the OpenPBR material.
328
+ * @returns The coat roughness texture or null
329
+ */
330
+ get coatRoughnessTexture(): Nullable<BaseTexture>;
331
+ /**
332
+ * Sets the coat darkening value of the OpenPBR material.
333
+ * @param value The coat darkening value
334
+ */
335
+ set coatDarkening(value: number);
336
+ /**
337
+ * Sets the coat darkening texture (OpenPBR: coatDarkeningTexture, no PBR equivalent)
338
+ */
339
+ set coatDarkeningTexture(value: Nullable<BaseTexture>);
340
+ /**
341
+ * Sets the coat roughness anisotropy.
342
+ * TODO: Implementation pending OpenPBR coat anisotropy feature availability.
343
+ * @param value The coat anisotropy intensity value
344
+ */
345
+ set coatRoughnessAnisotropy(value: number);
346
+ /**
347
+ * Gets the coat roughness anisotropy.
348
+ * TODO: Implementation pending OpenPBR coat anisotropy feature availability.
349
+ * @returns Currently returns 0 as coat anisotropy is not yet available
350
+ */
351
+ get coatRoughnessAnisotropy(): number;
352
+ /**
353
+ * Sets the coat tangent angle for anisotropy.
354
+ * TODO: Implementation pending OpenPBR coat anisotropy feature availability.
355
+ * @param value The coat anisotropy rotation angle in radians
356
+ */
357
+ set geometryCoatTangentAngle(value: number);
358
+ /**
359
+ * Sets the coat tangent texture for anisotropy.
360
+ * TODO: Implementation pending OpenPBR coat anisotropy feature availability.
361
+ * @param value The coat anisotropy texture or null
362
+ */
363
+ set geometryCoatTangentTexture(value: Nullable<BaseTexture>);
364
+ /**
365
+ * Gets the coat tangent texture for anisotropy.
366
+ * TODO: Implementation pending OpenPBR coat anisotropy feature availability.
367
+ * @returns Currently returns null as coat anisotropy is not yet available
368
+ */
369
+ get geometryCoatTangentTexture(): Nullable<BaseTexture>;
370
+ /**
371
+ * Sets the transmission weight.
372
+ * TODO: Implementation pending OpenPBR transmission feature availability.
373
+ * @param value The transmission weight value (0-1)
374
+ */
375
+ set transmissionWeight(value: number);
376
+ /**
377
+ * Sets the transmission weight texture.
378
+ * TODO: Implementation pending OpenPBR transmission feature availability.
379
+ * @param value The transmission weight texture or null
380
+ */
381
+ set transmissionWeightTexture(value: Nullable<BaseTexture>);
382
+ /**
383
+ * Gets the transmission weight.
384
+ * TODO: Implementation pending OpenPBR transmission feature availability.
385
+ * @returns Currently returns 0 as transmission is not yet available
386
+ */
387
+ get transmissionWeight(): number;
388
+ /**
389
+ * Gets the transmission dispersion Abbe number.
390
+ * @param value The Abbe number value
391
+ */
392
+ set transmissionDispersionAbbeNumber(value: number);
393
+ /**
394
+ * Configures transmission for OpenPBR material.
395
+ * TODO: Implementation pending OpenPBR transmission feature availability.
396
+ */
397
+ configureTransmission(): void;
398
+ /**
399
+ * Sets the attenuation distance for volume scattering.
400
+ * TODO: Implementation pending OpenPBR volume feature availability.
401
+ * @param value The attenuation distance value
402
+ */
403
+ set transmissionDepth(value: number);
404
+ /**
405
+ * Sets the attenuation color for volume scattering.
406
+ * TODO: Implementation pending OpenPBR volume feature availability.
407
+ * @param value The attenuation color as a Color3
408
+ */
409
+ set transmissionColor(value: Color3);
410
+ /**
411
+ * Sets the thickness texture for volume scattering.
412
+ * TODO: Implementation pending OpenPBR volume feature availability.
413
+ * @param value The thickness texture or null
414
+ */
415
+ set volumeThicknessTexture(value: Nullable<BaseTexture>);
416
+ /**
417
+ * Sets the thickness factor for volume scattering.
418
+ * TODO: Implementation pending OpenPBR volume feature availability.
419
+ * @param value The thickness value
420
+ */
421
+ set volumeThickness(value: number);
422
+ /**
423
+ * Configures subsurface properties for PBR material
424
+ */
425
+ configureSubsurface(): void;
426
+ /**
427
+ * Sets the subsurface weight
428
+ */
429
+ set subsurfaceWeight(value: number);
430
+ get subsurfaceWeight(): number;
431
+ /**
432
+ * Sets the subsurface weight texture
433
+ */
434
+ set subsurfaceWeightTexture(value: Nullable<BaseTexture>);
435
+ /**
436
+ * Sets the subsurface color.
437
+ * @param value The subsurface tint color as a Color3
438
+ */
439
+ set subsurfaceColor(value: Color3);
440
+ /**
441
+ * Sets the subsurface color texture.
442
+ * @param value The subsurface tint texture or null
443
+ */
444
+ set subsurfaceColorTexture(value: Nullable<BaseTexture>);
445
+ /**
446
+ * Configures fuzz for OpenPBR.
447
+ * Enables fuzz and sets up proper configuration.
448
+ */
449
+ configureFuzz(): void;
450
+ /**
451
+ * Sets the fuzz weight.
452
+ * TODO: Implementation pending OpenPBR fuzz feature availability.
453
+ * @param value The fuzz weight value
454
+ */
455
+ set fuzzWeight(value: number);
456
+ /**
457
+ * Sets the fuzz color.
458
+ * TODO: Implementation pending OpenPBR fuzz feature availability.
459
+ * @param value The fuzz color as a Color3
460
+ */
461
+ set fuzzColor(value: Color3);
462
+ /**
463
+ * Sets the fuzz color texture.
464
+ * TODO: Implementation pending OpenPBR fuzz feature availability.
465
+ * @param value The fuzz color texture or null
466
+ */
467
+ set fuzzColorTexture(value: Nullable<BaseTexture>);
468
+ /**
469
+ * Sets the fuzz roughness.
470
+ * TODO: Implementation pending OpenPBR fuzz feature availability.
471
+ * @param value The fuzz roughness value (0-1)
472
+ */
473
+ set fuzzRoughness(value: number);
474
+ /**
475
+ * Sets the fuzz roughness texture.
476
+ * TODO: Implementation pending OpenPBR fuzz feature availability.
477
+ * @param value The fuzz roughness texture or null
478
+ */
479
+ set fuzzRoughnessTexture(value: Nullable<BaseTexture>);
480
+ /**
481
+ * Sets the specular roughness anisotropy of the OpenPBR material.
482
+ * @param value The anisotropy intensity value
483
+ */
484
+ set specularRoughnessAnisotropy(value: number);
485
+ /**
486
+ * Gets the specular roughness anisotropy of the OpenPBR material.
487
+ * @returns The anisotropy intensity value
488
+ */
489
+ get specularRoughnessAnisotropy(): number;
490
+ /**
491
+ * Sets the anisotropy rotation angle.
492
+ * @param value The anisotropy rotation angle in radians
493
+ */
494
+ set geometryTangentAngle(value: number);
495
+ /**
496
+ * Sets the geometry tangent texture for anisotropy.
497
+ * Automatically enables using anisotropy from the tangent texture.
498
+ * @param value The anisotropy texture or null
499
+ */
500
+ set geometryTangentTexture(value: Nullable<BaseTexture>);
501
+ /**
502
+ * Gets the geometry tangent texture for anisotropy.
503
+ * @returns The anisotropy texture or null
504
+ */
505
+ get geometryTangentTexture(): Nullable<BaseTexture>;
506
+ /**
507
+ * Configures glTF-style anisotropy for the OpenPBR material.
508
+ * @param useGltfStyle Whether to use glTF-style anisotropy
509
+ */
510
+ configureGltfStyleAnisotropy(useGltfStyle?: boolean): void;
511
+ /**
512
+ * Sets the iridescence weight.
513
+ * TODO: Implementation pending OpenPBR iridescence feature availability.
514
+ * @param value The iridescence intensity value
515
+ */
516
+ set iridescenceWeight(value: number);
517
+ /**
518
+ * Sets the iridescence IOR.
519
+ * TODO: Implementation pending OpenPBR iridescence feature availability.
520
+ * @param value The iridescence IOR value
521
+ */
522
+ set iridescenceIor(value: number);
523
+ /**
524
+ * Sets the iridescence thickness minimum.
525
+ * TODO: Implementation pending OpenPBR iridescence feature availability.
526
+ * @param value The minimum thickness value in nanometers
527
+ */
528
+ set iridescenceThicknessMinimum(value: number);
529
+ /**
530
+ * Sets the iridescence thickness maximum.
531
+ * TODO: Implementation pending OpenPBR iridescence feature availability.
532
+ * @param value The maximum thickness value in nanometers
533
+ */
534
+ set iridescenceThicknessMaximum(value: number);
535
+ /**
536
+ * Sets the iridescence texture.
537
+ * TODO: Implementation pending OpenPBR iridescence feature availability.
538
+ * @param value The iridescence intensity texture or null
539
+ */
540
+ set iridescenceTexture(value: Nullable<BaseTexture>);
541
+ /**
542
+ * Sets the iridescence thickness texture.
543
+ * TODO: Implementation pending OpenPBR iridescence feature availability.
544
+ * @param value The iridescence thickness texture or null
545
+ */
546
+ set iridescenceThicknessTexture(value: Nullable<BaseTexture>);
547
+ /**
548
+ * Sets whether the OpenPBR material is unlit.
549
+ * @param value True to make the material unlit
550
+ */
551
+ set unlit(value: boolean);
552
+ /**
553
+ * Sets the geometry opacity of the OpenPBR material.
554
+ * @param value The opacity value (0-1)
555
+ */
556
+ set geometryOpacity(value: number);
557
+ /**
558
+ * Gets the geometry opacity of the OpenPBR material.
559
+ * @returns The opacity value (0-1)
560
+ */
561
+ get geometryOpacity(): number;
562
+ /**
563
+ * Sets the geometry normal texture of the OpenPBR material.
564
+ * @param value The normal texture or null
565
+ */
566
+ set geometryNormalTexture(value: Nullable<BaseTexture>);
567
+ /**
568
+ * Gets the geometry normal texture of the OpenPBR material.
569
+ * @returns The normal texture or null
570
+ */
571
+ get geometryNormalTexture(): Nullable<BaseTexture>;
572
+ /**
573
+ * Sets the normal map inversions for the OpenPBR material.
574
+ * Note: OpenPBR may handle normal map inversions differently or may not need them.
575
+ * @param invertX Whether to invert the normal map on the X axis (may be ignored)
576
+ * @param invertY Whether to invert the normal map on the Y axis (may be ignored)
577
+ */
578
+ setNormalMapInversions(invertX: boolean, invertY: boolean): void;
579
+ /**
580
+ * Sets the geometry coat normal texture of the OpenPBR material.
581
+ * @param value The coat normal texture or null
582
+ */
583
+ set geometryCoatNormalTexture(value: Nullable<BaseTexture>);
584
+ /**
585
+ * Gets the geometry coat normal texture of the OpenPBR material.
586
+ * @returns The coat normal texture or null
587
+ */
588
+ get geometryCoatNormalTexture(): Nullable<BaseTexture>;
589
+ /**
590
+ * Sets the geometry coat normal texture scale.
591
+ * @param value The scale value for the coat normal texture
592
+ */
593
+ set geometryCoatNormalTextureScale(value: number);
594
+ }