babylonjs-addons 8.46.1 → 8.47.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.
@@ -2693,6 +2693,9 @@ import { MaterialDefines } from "babylonjs/Materials/materialDefines";
2693
2693
  import { MaterialPluginBase } from "babylonjs/Materials/materialPluginBase";
2694
2694
  import { Nullable } from "babylonjs/types";
2695
2695
  import { UniformBuffer } from "babylonjs/Materials/uniformBuffer";
2696
+ import { ShaderLanguage } from "babylonjs/Materials/shaderLanguage";
2697
+ import "babylonjs-addons/atmosphere/ShadersWGSL/ShadersInclude/atmosphereFunctions";
2698
+ import "babylonjs-addons/atmosphere/ShadersWGSL/ShadersInclude/atmosphereUboDeclaration";
2696
2699
  class AtmospherePBRMaterialDefines extends MaterialDefines {
2697
2700
  USE_AERIAL_PERSPECTIVE_LUT: boolean;
2698
2701
  APPLY_AERIAL_PERSPECTIVE_INTENSITY: boolean;
@@ -2718,6 +2721,10 @@ export class AtmospherePBRMaterialPlugin extends MaterialPluginBase {
2718
2721
  * @param _isAerialPerspectiveEnabled - Whether to apply aerial perspective.
2719
2722
  */
2720
2723
  constructor(material: Material, _atmosphere: Atmosphere, _isAerialPerspectiveEnabled?: boolean);
2724
+ /**
2725
+ * @override
2726
+ */
2727
+ isCompatible(): boolean;
2721
2728
  /**
2722
2729
  * @override
2723
2730
  */
@@ -2757,7 +2764,7 @@ export class AtmospherePBRMaterialPlugin extends MaterialPluginBase {
2757
2764
  /**
2758
2765
  * @override
2759
2766
  */
2760
- getCustomCode(shaderType: string): Nullable<Record<string, string>>;
2767
+ getCustomCode(shaderType: string, shaderLanguage: ShaderLanguage): Nullable<Record<string, string>>;
2761
2768
  }
2762
2769
  export {};
2763
2770
 
@@ -3238,11 +3245,6 @@ export class Atmosphere implements IDisposable {
3238
3245
  * @returns The result color.
3239
3246
  */
3240
3247
  getDiffuseSkyIrradianceToRef: <T extends IColor3Like>(directionToLight: IVector3Like, pointRadius: number, pointGeocentricNormal: IVector3Like, lightIrradiance: number, result: T) => T;
3241
- /**
3242
- * Creates a new {@link EffectWrapper} for the multiple scattering LUT
3243
- * @returns The newly created {@link EffectWrapper}.
3244
- */
3245
- private _createMultiScatteringEffectWrapper;
3246
3248
  /**
3247
3249
  * Draws the multiple scattering LUT using {@link EffectWrapper} and {@link EffectRenderer}.
3248
3250
  */
@@ -3283,7 +3285,7 @@ export class Atmosphere implements IDisposable {
3283
3285
  */
3284
3286
  bindUniformBufferToEffect(effect: Effect): void;
3285
3287
  /**
3286
- * Updates the atmosphere's uniform buffer.
3288
+ * Updates the values in the atmosphere's uniform buffer.
3287
3289
  */
3288
3290
  updateUniformBuffer(): void;
3289
3291
  /**
@@ -3297,6 +3299,22 @@ export class Atmosphere implements IDisposable {
3297
3299
  private _drawSkyViewLut;
3298
3300
  }
3299
3301
 
3302
+ }
3303
+ declare module "babylonjs-addons/atmosphere/ShadersWGSL/ShadersInclude/atmosphereUboDeclaration" {
3304
+ /** @internal */
3305
+ export const atmosphereUboDeclarationWGSL: {
3306
+ name: string;
3307
+ shader: string;
3308
+ };
3309
+
3310
+ }
3311
+ declare module "babylonjs-addons/atmosphere/ShadersWGSL/ShadersInclude/atmosphereFunctions" {
3312
+ /** @internal */
3313
+ export const atmosphereFunctionsWGSL: {
3314
+ name: string;
3315
+ shader: string;
3316
+ };
3317
+
3300
3318
  }
3301
3319
  declare module "babylonjs-addons/atmosphere/Shaders/transmittance.fragment" {
3302
3320
  import "babylonjs-addons/atmosphere/Shaders/ShadersInclude/atmosphereFragmentDeclaration";
@@ -5964,6 +5982,10 @@ declare module ADDONS {
5964
5982
  * @param _isAerialPerspectiveEnabled - Whether to apply aerial perspective.
5965
5983
  */
5966
5984
  constructor(material: BABYLON.Material, _atmosphere: Atmosphere, _isAerialPerspectiveEnabled?: boolean);
5985
+ /**
5986
+ * @override
5987
+ */
5988
+ isCompatible(): boolean;
5967
5989
  /**
5968
5990
  * @override
5969
5991
  */
@@ -6003,7 +6025,7 @@ declare module ADDONS {
6003
6025
  /**
6004
6026
  * @override
6005
6027
  */
6006
- getCustomCode(shaderType: string): BABYLON.Nullable<Record<string, string>>;
6028
+ getCustomCode(shaderType: string, shaderLanguage: BABYLON.ShaderLanguage): BABYLON.Nullable<Record<string, string>>;
6007
6029
  }
6008
6030
 
6009
6031
 
@@ -6450,11 +6472,6 @@ declare module ADDONS {
6450
6472
  * @returns The result color.
6451
6473
  */
6452
6474
  getDiffuseSkyIrradianceToRef: <T extends BABYLON.IColor3Like>(directionToLight: BABYLON.IVector3Like, pointRadius: number, pointGeocentricNormal: BABYLON.IVector3Like, lightIrradiance: number, result: T) => T;
6453
- /**
6454
- * Creates a new {@link EffectWrapper} for the multiple scattering LUT
6455
- * @returns The newly created {@link EffectWrapper}.
6456
- */
6457
- private _createMultiScatteringEffectWrapper;
6458
6475
  /**
6459
6476
  * Draws the multiple scattering LUT using {@link EffectWrapper} and {@link EffectRenderer}.
6460
6477
  */
@@ -6495,7 +6512,7 @@ declare module ADDONS {
6495
6512
  */
6496
6513
  bindUniformBufferToEffect(effect: BABYLON.Effect): void;
6497
6514
  /**
6498
- * Updates the atmosphere's uniform buffer.
6515
+ * Updates the values in the atmosphere's uniform buffer.
6499
6516
  */
6500
6517
  updateUniformBuffer(): void;
6501
6518
  /**
@@ -6510,6 +6527,20 @@ declare module ADDONS {
6510
6527
  }
6511
6528
 
6512
6529
 
6530
+ /** @internal */
6531
+ export var atmosphereUboDeclarationWGSL: {
6532
+ name: string;
6533
+ shader: string;
6534
+ };
6535
+
6536
+
6537
+ /** @internal */
6538
+ export var atmosphereFunctionsWGSL: {
6539
+ name: string;
6540
+ shader: string;
6541
+ };
6542
+
6543
+
6513
6544
  /** @internal */
6514
6545
  export var transmittancePixelShader: {
6515
6546
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-addons",
3
- "version": "8.46.1",
3
+ "version": "8.47.0",
4
4
  "main": "babylonjs.addons.min.js",
5
5
  "types": "babylonjs.addons.module.d.ts",
6
6
  "files": [
@@ -15,7 +15,7 @@
15
15
  "test:escheck": "es-check es6 ./babylonjs.addons.js"
16
16
  },
17
17
  "dependencies": {
18
- "babylonjs": "^8.46.1"
18
+ "babylonjs": "^8.47.0"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@dev/addons": "1.0.0",