@babylonjs/core 8.1.1 → 8.2.0

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 (102) hide show
  1. package/AudioV2/abstractAudio/abstractSound.js +1 -1
  2. package/AudioV2/abstractAudio/abstractSound.js.map +1 -1
  3. package/Culling/ray.core.d.ts +1 -1
  4. package/Culling/ray.core.js +1 -1
  5. package/Culling/ray.core.js.map +1 -1
  6. package/Debug/debugLayer.js +8 -1
  7. package/Debug/debugLayer.js.map +1 -1
  8. package/Engines/abstractEngine.js +2 -2
  9. package/Engines/abstractEngine.js.map +1 -1
  10. package/FrameGraph/Node/Blocks/PostProcesses/imageProcessingPostProcessBlock.d.ts +71 -0
  11. package/FrameGraph/Node/Blocks/PostProcesses/imageProcessingPostProcessBlock.js +246 -0
  12. package/FrameGraph/Node/Blocks/PostProcesses/imageProcessingPostProcessBlock.js.map +1 -0
  13. package/FrameGraph/Node/Blocks/Rendering/baseObjectRendererBlock.d.ts +1 -1
  14. package/FrameGraph/Node/Blocks/Rendering/baseObjectRendererBlock.js +4 -4
  15. package/FrameGraph/Node/Blocks/Rendering/baseObjectRendererBlock.js.map +1 -1
  16. package/FrameGraph/Node/Blocks/index.d.ts +1 -0
  17. package/FrameGraph/Node/Blocks/index.js +1 -0
  18. package/FrameGraph/Node/Blocks/index.js.map +1 -1
  19. package/FrameGraph/Tasks/PostProcesses/imageProcessingTask.d.ts +17 -0
  20. package/FrameGraph/Tasks/PostProcesses/imageProcessingTask.js +23 -0
  21. package/FrameGraph/Tasks/PostProcesses/imageProcessingTask.js.map +1 -0
  22. package/FrameGraph/Tasks/Rendering/objectRendererTask.d.ts +3 -2
  23. package/FrameGraph/Tasks/Rendering/objectRendererTask.js +5 -4
  24. package/FrameGraph/Tasks/Rendering/objectRendererTask.js.map +1 -1
  25. package/FrameGraph/Tasks/Rendering/taaObjectRendererTask.js +1 -1
  26. package/FrameGraph/Tasks/Rendering/taaObjectRendererTask.js.map +1 -1
  27. package/FrameGraph/index.d.ts +1 -0
  28. package/FrameGraph/index.js +1 -0
  29. package/FrameGraph/index.js.map +1 -1
  30. package/Materials/Node/Blocks/Dual/lightBlock.js +6 -3
  31. package/Materials/Node/Blocks/Dual/lightBlock.js.map +1 -1
  32. package/Materials/Node/Blocks/PBR/pbrMetallicRoughnessBlock.js +4 -2
  33. package/Materials/Node/Blocks/PBR/pbrMetallicRoughnessBlock.js.map +1 -1
  34. package/Materials/PBR/pbrBaseMaterial.js +2 -1
  35. package/Materials/PBR/pbrBaseMaterial.js.map +1 -1
  36. package/Materials/PBR/pbrSubSurfaceConfiguration.d.ts +13 -0
  37. package/Materials/PBR/pbrSubSurfaceConfiguration.js +17 -0
  38. package/Materials/PBR/pbrSubSurfaceConfiguration.js.map +1 -1
  39. package/Materials/Textures/renderTargetTexture.d.ts +4 -3
  40. package/Materials/Textures/renderTargetTexture.js +6 -5
  41. package/Materials/Textures/renderTargetTexture.js.map +1 -1
  42. package/Materials/Textures/texture.js +3 -2
  43. package/Materials/Textures/texture.js.map +1 -1
  44. package/Materials/imageProcessingConfiguration.d.ts +8 -0
  45. package/Materials/imageProcessingConfiguration.js +16 -2
  46. package/Materials/imageProcessingConfiguration.js.map +1 -1
  47. package/Meshes/GaussianSplatting/gaussianSplattingMesh.js +15 -6
  48. package/Meshes/GaussianSplatting/gaussianSplattingMesh.js.map +1 -1
  49. package/Misc/fileTools.d.ts +6 -0
  50. package/Misc/fileTools.js +30 -0
  51. package/Misc/fileTools.js.map +1 -1
  52. package/Physics/v2/characterController.d.ts +5 -0
  53. package/Physics/v2/characterController.js +7 -0
  54. package/Physics/v2/characterController.js.map +1 -1
  55. package/PostProcesses/imageProcessingPostProcess.d.ts +4 -21
  56. package/PostProcesses/imageProcessingPostProcess.js +27 -138
  57. package/PostProcesses/imageProcessingPostProcess.js.map +1 -1
  58. package/PostProcesses/index.d.ts +1 -0
  59. package/PostProcesses/index.js +1 -0
  60. package/PostProcesses/index.js.map +1 -1
  61. package/PostProcesses/thinChromaticAberrationPostProcess.d.ts +2 -2
  62. package/PostProcesses/thinChromaticAberrationPostProcess.js.map +1 -1
  63. package/PostProcesses/thinImageProcessingPostProcess.d.ts +258 -0
  64. package/PostProcesses/thinImageProcessingPostProcess.js +462 -0
  65. package/PostProcesses/thinImageProcessingPostProcess.js.map +1 -0
  66. package/Rendering/objectRenderer.d.ts +5 -5
  67. package/Rendering/objectRenderer.js +11 -11
  68. package/Rendering/objectRenderer.js.map +1 -1
  69. package/Shaders/ShadersInclude/lightFragment.js +10 -7
  70. package/Shaders/ShadersInclude/lightFragment.js.map +1 -1
  71. package/Shaders/ShadersInclude/pbrBRDFFunctions.js +5 -1
  72. package/Shaders/ShadersInclude/pbrBRDFFunctions.js.map +1 -1
  73. package/Shaders/ShadersInclude/pbrBlockDirectLighting.js +1 -1
  74. package/Shaders/ShadersInclude/pbrBlockDirectLighting.js.map +1 -1
  75. package/Shaders/ShadersInclude/pbrBlockFinalUnlitComponents.js +1 -1
  76. package/Shaders/ShadersInclude/pbrBlockFinalUnlitComponents.js.map +1 -1
  77. package/Shaders/ShadersInclude/pbrBlockReflectance.js +1 -1
  78. package/Shaders/ShadersInclude/pbrBlockReflectance.js.map +1 -1
  79. package/Shaders/ShadersInclude/pbrBlockReflectivity.js +2 -2
  80. package/Shaders/ShadersInclude/pbrBlockReflectivity.js.map +1 -1
  81. package/Shaders/ShadersInclude/pbrDirectLightingFunctions.js +16 -4
  82. package/Shaders/ShadersInclude/pbrDirectLightingFunctions.js.map +1 -1
  83. package/Shaders/gaussianSplatting.vertex.js +1 -1
  84. package/Shaders/gaussianSplatting.vertex.js.map +1 -1
  85. package/ShadersWGSL/ShadersInclude/lightFragment.js +10 -7
  86. package/ShadersWGSL/ShadersInclude/lightFragment.js.map +1 -1
  87. package/ShadersWGSL/ShadersInclude/pbrBRDFFunctions.js +5 -1
  88. package/ShadersWGSL/ShadersInclude/pbrBRDFFunctions.js.map +1 -1
  89. package/ShadersWGSL/ShadersInclude/pbrBlockDirectLighting.js +1 -1
  90. package/ShadersWGSL/ShadersInclude/pbrBlockDirectLighting.js.map +1 -1
  91. package/ShadersWGSL/ShadersInclude/pbrBlockFinalUnlitComponents.js +1 -1
  92. package/ShadersWGSL/ShadersInclude/pbrBlockFinalUnlitComponents.js.map +1 -1
  93. package/ShadersWGSL/ShadersInclude/pbrBlockReflectance.js +1 -1
  94. package/ShadersWGSL/ShadersInclude/pbrBlockReflectance.js.map +1 -1
  95. package/ShadersWGSL/ShadersInclude/pbrBlockReflectivity.js +2 -2
  96. package/ShadersWGSL/ShadersInclude/pbrBlockReflectivity.js.map +1 -1
  97. package/ShadersWGSL/ShadersInclude/pbrDirectLightingFunctions.js +24 -8
  98. package/ShadersWGSL/ShadersInclude/pbrDirectLightingFunctions.js.map +1 -1
  99. package/ShadersWGSL/gaussianSplatting.vertex.d.ts +1 -0
  100. package/ShadersWGSL/gaussianSplatting.vertex.js +4 -1
  101. package/ShadersWGSL/gaussianSplatting.vertex.js.map +1 -1
  102. package/package.json +1 -1
@@ -0,0 +1,258 @@
1
+ import type { Nullable, AbstractEngine, EffectWrapperCreationOptions, NonNullableFields, Scene, ColorCurves, BaseTexture, Color4 } from "../index.js";
2
+ import { EffectWrapper } from "../Materials/effectRenderer";
3
+ import { ImageProcessingConfiguration } from "../Materials/imageProcessingConfiguration";
4
+ /**
5
+ * Options used to create a ThinImageProcessingPostProcessOptions.
6
+ */
7
+ export interface ThinImageProcessingPostProcessOptions extends EffectWrapperCreationOptions {
8
+ /**
9
+ * An existing image processing configuration to use. If not provided, the scene one will be used.
10
+ */
11
+ imageProcessingConfiguration?: ImageProcessingConfiguration;
12
+ /**
13
+ * The scene to retrieve the image processing configuration from if not provided in the options.
14
+ * If not provided, the last created scene will be used.
15
+ */
16
+ scene?: Nullable<Scene>;
17
+ }
18
+ /**
19
+ * Post process used to apply image processing to a scene
20
+ */
21
+ export declare class ThinImageProcessingPostProcess extends EffectWrapper {
22
+ /**
23
+ * The fragment shader url
24
+ */
25
+ static readonly FragmentUrl = "imageProcessing";
26
+ protected _gatherImports(useWebGPU: boolean, list: Promise<any>[]): void;
27
+ /**
28
+ * Default configuration related to image processing available in the PBR Material.
29
+ */
30
+ protected _imageProcessingConfiguration: ImageProcessingConfiguration;
31
+ /**
32
+ * Gets the image processing configuration used either in this material.
33
+ */
34
+ get imageProcessingConfiguration(): ImageProcessingConfiguration;
35
+ /**
36
+ * Sets the Default image processing configuration used either in the this material.
37
+ *
38
+ * If sets to null, the scene one is in use.
39
+ */
40
+ set imageProcessingConfiguration(value: ImageProcessingConfiguration);
41
+ /**
42
+ * Keep track of the image processing observer to allow dispose and replace.
43
+ */
44
+ private _imageProcessingObserver;
45
+ /**
46
+ * Attaches a new image processing configuration to the PBR Material.
47
+ * @param configuration
48
+ * @param doNotBuild
49
+ */
50
+ protected _attachImageProcessingConfiguration(configuration: Nullable<ImageProcessingConfiguration>, doNotBuild?: boolean): void;
51
+ /**
52
+ * Gets Color curves setup used in the effect if colorCurvesEnabled is set to true .
53
+ */
54
+ get colorCurves(): Nullable<ColorCurves>;
55
+ /**
56
+ * Sets Color curves setup used in the effect if colorCurvesEnabled is set to true .
57
+ */
58
+ set colorCurves(value: Nullable<ColorCurves>);
59
+ /**
60
+ * Gets whether the color curves effect is enabled.
61
+ */
62
+ get colorCurvesEnabled(): boolean;
63
+ /**
64
+ * Sets whether the color curves effect is enabled.
65
+ */
66
+ set colorCurvesEnabled(value: boolean);
67
+ /**
68
+ * Gets Color grading LUT texture used in the effect if colorGradingEnabled is set to true.
69
+ */
70
+ get colorGradingTexture(): Nullable<BaseTexture>;
71
+ /**
72
+ * Sets Color grading LUT texture used in the effect if colorGradingEnabled is set to true.
73
+ */
74
+ set colorGradingTexture(value: Nullable<BaseTexture>);
75
+ /**
76
+ * Gets whether the color grading effect is enabled.
77
+ */
78
+ get colorGradingEnabled(): boolean;
79
+ /**
80
+ * Gets whether the color grading effect is enabled.
81
+ */
82
+ set colorGradingEnabled(value: boolean);
83
+ /**
84
+ * Gets exposure used in the effect.
85
+ */
86
+ get exposure(): number;
87
+ /**
88
+ * Sets exposure used in the effect.
89
+ */
90
+ set exposure(value: number);
91
+ /**
92
+ * Gets whether tonemapping is enabled or not.
93
+ */
94
+ get toneMappingEnabled(): boolean;
95
+ /**
96
+ * Sets whether tonemapping is enabled or not
97
+ */
98
+ set toneMappingEnabled(value: boolean);
99
+ /**
100
+ * Gets the type of tone mapping effect.
101
+ */
102
+ get toneMappingType(): number;
103
+ /**
104
+ * Sets the type of tone mapping effect.
105
+ */
106
+ set toneMappingType(value: number);
107
+ /**
108
+ * Gets contrast used in the effect.
109
+ */
110
+ get contrast(): number;
111
+ /**
112
+ * Sets contrast used in the effect.
113
+ */
114
+ set contrast(value: number);
115
+ /**
116
+ * Gets Vignette stretch size.
117
+ */
118
+ get vignetteStretch(): number;
119
+ /**
120
+ * Sets Vignette stretch size.
121
+ */
122
+ set vignetteStretch(value: number);
123
+ /**
124
+ * Gets Vignette center X Offset.
125
+ * @deprecated use vignetteCenterX instead
126
+ */
127
+ get vignetteCentreX(): number;
128
+ /**
129
+ * Sets Vignette center X Offset.
130
+ * @deprecated use vignetteCenterX instead
131
+ */
132
+ set vignetteCentreX(value: number);
133
+ /**
134
+ * Gets Vignette center Y Offset.
135
+ * @deprecated use vignetteCenterY instead
136
+ */
137
+ get vignetteCentreY(): number;
138
+ /**
139
+ * Sets Vignette center Y Offset.
140
+ * @deprecated use vignetteCenterY instead
141
+ */
142
+ set vignetteCentreY(value: number);
143
+ /**
144
+ * Vignette center Y Offset.
145
+ */
146
+ get vignetteCenterY(): number;
147
+ set vignetteCenterY(value: number);
148
+ /**
149
+ * Vignette center X Offset.
150
+ */
151
+ get vignetteCenterX(): number;
152
+ set vignetteCenterX(value: number);
153
+ /**
154
+ * Gets Vignette weight or intensity of the vignette effect.
155
+ */
156
+ get vignetteWeight(): number;
157
+ /**
158
+ * Sets Vignette weight or intensity of the vignette effect.
159
+ */
160
+ set vignetteWeight(value: number);
161
+ /**
162
+ * Gets Color of the vignette applied on the screen through the chosen blend mode (vignetteBlendMode)
163
+ * if vignetteEnabled is set to true.
164
+ */
165
+ get vignetteColor(): Color4;
166
+ /**
167
+ * Sets Color of the vignette applied on the screen through the chosen blend mode (vignetteBlendMode)
168
+ * if vignetteEnabled is set to true.
169
+ */
170
+ set vignetteColor(value: Color4);
171
+ /**
172
+ * Gets Camera field of view used by the Vignette effect.
173
+ */
174
+ get vignetteCameraFov(): number;
175
+ /**
176
+ * Sets Camera field of view used by the Vignette effect.
177
+ */
178
+ set vignetteCameraFov(value: number);
179
+ /**
180
+ * Gets the vignette blend mode allowing different kind of effect.
181
+ */
182
+ get vignetteBlendMode(): number;
183
+ /**
184
+ * Sets the vignette blend mode allowing different kind of effect.
185
+ */
186
+ set vignetteBlendMode(value: number);
187
+ /**
188
+ * Gets whether the vignette effect is enabled.
189
+ */
190
+ get vignetteEnabled(): boolean;
191
+ /**
192
+ * Sets whether the vignette effect is enabled.
193
+ */
194
+ set vignetteEnabled(value: boolean);
195
+ /**
196
+ * Gets intensity of the dithering effect.
197
+ */
198
+ get ditheringIntensity(): number;
199
+ /**
200
+ * Sets intensity of the dithering effect.
201
+ */
202
+ set ditheringIntensity(value: number);
203
+ /**
204
+ * Gets whether the dithering effect is enabled.
205
+ */
206
+ get ditheringEnabled(): boolean;
207
+ /**
208
+ * Sets whether the dithering effect is enabled.
209
+ */
210
+ set ditheringEnabled(value: boolean);
211
+ private _fromLinearSpace;
212
+ /**
213
+ * Gets whether the input of the processing is in Gamma or Linear Space.
214
+ */
215
+ get fromLinearSpace(): boolean;
216
+ /**
217
+ * Sets whether the input of the processing is in Gamma or Linear Space.
218
+ */
219
+ set fromLinearSpace(value: boolean);
220
+ /**
221
+ * * Gets the width of the output texture used to store the result of the post process.
222
+ */
223
+ get outputTextureWidth(): number;
224
+ /**
225
+ * * Sets the width of the output texture used to store the result of the post process.
226
+ */
227
+ set outputTextureWidth(value: number);
228
+ /**
229
+ * * Gets the height of the output texture used to store the result of the post process.
230
+ */
231
+ get outputTextureHeight(): number;
232
+ /**
233
+ * * Sets the height of the output texture used to store the result of the post process.
234
+ */
235
+ set outputTextureHeight(value: number);
236
+ /**
237
+ * Gets/sets the aspect ratio used to override the default one.
238
+ */
239
+ overrideAspectRatio?: number;
240
+ /**
241
+ * Defines cache preventing GC.
242
+ */
243
+ private _defines;
244
+ readonly options: Required<NonNullableFields<ThinImageProcessingPostProcessOptions>>;
245
+ /**
246
+ * Constructs a new image processing post process
247
+ * @param name Name of the effect
248
+ * @param engine Engine to use to render the effect. If not provided, the last created engine will be used
249
+ * @param options Options to configure the effect
250
+ */
251
+ constructor(name: string, engine?: Nullable<AbstractEngine>, options?: ThinImageProcessingPostProcessOptions);
252
+ /**
253
+ * @internal
254
+ */
255
+ _updateParameters(): void;
256
+ bind(noDefaultBindings?: boolean): void;
257
+ dispose(): void;
258
+ }