babylonjs-addons 9.13.0 → 9.15.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.
|
@@ -2711,8 +2711,6 @@ import { MaterialPluginBase } from "babylonjs/Materials/materialPluginBase.pure"
|
|
|
2711
2711
|
import { Nullable } from "babylonjs/types";
|
|
2712
2712
|
import { UniformBuffer } from "babylonjs/Materials/uniformBuffer";
|
|
2713
2713
|
import { ShaderLanguage } from "babylonjs/Materials/shaderLanguage";
|
|
2714
|
-
import "babylonjs-addons/atmosphere/ShadersWGSL/ShadersInclude/atmosphereFunctions";
|
|
2715
|
-
import "babylonjs-addons/atmosphere/ShadersWGSL/ShadersInclude/atmosphereUboDeclaration";
|
|
2716
2714
|
class AtmospherePBRMaterialDefines extends MaterialDefines {
|
|
2717
2715
|
USE_CUSTOM_REFLECTION: boolean;
|
|
2718
2716
|
USE_AERIAL_PERSPECTIVE_LUT: boolean;
|
|
@@ -2732,6 +2730,10 @@ class AtmospherePBRMaterialDefines extends MaterialDefines {
|
|
|
2732
2730
|
export class AtmospherePBRMaterialPlugin extends MaterialPluginBase {
|
|
2733
2731
|
private readonly _atmosphere;
|
|
2734
2732
|
private readonly _isAerialPerspectiveEnabled;
|
|
2733
|
+
private static readonly _ShaderIncludesRetryDelayMs;
|
|
2734
|
+
private _shaderIncludesLoaded;
|
|
2735
|
+
private _shaderIncludesLoadPromise;
|
|
2736
|
+
private _shaderIncludesNextRetryTime;
|
|
2735
2737
|
/**
|
|
2736
2738
|
* Constructs the {@link AtmospherePBRMaterialPlugin}.
|
|
2737
2739
|
* @param material - The material to apply the plugin to.
|
|
@@ -2763,6 +2765,12 @@ export class AtmospherePBRMaterialPlugin extends MaterialPluginBase {
|
|
|
2763
2765
|
* @override
|
|
2764
2766
|
*/
|
|
2765
2767
|
isReadyForSubMesh(): boolean;
|
|
2768
|
+
/**
|
|
2769
|
+
* Lazily loads (and thereby registers into the ShaderStore) the shader includes referenced by
|
|
2770
|
+
* this plugin's injected custom code. Loading the correct variant for the host material's shader
|
|
2771
|
+
* language keeps this module free of top-level shader side effects so it can be tree-shaken.
|
|
2772
|
+
*/
|
|
2773
|
+
private _loadShaderIncludesAsync;
|
|
2766
2774
|
/**
|
|
2767
2775
|
* @override
|
|
2768
2776
|
*/
|
|
@@ -6053,6 +6061,10 @@ declare namespace ADDONS {
|
|
|
6053
6061
|
export class AtmospherePBRMaterialPlugin extends BABYLON.MaterialPluginBase {
|
|
6054
6062
|
private readonly _atmosphere;
|
|
6055
6063
|
private readonly _isAerialPerspectiveEnabled;
|
|
6064
|
+
private static readonly _ShaderIncludesRetryDelayMs;
|
|
6065
|
+
private _shaderIncludesLoaded;
|
|
6066
|
+
private _shaderIncludesLoadPromise;
|
|
6067
|
+
private _shaderIncludesNextRetryTime;
|
|
6056
6068
|
/**
|
|
6057
6069
|
* Constructs the {@link AtmospherePBRMaterialPlugin}.
|
|
6058
6070
|
* @param material - The material to apply the plugin to.
|
|
@@ -6084,6 +6096,12 @@ declare namespace ADDONS {
|
|
|
6084
6096
|
* @override
|
|
6085
6097
|
*/
|
|
6086
6098
|
isReadyForSubMesh(): boolean;
|
|
6099
|
+
/**
|
|
6100
|
+
* Lazily loads (and thereby registers into the ShaderStore) the shader includes referenced by
|
|
6101
|
+
* this plugin's injected custom code. Loading the correct variant for the host material's shader
|
|
6102
|
+
* language keeps this module free of top-level shader side effects so it can be tree-shaken.
|
|
6103
|
+
*/
|
|
6104
|
+
private _loadShaderIncludesAsync;
|
|
6087
6105
|
/**
|
|
6088
6106
|
* @override
|
|
6089
6107
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-addons",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.15.0",
|
|
4
4
|
"main": "babylonjs.addons.min.js",
|
|
5
5
|
"types": "babylonjs.addons.module.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"test:escheck": "es-check es6 ./babylonjs.addons.js"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"babylonjs": "9.
|
|
19
|
+
"babylonjs": "9.15.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@dev/addons": "1.0.0",
|