@babylonjs/addons 9.10.1 → 9.12.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.
- package/atmosphere/atmosphere.d.ts +8 -8
- package/atmosphere/atmosphere.js +10 -6
- package/atmosphere/atmosphere.js.map +1 -1
- package/atmosphere/atmospherePBRMaterialPlugin.d.ts +3 -3
- package/atmosphere/atmospherePBRMaterialPlugin.js +1 -1
- package/atmosphere/atmospherePBRMaterialPlugin.js.map +1 -1
- package/atmosphere/atmospherePerCameraVariables.d.ts +1 -1
- package/atmosphere/atmospherePerCameraVariables.js +1 -1
- package/atmosphere/atmospherePerCameraVariables.js.map +1 -1
- package/atmosphere/atmospherePhysicalProperties.d.ts +2 -2
- package/atmosphere/atmospherePhysicalProperties.js +2 -2
- package/atmosphere/atmospherePhysicalProperties.js.map +1 -1
- package/atmosphere/atmospherePhysicalPropertiesOptions.d.ts +1 -1
- package/atmosphere/atmospherePhysicalPropertiesOptions.js.map +1 -1
- package/atmosphere/diffuseSkyIrradianceLut.d.ts +1 -1
- package/atmosphere/diffuseSkyIrradianceLut.js +6 -2
- package/atmosphere/diffuseSkyIrradianceLut.js.map +1 -1
- package/atmosphere/transmittanceLut.d.ts +3 -3
- package/atmosphere/transmittanceLut.js +7 -3
- package/atmosphere/transmittanceLut.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { type AbstractEngine } from "@babylonjs/core/Engines/abstractEngine.js";
|
|
1
|
+
import { type AbstractEngine } from "@babylonjs/core/Engines/abstractEngine.pure.js";
|
|
2
2
|
import { AtmospherePerCameraVariables } from "./atmospherePerCameraVariables.js";
|
|
3
3
|
import { AtmospherePhysicalProperties } from "./atmospherePhysicalProperties.js";
|
|
4
|
-
import { type BaseTexture } from "@babylonjs/core/Materials/Textures/baseTexture.js";
|
|
5
|
-
import { type Camera } from "@babylonjs/core/Cameras/camera.js";
|
|
4
|
+
import { type BaseTexture } from "@babylonjs/core/Materials/Textures/baseTexture.pure.js";
|
|
5
|
+
import { type Camera } from "@babylonjs/core/Cameras/camera.pure.js";
|
|
6
6
|
import { type DeepImmutable, type Nullable } from "@babylonjs/core/types.js";
|
|
7
7
|
import { DiffuseSkyIrradianceLut } from "./diffuseSkyIrradianceLut.js";
|
|
8
|
-
import { type DirectionalLight } from "@babylonjs/core/Lights/directionalLight.js";
|
|
9
|
-
import { type Effect } from "@babylonjs/core/Materials/effect.js";
|
|
8
|
+
import { type DirectionalLight } from "@babylonjs/core/Lights/directionalLight.pure.js";
|
|
9
|
+
import { type Effect } from "@babylonjs/core/Materials/effect.pure.js";
|
|
10
10
|
import { type IAtmosphereOptions } from "./atmosphereOptions.js";
|
|
11
11
|
import { type IColor3Like, type IVector3Like } from "@babylonjs/core/Maths/math.like.js";
|
|
12
|
-
import { type IDisposable, type Scene } from "@babylonjs/core/scene.js";
|
|
13
|
-
import { Observable } from "@babylonjs/core/Misc/observable.js";
|
|
14
|
-
import { RenderTargetTexture } from "@babylonjs/core/Materials/Textures/renderTargetTexture.js";
|
|
12
|
+
import { type IDisposable, type Scene } from "@babylonjs/core/scene.pure.js";
|
|
13
|
+
import { Observable } from "@babylonjs/core/Misc/observable.pure.js";
|
|
14
|
+
import { RenderTargetTexture } from "@babylonjs/core/Materials/Textures/renderTargetTexture.pure.js";
|
|
15
15
|
import { TransmittanceLut } from "./transmittanceLut.js";
|
|
16
16
|
import { UniformBuffer } from "@babylonjs/core/Materials/uniformBuffer.js";
|
|
17
17
|
/**
|
package/atmosphere/atmosphere.js
CHANGED
|
@@ -3,16 +3,18 @@
|
|
|
3
3
|
import { AtmospherePBRMaterialPlugin } from "./atmospherePBRMaterialPlugin.js";
|
|
4
4
|
import { AtmospherePerCameraVariables } from "./atmospherePerCameraVariables.js";
|
|
5
5
|
import { AtmospherePhysicalProperties } from "./atmospherePhysicalProperties.js";
|
|
6
|
-
import { Color3 } from "@babylonjs/core/Maths/math.color.js";
|
|
6
|
+
import { Color3 } from "@babylonjs/core/Maths/math.color.pure.js";
|
|
7
7
|
import { Constants } from "@babylonjs/core/Engines/constants.js";
|
|
8
8
|
import { DiffuseSkyIrradianceLut } from "./diffuseSkyIrradianceLut.js";
|
|
9
|
-
import { EffectRenderer, EffectWrapper } from "@babylonjs/core/Materials/effectRenderer.js";
|
|
10
|
-
import { Observable } from "@babylonjs/core/Misc/observable.js";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
9
|
+
import { EffectRenderer, EffectWrapper } from "@babylonjs/core/Materials/effectRenderer.pure.js";
|
|
10
|
+
import { Observable } from "@babylonjs/core/Misc/observable.pure.js";
|
|
11
|
+
import { RegisterEnginesExtensionsEngineRenderTarget } from "@babylonjs/core/Engines/Extensions/engine.renderTarget.pure.js";
|
|
12
|
+
import { RegisterEngineUniformBuffer } from "@babylonjs/core/Engines/Extensions/engine.uniformBuffer.pure.js";
|
|
13
|
+
import { RegisterMaterialPlugin, UnregisterMaterialPlugin } from "@babylonjs/core/Materials/materialPluginManager.pure.js";
|
|
14
|
+
import { RenderTargetTexture } from "@babylonjs/core/Materials/Textures/renderTargetTexture.pure.js";
|
|
13
15
|
import { TransmittanceLut } from "./transmittanceLut.js";
|
|
14
16
|
import { UniformBuffer } from "@babylonjs/core/Materials/uniformBuffer.js";
|
|
15
|
-
import { Vector3 } from "@babylonjs/core/Maths/math.vector.js";
|
|
17
|
+
import { Vector3 } from "@babylonjs/core/Maths/math.vector.pure.js";
|
|
16
18
|
const MaterialPlugin = "atmo-pbr";
|
|
17
19
|
const AerialPerspectiveLutLayers = 32;
|
|
18
20
|
const TransmittanceSampleCount = 128;
|
|
@@ -566,6 +568,8 @@ export class Atmosphere {
|
|
|
566
568
|
*/
|
|
567
569
|
this.getDiffuseSkyIrradianceToRef = (directionToLight, pointRadius, pointGeocentricNormal, lightIrradiance, result) => this._diffuseSkyIrradianceLut?.getDiffuseSkyIrradianceToRef(directionToLight, pointRadius, pointGeocentricNormal, lightIrradiance, result) ??
|
|
568
570
|
((result.r = 0), (result.g = 0), (result.b = 0), result);
|
|
571
|
+
RegisterEngineUniformBuffer();
|
|
572
|
+
RegisterEnginesExtensionsEngineRenderTarget();
|
|
569
573
|
const engine = (this._engine = scene.getEngine());
|
|
570
574
|
if (!engine.isWebGPU && engine.version < 2) {
|
|
571
575
|
throw new Error(`Atmosphere is not supported on WebGL ${engine.version}.`);
|