@babylonjs/lite-compat 1.39.1 → 1.39.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.
- package/CHANGELOG.md +30 -2
- package/README.md +4 -4
- package/index.d.ts +217 -22
- package/index.js +589 -37
- package/index.js.map +1 -1
- package/{meshes-C-PkzbPM.js → meshes-FwqJpX7D.js} +151 -23
- package/meshes-FwqJpX7D.js.map +1 -0
- package/navigation.d.ts +56 -17
- package/navigation.js +1 -1
- package/package.json +5 -5
- package/meshes-C-PkzbPM.js.map +0 -1
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as Vector2, A as Material, B as attachMaterialToScene, C as RegisterPolygonBuilder, D as registerMeshAtStart, E as VertexData, F as PBRMetallicRoughnessMaterial, G as BoundingSphere, H as Observable, I as PBRSheenConfiguration, J as transformNormal, K as Matrix, L as PBRSpecularGlossinessMaterial, M as PBRClearCoatConfiguration, N as PBRIridescenceConfiguration, O as MorphTarget, P as PBRMaterial, Q as liteBackedColor3, R as PushMaterial, S as PolygonBuilder, T as VertexBuffer, U as BoundingBox, V as Node, W as BoundingInfo, X as Color3, Y as Quaternion, Z as Color4, _ as GroundMesh, a as CreateDisc, b as Mesh, c as CreateLines, d as CreatePolygonVertexData, et as Vector3, f as CreateSphere, g as ExtrudePolygon, h as CreateTorus, i as CreateDashedLines, it as unsupported, j as PBRAnisotropicConfiguration, k as MorphTargetManager, l as CreatePlane, m as CreateTiledPlane, n as CreateBox, nt as liteBackedVector3, o as CreateGround, p as CreateTiledBox, q as transformCoordinates, r as CreateCylinder, rt as LiteCompatError, s as CreateLineSystem, t as AbstractMesh, tt as Vector4, u as CreatePolygon, v as InstancedMesh, w as TransformNode, x as MeshBuilder, y as LinesMesh, z as StandardMaterial } from "./meshes-
|
|
2
|
-
import { CharacterSupportedState as CharacterSupportedState$1, GAUSSIAN_SPLATTING_MAX_PART_COUNT, MaxTintMagnitude, MinTemperatureKelvin, PhysicsConstraintAxis as PhysicsConstraintAxis$1, PhysicsConstraintType as PhysicsConstraintType$1, PhysicsMotionType as PhysicsMotionType$1, PhysicsPrestepType as PhysicsPrestepType$1, PhysicsShapeType as PhysicsShapeType$1, VERSION, _getGaussianPointSplattingPackedShBytesPerSplat, _hasGaussianPointSplattingProjectedDepth, addAnimationGroup, addBillboardSpriteIndex, addClusteredLightContainer, addComputeDispatch,
|
|
1
|
+
import { $ as Vector2, A as Material, B as attachMaterialToScene, C as RegisterPolygonBuilder, D as registerMeshAtStart, E as VertexData, F as PBRMetallicRoughnessMaterial, G as BoundingSphere, H as Observable, I as PBRSheenConfiguration, J as transformNormal, K as Matrix, L as PBRSpecularGlossinessMaterial, M as PBRClearCoatConfiguration, N as PBRIridescenceConfiguration, O as MorphTarget, P as PBRMaterial, Q as liteBackedColor3, R as PushMaterial, S as PolygonBuilder, T as VertexBuffer, U as BoundingBox, V as Node, W as BoundingInfo, X as Color3, Y as Quaternion, Z as Color4, _ as GroundMesh, a as CreateDisc, b as Mesh, c as CreateLines, d as CreatePolygonVertexData, et as Vector3, f as CreateSphere, g as ExtrudePolygon, h as CreateTorus, i as CreateDashedLines, it as unsupported, j as PBRAnisotropicConfiguration, k as MorphTargetManager, l as CreatePlane, m as CreateTiledPlane, n as CreateBox, nt as liteBackedVector3, o as CreateGround, p as CreateTiledBox, q as transformCoordinates, r as CreateCylinder, rt as LiteCompatError, s as CreateLineSystem, t as AbstractMesh, tt as Vector4, u as CreatePolygon, v as InstancedMesh, w as TransformNode, x as MeshBuilder, y as LinesMesh, z as StandardMaterial } from "./meshes-FwqJpX7D.js";
|
|
2
|
+
import { CharacterSupportedState as CharacterSupportedState$1, GAUSSIAN_SPLATTING_MAX_PART_COUNT, MaxTintMagnitude, MinTemperatureKelvin, PhysicsConstraintAxis as PhysicsConstraintAxis$1, PhysicsConstraintType as PhysicsConstraintType$1, PhysicsMotionType as PhysicsMotionType$1, PhysicsPrestepType as PhysicsPrestepType$1, PhysicsShapeType as PhysicsShapeType$1, VERSION, _getGaussianPointSplattingPackedShBytesPerSplat, _hasGaussianPointSplattingProjectedDepth, addAnimationGroup, addBillboardSpriteIndex, addBillboardSystemToScene, addClusteredLightContainer, addComputeDispatch, addPolarToRef, addSphericalToRef, addSprite2DIndex, addToScene, animateParticleSystem, applyPhysicsBodyForce, applyPhysicsBodyImpulse, attachAxisDragGizmoToNode, attachAxisScaleGizmoToNode, attachBoundingBoxGizmoToNode, attachCameraGizmoToCamera, attachControl, attachFreeControl, attachGeospatialControls, attachLightGizmoToLight, attachPlaneDragGizmoToNode, attachPlaneRotationGizmoToNode, attachPositionGizmoToNode, attachRotationGizmoToNode, attachScaleGizmoToNode, attachSceneSsaoPipeline, backEase, bakeCurrentTransformIntoVertices, bezierCurveEase, billboardBlendAdditive, billboardBlendAlpha, bounceEase, calculatePhysicsCharacterMovementToRef, circleEase, clampGaussianSplattingGpuSortKeyBits, clearAnimationManager, clearBoneOverride, clearStorageBuffer, cloneTransformNode, computeGaussianSplattingGpuSortDepthCoefficients, computeGaussianSplattingGpuSortDepthRange, computeGaussianSplattingGpuSortKeyScale, computeStorageBufferBinding, computeUniformBufferBinding, createAnimationManager, createArcRotateCamera, createAudioBusAsync, createAudioEngineAsync, createAxisDragGizmo, createAxisScaleGizmo, createBankedFreeCamera, createBoundingBoxGizmo, createCameraGizmo, createClusteredLightContainer, createClusteredPointLight, createComputeBindingSet, createComputeDispatch, createComputeIndirectDispatch, createComputeShader, createComputeTask, createCsg2FromMesh, createCsgFromMesh, createCsmDirectionalShadowGenerator, createDefaultCamera, createDefaultMeshBlendRadiusDefinitions, createDirectionalLight, createDynamicTexture, createEngine, createEsmDirectionalShadowGenerator, createExternalTexture, createFacingBillboardSystem, createFreeCamera, createGeospatialCamera, createGpuPicker, createGridMaterial, createHavokWorld, createHemisphericLight, createHtmlTexture, createKhrInteractivityRuntimeValueSnapshot, createLightGizmo, createMeshFromCsg, createMeshesFromCsg2, createMicrophoneSoundSourceAsync, createNullEngine, createParticleBillboard, createPcfDirectionalShadowGenerator, createPcfSpotlightShadowGenerator, createPhysicsAggregate, createPhysicsBody, createPhysicsCharacterController, createPhysicsConstraint, createPhysicsShape, createPickingRay, createPlaneDragGizmo, createPlaneRotationGizmo, createPointLight, createPositionGizmo, createPropertyAnimationClip, createPropertyAnimationGroup, createRectAreaLight, createRotationGizmo, createScaleGizmo, createSceneContext, createSceneSsaoPipeline, createSoundAsync, createSoundBufferAsync, createSoundSourceAsync, createSpotLight, createSprite2DLayer, createSpriteRenderer, createStorageBuffer, createStreamingSoundAsync, createTexture2DArray, createTexture2DArrayFromKtx2, createTexture2DArrayFromPixels, createTexture2DArrayFromUrls, createTexture2DFromPixels, createTexture3DFromPixels, createTransformNode, createUniformBuffer, createUtilityLayer, csg2Add, csg2Intersect, csg2Subtract, csgIntersect, csgSubtract, csgUnion, cubicEase, decodeGaussianSplattingGpuSortSogMean, detachSceneSsaoPipeline, disableGaussianPointSplatting, disableOrthographicCamera, disposeAudioBus, disposeAudioEngine, disposeAxisDragGizmo, disposeAxisScaleGizmo, disposeBoundingBoxGizmo, disposeCameraGizmo, disposeComputeBindingSet, disposeComputeShader, disposeCsg2, disposeEngine, disposeHtmlTexture, disposeLightGizmo, disposePhysics, disposePicker, disposePlaneDragGizmo, disposePlaneRotationGizmo, disposePositionGizmo, disposeRotationGizmo, disposeScaleGizmo, disposeScene, disposeSceneSsaoPipeline, disposeSound, disposeSoundSource, disposeStorageBuffer, disposeStreamingSound, disposeUniformBuffer, disposeUsd, disposeUtilityLayer, dividePolarToRef, divideSphericalToRef, divideTextureProcessConstants, elasticEase, enableAnalyzer, enableAnimationBlending, enableArcRotateKeyboardControls, enableBoneControlForSkinnedAssets, enableGaussianPointSplatting, enableHavokThinInstancePhysicsSync, enableMirroredMeshes, enableOrthographicCamera, enableRectAreaLights, enableSpatial, enableStereo, enableUnsupportedGltfMaterialExtension, encodeIdToColor, exponentialEase, getBoneByName, getByteFrequencyData, getByteTimeDomainData, getCameraPosition, getFloatFrequencyData, getFloatTimeDomainData, getGaussianSplattingGpuSortPaddedCount, getGaussianSplattingGpuSortPassCount, getGaussianSplattingGpuSorterMaxSplatCount, getGaussianSplattingMaxPartCount, getGaussianSplattingPartIndexVaryingDeclaration, getMasterVolume, getMaterialFamily, getMeshSkeleton, getParticleSystems, getPhysicsBodyAngularVelocity, getPhysicsBodyLinearVelocity, getPickedUV, getProjectionMatrix, getVariantNames, getViewMatrix, getWhiteBalanceMatrix, goToFrame, hasDefaultInteractivityFlowInput, initializeCsg2Async, inverseLerp, invertMat4, isExternalTextureReady, isParticleSystemStarted, loadBabylon, loadBasisTexture2D, loadDdsEnvironment, loadEnvironment, loadGltf, loadHdrEnvironment, loadImageToArrayLayer, loadKtxTexture2D, loadSOG, loadSPZ, loadSplat, loadSpriteAtlas, loadTexture2D, loadUsd, markClusteredLightContainerDirty, multiScatterToSingleScatterAlbedoConstants, multiplyMat4, multiplyPolarToRef, multiplySphericalToRef, normalizeInteractivityEventDataConfiguration, normalizeKhrInteractivityRuntimeValue, onBeforeRender, onEngineDeviceLost, onPhysicsAfterStep, onSceneDispose, packGaussianSplattingGpuSortIntervals, packMeshBlendingTag, parseNodeMaterialFromSnippet, parseNodeParticleSetFromSnippet, pauseAnimation, pauseSound, pauseStreamingSound, physicsRaycast, pickAsync, pickMeshesWithRayPrecise, playAnimation, playSound, playStreamingSound, polarFromVec2ToRef, polarToVec2ToRef, powerEase, preloadStreamingInstanceAsync, preloadStreamingInstancesAsync, processAreaLightTexture, quadraticEase, quarticEase, quinticEase, readStorageBufferAfterFrame, rebuildSceneRenderables, registerNodeParticleSet, registerScene, registerSceneWithShadowSupport, registerSpriteRenderer, registerUtilityLayer, releasePhysicsConstraint, releasePhysicsShape, releaseTexture, removeAnimationGroup, removeFromScene, removePhysicsBody, requestHtmlTextureUpdate, resetSkeletonToRest, resetVariant, resizeEngine, resolveCameraViewport, resumeSound, resumeStreamingSound, sampleCatmullRomSpline, sampleHermiteSpline, scalePolarToRef, scaleSphericalToRef, selectVariant, setAnimationAdditive, setBonePosition, setBoneRotationQuaternion, setBoneScaling, setBusVolume, setClipPlane, setEngineSize, setEnvironmentLightingRotation, setEnvironmentSkyboxRotation, setFog, setGeospatialOrientation, setMasterVolume, setParent, setPhysicsBodyAngularVelocity, setPhysicsBodyLinearVelocity, setPhysicsBodyMassProperties, setPhysicsBodyMotionType, setPhysicsBodyPrestepType, setPhysicsBodyShape, setPhysicsGravity, setPhysicsShapeFilterCollideMask, setPhysicsShapeFilterMembershipMask, setPhysicsShapeIsTrigger, setPhysicsShapeMaterial, setPhysicsTimestep, setPositionGizmoLocalCoordinates, setRotationGizmoLocalCoordinates, setScaleGizmoLocalCoordinates, setShadowTaskCasterMeshes, setSoundSourceVolume, setSoundVolume, setSpatialListener, setSpatialListenerPosition, setSpatialOrientation, setSpatialPosition, setStereoPan, setStreamingSoundVolume, sineEase, singleScatterToMultiScatterAlbedoConstants, sphericalFromVec3ToRef, sphericalToVec3ToRef, spriteBlendAdditive, spriteBlendAlpha, spriteBlendPremultiplied, startEngine, startParticleSystem, stepScene, stopAnimation, stopEngine, stopParticleSystem, stopSound, stopStreamingSound, submitComputeTasks, subtractPolarToRef, subtractSphericalToRef, syncParticleBillboard, temperatureTintToXyz, thinWalledScatterWeightConstants, transmissionFractionConstants, transmissionScatterToSingleScatterAlbedoConstants, unlockAudioEngineAsync, unpackMeshBlendingTag, updateAnimationManager, updateBillboardSpriteIndex, updateDynamicTexture, updateHtmlTexture, updateSpatialAudio, updateSprite2DIndex, updateStorageBufferRange, updateTexture2DArrayFromPixels, updateTexture2DFromPixels, updateUniformBuffer, uploadImageToArrayLayer, whenHtmlTextureReady } from "@babylonjs/lite";
|
|
3
3
|
// \0rolldown/runtime.js
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __exportAll = (all, no_symbols) => {
|
|
@@ -836,6 +836,14 @@ var PrecisionDate = { get Now() {
|
|
|
836
836
|
* hood (Lite must register scenes before the first frame); `runRenderLoop`
|
|
837
837
|
* returns immediately and rendering begins on a subsequent tick.
|
|
838
838
|
*/
|
|
839
|
+
var lastCreatedEngine = null;
|
|
840
|
+
/** @internal Last compat engine constructed in this realm, matching Babylon.js EngineStore support checks. */
|
|
841
|
+
function _getLastCreatedEngine() {
|
|
842
|
+
return lastCreatedEngine;
|
|
843
|
+
}
|
|
844
|
+
function setLastCreatedEngine(engine) {
|
|
845
|
+
lastCreatedEngine = engine;
|
|
846
|
+
}
|
|
839
847
|
/**
|
|
840
848
|
* Late work (utility-layer registration) is best-effort: it must never fail engine startup, and it
|
|
841
849
|
* runs from two places — folded into `_startCore` when registered before startup completes, and
|
|
@@ -889,6 +897,14 @@ var AbstractEngine = class {
|
|
|
889
897
|
* configuration internally, so this is a settable no-op kept for API shape.
|
|
890
898
|
*/
|
|
891
899
|
useReverseDepthBuffer = false;
|
|
900
|
+
_maxFramesInFlight = 0;
|
|
901
|
+
get maxFramesInFlight() {
|
|
902
|
+
return this._maxFramesInFlight;
|
|
903
|
+
}
|
|
904
|
+
set maxFramesInFlight(value) {
|
|
905
|
+
if (value !== 0) unsupported("WebGPUEngine.maxFramesInFlight", "Lite's frame graph owns command submission and GPU-resource retirement; a nonzero limit needs a renderer-wide scheduling and lifetime policy in existing hot paths.");
|
|
906
|
+
this._maxFramesInFlight = value;
|
|
907
|
+
}
|
|
892
908
|
/** Babylon.js `engine.onResizeObservable` — fires after `resize()` / `setSize()`. */
|
|
893
909
|
onResizeObservable = new Observable();
|
|
894
910
|
/** Babylon.js context-loss signal, forwarded from Lite's device-loss subscription. */
|
|
@@ -927,6 +943,7 @@ var AbstractEngine = class {
|
|
|
927
943
|
/** @internal Stop revision captured by the outermost scene mutation pause. */
|
|
928
944
|
_sceneMutationPauseRevision = 0;
|
|
929
945
|
constructor(canvas, options) {
|
|
946
|
+
setLastCreatedEngine(this);
|
|
930
947
|
this._canvas = canvas;
|
|
931
948
|
const opts = typeof options === "object" ? { ...options } : options === false ? { msaaSamples: 1 } : void 0;
|
|
932
949
|
this.useReverseDepthBuffer = opts?.useReverseDepthBuffer ?? false;
|
|
@@ -1143,6 +1160,7 @@ var AbstractEngine = class {
|
|
|
1143
1160
|
this._unsubscribeDeviceLost?.();
|
|
1144
1161
|
this._unsubscribeDeviceLost = null;
|
|
1145
1162
|
if (this._initialized) disposeEngine(this._lite);
|
|
1163
|
+
if (lastCreatedEngine === this) lastCreatedEngine = null;
|
|
1146
1164
|
}
|
|
1147
1165
|
/** Babylon.js manual frame-pump entry point — unsupported (Lite's frame graph owns the frame). */
|
|
1148
1166
|
beginFrame() {
|
|
@@ -1206,6 +1224,7 @@ var AbstractEngine = class {
|
|
|
1206
1224
|
scene._buildShadowGenerators();
|
|
1207
1225
|
await scene._parseNodeMaterials();
|
|
1208
1226
|
await scene._awaitPendingTextures();
|
|
1227
|
+
scene._ensureRegisteredMaterialsRenderable();
|
|
1209
1228
|
scene._bakeGroundUvs();
|
|
1210
1229
|
scene._flushPendingAdds();
|
|
1211
1230
|
scene._buildMorphTargets();
|
|
@@ -4827,7 +4846,7 @@ var Bone = class Bone {
|
|
|
4827
4846
|
* objects), which the standalone functions `startParticleSystem` /
|
|
4828
4847
|
* `animateParticleSystem` / `stopParticleSystem` drive, and
|
|
4829
4848
|
* `createParticleBillboard` / `syncParticleBillboard` /
|
|
4830
|
-
* `
|
|
4849
|
+
* `addBillboardSystemToScene` render as camera-facing billboards. So the compat
|
|
4831
4850
|
* wrapper's **runtime subset** (`start` / `animate` / `stop` / `updateSpeed` /
|
|
4832
4851
|
* `particleTexture` / `preWarmStepOffset`) forwards to those Lite functions,
|
|
4833
4852
|
* while the imperative constructor throws — there is no Lite graph to author.
|
|
@@ -4986,10 +5005,65 @@ var ParticleSystem = class ParticleSystem {
|
|
|
4986
5005
|
if (!lite.texture) return;
|
|
4987
5006
|
const billboard = createParticleBillboard(lite);
|
|
4988
5007
|
syncParticleBillboard(lite, billboard);
|
|
4989
|
-
|
|
5008
|
+
addBillboardSystemToScene(scene._lite, billboard);
|
|
4990
5009
|
});
|
|
4991
5010
|
}
|
|
4992
5011
|
};
|
|
5012
|
+
// src/post-processes/post-process-render-pipeline-manager.ts
|
|
5013
|
+
/** Babylon.js-compatible post-process pipeline registry for native Lite-backed pipelines. */
|
|
5014
|
+
var PostProcessRenderPipelineManager = class {
|
|
5015
|
+
_renderPipelines = /* @__PURE__ */ new Map();
|
|
5016
|
+
_onNewPipelineAddedObservable = new Observable();
|
|
5017
|
+
_onPipelineRemovedObservable = new Observable();
|
|
5018
|
+
get onNewPipelineAddedObservable() {
|
|
5019
|
+
return this._onNewPipelineAddedObservable;
|
|
5020
|
+
}
|
|
5021
|
+
get onPipelineRemovedObservable() {
|
|
5022
|
+
return this._onPipelineRemovedObservable;
|
|
5023
|
+
}
|
|
5024
|
+
get supportedPipelines() {
|
|
5025
|
+
return [...this._renderPipelines.values()].filter((pipeline) => pipeline.isSupported);
|
|
5026
|
+
}
|
|
5027
|
+
addPipeline(renderPipeline) {
|
|
5028
|
+
this.removePipeline(renderPipeline._name);
|
|
5029
|
+
this._renderPipelines.set(renderPipeline._name, renderPipeline);
|
|
5030
|
+
this._onNewPipelineAddedObservable.notifyObservers(renderPipeline);
|
|
5031
|
+
}
|
|
5032
|
+
removePipeline(renderPipelineName) {
|
|
5033
|
+
const pipeline = this._renderPipelines.get(renderPipelineName);
|
|
5034
|
+
if (!pipeline) return;
|
|
5035
|
+
this._onPipelineRemovedObservable.notifyObservers(pipeline);
|
|
5036
|
+
this._renderPipelines.delete(renderPipelineName);
|
|
5037
|
+
}
|
|
5038
|
+
attachCamerasToRenderPipeline(renderPipelineName, cameras, unique = false) {
|
|
5039
|
+
this._renderPipelines.get(renderPipelineName)?._attachCameras(cameras, unique);
|
|
5040
|
+
}
|
|
5041
|
+
detachCamerasFromRenderPipeline(renderPipelineName, cameras) {
|
|
5042
|
+
this._renderPipelines.get(renderPipelineName)?._detachCameras(cameras);
|
|
5043
|
+
}
|
|
5044
|
+
enableEffectInPipeline(renderPipelineName, renderEffectName, cameras) {
|
|
5045
|
+
this._renderPipelines.get(renderPipelineName)?._enableEffect(renderEffectName, cameras);
|
|
5046
|
+
}
|
|
5047
|
+
disableEffectInPipeline(renderPipelineName, renderEffectName, cameras) {
|
|
5048
|
+
this._renderPipelines.get(renderPipelineName)?._disableEffect(renderEffectName, cameras);
|
|
5049
|
+
}
|
|
5050
|
+
update() {
|
|
5051
|
+
for (const [name, pipeline] of this._renderPipelines) if (!pipeline.isSupported) {
|
|
5052
|
+
pipeline.dispose();
|
|
5053
|
+
this._renderPipelines.delete(name);
|
|
5054
|
+
} else pipeline._update();
|
|
5055
|
+
}
|
|
5056
|
+
/** @internal */
|
|
5057
|
+
_rebuild() {
|
|
5058
|
+
for (const pipeline of this._renderPipelines.values()) pipeline._rebuild();
|
|
5059
|
+
}
|
|
5060
|
+
dispose() {
|
|
5061
|
+
for (const pipeline of [...this._renderPipelines.values()]) pipeline.dispose();
|
|
5062
|
+
this._renderPipelines.clear();
|
|
5063
|
+
this._onNewPipelineAddedObservable.clear();
|
|
5064
|
+
this._onPipelineRemovedObservable.clear();
|
|
5065
|
+
}
|
|
5066
|
+
};
|
|
4993
5067
|
// src/scene/scene.ts
|
|
4994
5068
|
/**
|
|
4995
5069
|
* Babylon.js-compatible `Scene` implemented over a Babylon Lite `SceneContext`.
|
|
@@ -5124,6 +5198,7 @@ var Scene = class Scene extends AbstractScene {
|
|
|
5124
5198
|
_skeletonCache = /* @__PURE__ */ new Map();
|
|
5125
5199
|
_skeletons = [];
|
|
5126
5200
|
_particleSystemCache = /* @__PURE__ */ new Map();
|
|
5201
|
+
_loadedMaterialCache = /* @__PURE__ */ new WeakMap();
|
|
5127
5202
|
_particleSystems = [];
|
|
5128
5203
|
_retiredParticleSystems = /* @__PURE__ */ new Set();
|
|
5129
5204
|
_disposed = false;
|
|
@@ -5134,6 +5209,7 @@ var Scene = class Scene extends AbstractScene {
|
|
|
5134
5209
|
_ambientColor = new Color3(0, 0, 0);
|
|
5135
5210
|
_environmentIntensity = 1;
|
|
5136
5211
|
_imageProcessingConfiguration = null;
|
|
5212
|
+
_postProcessRenderPipelineManager = null;
|
|
5137
5213
|
/** @internal Tracks whether at least one frame has ticked (gates `onAfterRenderObservable`). */
|
|
5138
5214
|
_renderedAFrame = false;
|
|
5139
5215
|
/** @internal `NodeMaterial`s whose async parse the engine drives after shadow generators are built. */
|
|
@@ -5251,6 +5327,10 @@ var Scene = class Scene extends AbstractScene {
|
|
|
5251
5327
|
getEngine() {
|
|
5252
5328
|
return this._engine;
|
|
5253
5329
|
}
|
|
5330
|
+
get postProcessRenderPipelineManager() {
|
|
5331
|
+
this._postProcessRenderPipelineManager ??= new PostProcessRenderPipelineManager();
|
|
5332
|
+
return this._postProcessRenderPipelineManager;
|
|
5333
|
+
}
|
|
5254
5334
|
/** Babylon.js `scene.getClassName()`. */
|
|
5255
5335
|
getClassName() {
|
|
5256
5336
|
return "Scene";
|
|
@@ -5305,6 +5385,11 @@ var Scene = class Scene extends AbstractScene {
|
|
|
5305
5385
|
this._pendingTextures.length = 0;
|
|
5306
5386
|
}
|
|
5307
5387
|
}
|
|
5388
|
+
/** @internal Rebind resolved textures for loaded materials that entered Lite outside compat's deferred mesh-add path. */
|
|
5389
|
+
_ensureRegisteredMaterialsRenderable() {
|
|
5390
|
+
const engine = this._engine._lite;
|
|
5391
|
+
for (const material of this.materials) material._ensureRenderable(engine);
|
|
5392
|
+
}
|
|
5308
5393
|
/**
|
|
5309
5394
|
* @internal Register a deferred ground-UV bake (for `CreateGroundFromHeightMap` with a
|
|
5310
5395
|
* PBR `albedoTexture` whose `uScale`/`vScale` tiling must be baked into the geometry,
|
|
@@ -5371,6 +5456,17 @@ var Scene = class Scene extends AbstractScene {
|
|
|
5371
5456
|
}
|
|
5372
5457
|
return wrapper;
|
|
5373
5458
|
}
|
|
5459
|
+
/** @internal Return the canonical compat wrapper for a loader-produced material when its family is adaptable. */
|
|
5460
|
+
_wrapLoadedMaterial(lite) {
|
|
5461
|
+
let wrapper = this._loadedMaterialCache.get(lite);
|
|
5462
|
+
if (wrapper) return wrapper;
|
|
5463
|
+
const family = getMaterialFamily(lite);
|
|
5464
|
+
if (family === "standard") wrapper = StandardMaterial._fromLite(lite.name ?? "loaded material", lite, this);
|
|
5465
|
+
else if (family === "pbr") wrapper = PBRMaterial._fromLite(lite.name ?? "loaded material", lite, this);
|
|
5466
|
+
else return null;
|
|
5467
|
+
this._loadedMaterialCache.set(lite, wrapper);
|
|
5468
|
+
return wrapper;
|
|
5469
|
+
}
|
|
5374
5470
|
/** @internal Remove a disposed particle system from the Babylon.js scene collection. */
|
|
5375
5471
|
_unregisterParticleSystem(lite) {
|
|
5376
5472
|
this._retiredParticleSystems.add(lite);
|
|
@@ -6017,6 +6113,7 @@ var Scene = class Scene extends AbstractScene {
|
|
|
6017
6113
|
runCleanup(() => this._beforeRenderFlushCallbacks.clear());
|
|
6018
6114
|
if (this._propertyAnimationManager) runCleanup(() => clearAnimationManager(this._propertyAnimationManager));
|
|
6019
6115
|
if (this._blendManager) runCleanup(() => clearAnimationManager(this._blendManager));
|
|
6116
|
+
if (this._postProcessRenderPipelineManager) runCleanup(() => this._postProcessRenderPipelineManager.dispose());
|
|
6020
6117
|
this._runningAnimatables.length = 0;
|
|
6021
6118
|
runCleanup(() => this._skeletons.splice(0));
|
|
6022
6119
|
runCleanup(() => this._skeletonCache.clear());
|
|
@@ -7080,6 +7177,17 @@ function loadCompatTexture(engine, url, opts) {
|
|
|
7080
7177
|
}
|
|
7081
7178
|
var BaseTexture = class {
|
|
7082
7179
|
name = "";
|
|
7180
|
+
_level = 1;
|
|
7181
|
+
/** @internal Listeners used by material adapters whose Lite strength is derived from `level`. */
|
|
7182
|
+
_levelListeners;
|
|
7183
|
+
get level() {
|
|
7184
|
+
return this._level;
|
|
7185
|
+
}
|
|
7186
|
+
set level(value) {
|
|
7187
|
+
if (value === this._level) return;
|
|
7188
|
+
this._level = value;
|
|
7189
|
+
for (const listener of this._levelListeners ?? []) listener(value);
|
|
7190
|
+
}
|
|
7083
7191
|
/** @internal The underlying Lite texture handle. Undefined until the async load resolves. */
|
|
7084
7192
|
_lite;
|
|
7085
7193
|
/** @internal One-shot listeners fired when the GPU handle first resolves (see {@link _onReady}). */
|
|
@@ -7100,6 +7208,14 @@ var BaseTexture = class {
|
|
|
7100
7208
|
}
|
|
7101
7209
|
(this._readyListeners ??= []).push(listener);
|
|
7102
7210
|
}
|
|
7211
|
+
/** @internal Observe runtime `level` changes. Returns an unsubscribe callback. */
|
|
7212
|
+
_onLevelChanged(listener) {
|
|
7213
|
+
(this._levelListeners ??= []).push(listener);
|
|
7214
|
+
return () => {
|
|
7215
|
+
const index = this._levelListeners?.indexOf(listener) ?? -1;
|
|
7216
|
+
if (index !== -1) this._levelListeners.splice(index, 1);
|
|
7217
|
+
};
|
|
7218
|
+
}
|
|
7103
7219
|
/** @internal Fire and clear the readiness listeners (called by subclasses once `_lite` resolves). */
|
|
7104
7220
|
_notifyReady() {
|
|
7105
7221
|
const listeners = this._readyListeners;
|
|
@@ -7116,7 +7232,9 @@ var BaseTexture = class {
|
|
|
7116
7232
|
getInternalTexture() {
|
|
7117
7233
|
return this._lite ?? null;
|
|
7118
7234
|
}
|
|
7119
|
-
dispose() {
|
|
7235
|
+
dispose() {
|
|
7236
|
+
this._levelListeners = void 0;
|
|
7237
|
+
}
|
|
7120
7238
|
};
|
|
7121
7239
|
/** Babylon.js `HtmlTexture`, forwarding DOM capture and updates to Babylon Lite. */
|
|
7122
7240
|
var HtmlTexture = class extends BaseTexture {
|
|
@@ -7213,9 +7331,18 @@ var Texture = class Texture extends BaseTexture {
|
|
|
7213
7331
|
samplingMode;
|
|
7214
7332
|
/** @internal The Scene or engine this texture was created against (for `clone`). */
|
|
7215
7333
|
_source;
|
|
7334
|
+
/** @internal The image URL, kept separate from the public name so custom names survive replacement. */
|
|
7335
|
+
_url;
|
|
7336
|
+
/** @internal The owning Lite engine, used to reject cross-engine image replacement. */
|
|
7337
|
+
_engine;
|
|
7338
|
+
/** @internal The owning scene; Babylon.js rejects image replacement on engine-only textures. */
|
|
7339
|
+
_scene;
|
|
7340
|
+
/** @internal Upload flip actually passed to Lite; engine-only loads use Lite's default. */
|
|
7341
|
+
_effectiveInvertY;
|
|
7216
7342
|
constructor(url, sceneOrEngine, noMipmapOrOptions, invertY, _samplingMode, onLoad) {
|
|
7217
7343
|
super();
|
|
7218
7344
|
this.name = url;
|
|
7345
|
+
this._url = url;
|
|
7219
7346
|
let noMipmap = false;
|
|
7220
7347
|
let invertYOpt = invertY;
|
|
7221
7348
|
let samplingMode = _samplingMode;
|
|
@@ -7231,8 +7358,10 @@ var Texture = class Texture extends BaseTexture {
|
|
|
7231
7358
|
this.samplingMode = samplingMode ?? Texture.BILINEAR_SAMPLINGMODE;
|
|
7232
7359
|
this._source = sceneOrEngine;
|
|
7233
7360
|
const scene = sceneOrEngine.getEngine ? sceneOrEngine : void 0;
|
|
7361
|
+
this._scene = scene;
|
|
7234
7362
|
const engineWrapper = scene ? void 0 : sceneOrEngine;
|
|
7235
7363
|
const engine = scene ? scene.getEngine()._lite : engineWrapper._lite;
|
|
7364
|
+
this._engine = engine;
|
|
7236
7365
|
const filterOpts = this.samplingMode === Texture.NEAREST_SAMPLINGMODE || this.samplingMode === Texture.NEAREST_NEAREST ? {
|
|
7237
7366
|
minFilter: "nearest",
|
|
7238
7367
|
magFilter: "nearest"
|
|
@@ -7242,6 +7371,7 @@ var Texture = class Texture extends BaseTexture {
|
|
|
7242
7371
|
mipMaps: !this._noMipmap,
|
|
7243
7372
|
...filterOpts
|
|
7244
7373
|
} : {};
|
|
7374
|
+
this._effectiveInvertY = scene ? this._invertY : true;
|
|
7245
7375
|
this._ready = loadCompatTexture(engine, url, loadOpts).then((tex) => {
|
|
7246
7376
|
this._lite = tex;
|
|
7247
7377
|
try {
|
|
@@ -7266,7 +7396,8 @@ var Texture = class Texture extends BaseTexture {
|
|
|
7266
7396
|
* handle (tracked against the same scene so it is ready at build).
|
|
7267
7397
|
*/
|
|
7268
7398
|
clone() {
|
|
7269
|
-
const c = new Texture(this.
|
|
7399
|
+
const c = new Texture(this._url, this._source, this._noMipmap, this._invertY, this.samplingMode);
|
|
7400
|
+
c.name = this.name;
|
|
7270
7401
|
c.uScale = this.uScale;
|
|
7271
7402
|
c.vScale = this.vScale;
|
|
7272
7403
|
c.uOffset = this.uOffset;
|
|
@@ -7275,6 +7406,23 @@ var Texture = class Texture extends BaseTexture {
|
|
|
7275
7406
|
c.coordinatesIndex = this.coordinatesIndex;
|
|
7276
7407
|
return c;
|
|
7277
7408
|
}
|
|
7409
|
+
/**
|
|
7410
|
+
* Babylon.js `Texture.replaceImage` — reuse another ready URL texture's Lite
|
|
7411
|
+
* handle without reloading it. Wrapper UV state remains local; loading state
|
|
7412
|
+
* follows the source so later clones resolve the same image.
|
|
7413
|
+
*/
|
|
7414
|
+
replaceImage(source) {
|
|
7415
|
+
if (source === this) return true;
|
|
7416
|
+
if (this.constructor !== Texture || source.constructor !== Texture || !this._scene || !this._lite || !source._lite || this._engine !== source._engine || this._effectiveInvertY !== source._effectiveInvertY) return false;
|
|
7417
|
+
const nameFollowedUrl = this.name === this._url;
|
|
7418
|
+
this._lite = source._lite;
|
|
7419
|
+
this._url = source._url;
|
|
7420
|
+
if (nameFollowedUrl) this.name = source._url;
|
|
7421
|
+
this._noMipmap = source._noMipmap;
|
|
7422
|
+
this.samplingMode = source.samplingMode;
|
|
7423
|
+
for (const material of this._scene.materials) if (material.getActiveTextures().includes(this)) material._refreshInScene();
|
|
7424
|
+
return true;
|
|
7425
|
+
}
|
|
7278
7426
|
whenReadyAsync() {
|
|
7279
7427
|
return this._ready;
|
|
7280
7428
|
}
|
|
@@ -7480,7 +7628,6 @@ var CubeTexture = class CubeTexture extends BaseTexture {
|
|
|
7480
7628
|
/** Babylon.js `coordinatesMode` (skybox = 5). Recorded for API parity. */
|
|
7481
7629
|
coordinatesMode = 0;
|
|
7482
7630
|
gammaSpace = true;
|
|
7483
|
-
level = 1;
|
|
7484
7631
|
/**
|
|
7485
7632
|
* @internal Which Lite environment loader the scene should route this handle
|
|
7486
7633
|
* through at engine start. Plain `.env`/`.dds` cube maps load via
|
|
@@ -7542,7 +7689,6 @@ var HDRCubeTexture = class extends BaseTexture {
|
|
|
7542
7689
|
/** Babylon.js `coordinatesMode` (skybox = 5). Recorded for API parity. */
|
|
7543
7690
|
coordinatesMode = 0;
|
|
7544
7691
|
gammaSpace = true;
|
|
7545
|
-
level = 1;
|
|
7546
7692
|
/** @internal Selects Lite's `loadHdrEnvironment` in the scene's env loader. */
|
|
7547
7693
|
_envLoaderKind = "hdr";
|
|
7548
7694
|
/** Fires when the HDR environment is "ready" (resolved on a microtask). */
|
|
@@ -7731,15 +7877,20 @@ var CSG2 = class CSG2 {
|
|
|
7731
7877
|
toMesh(name, scene) {
|
|
7732
7878
|
const engine = scene.getEngine()._lite;
|
|
7733
7879
|
const materials = [];
|
|
7880
|
+
const materialByLite = /* @__PURE__ */ new Map();
|
|
7734
7881
|
for (const [slot, material] of this._materials) {
|
|
7735
7882
|
attachMaterialToScene(material, scene);
|
|
7736
|
-
|
|
7883
|
+
const liteMaterial = material._lite;
|
|
7884
|
+
materials[slot] = liteMaterial;
|
|
7885
|
+
materialByLite.set(liteMaterial, material);
|
|
7737
7886
|
}
|
|
7738
7887
|
const liteMeshes = createMeshesFromCsg2(engine, this._lite, materials, name);
|
|
7739
7888
|
const savedMaterials = liteMeshes.map((m) => m.material);
|
|
7740
7889
|
const root = new Mesh(name, liteMeshes[0], scene);
|
|
7741
7890
|
const wrapped = root.material;
|
|
7742
|
-
|
|
7891
|
+
const rootMaterial = savedMaterials[0] ? materialByLite.get(savedMaterials[0]) : void 0;
|
|
7892
|
+
if (rootMaterial) root.material = rootMaterial;
|
|
7893
|
+
else root._lite.material = savedMaterials[0];
|
|
7743
7894
|
scene._deferAdd(() => {
|
|
7744
7895
|
const assigned = root.material;
|
|
7745
7896
|
if (assigned && assigned !== wrapped) {
|
|
@@ -8556,7 +8707,7 @@ async function CreateTexture2DArrayFromImageUrlsAsync(scene, urls, options) {
|
|
|
8556
8707
|
* meshes, so we prepend that root at index 0 to mirror Babylon.js — as a real,
|
|
8557
8708
|
* non-renderable `Mesh`, exactly as Babylon.js's `__root__` is a `Mesh`.
|
|
8558
8709
|
*/
|
|
8559
|
-
function collectLoadedMeshes(container, registry, scene) {
|
|
8710
|
+
function collectLoadedMeshes(container, registry, scene, register = true) {
|
|
8560
8711
|
const result = [];
|
|
8561
8712
|
const visited = /* @__PURE__ */ new Set();
|
|
8562
8713
|
const visit = (node, parent) => {
|
|
@@ -8565,7 +8716,8 @@ function collectLoadedMeshes(container, registry, scene) {
|
|
|
8565
8716
|
if (!lite._gpu && !Array.isArray(lite.children)) return;
|
|
8566
8717
|
visited.add(node);
|
|
8567
8718
|
let wrapper = registry.get(node);
|
|
8568
|
-
if (!wrapper || scene && wrapper.getScene() !== scene) wrapper = Mesh._fromLiteHierarchy(node, container, scene, registry, parent);
|
|
8719
|
+
if (!wrapper || scene && wrapper.getScene() !== scene) wrapper = Mesh._fromLiteHierarchy(node, container, scene, registry, parent, register);
|
|
8720
|
+
else if (scene) wrapper._bindLoadedScene(scene, register);
|
|
8569
8721
|
result.push(wrapper);
|
|
8570
8722
|
for (const child of lite.children ?? []) visit(child, wrapper);
|
|
8571
8723
|
};
|
|
@@ -8804,13 +8956,15 @@ function isBabylonUrl(url) {
|
|
|
8804
8956
|
function isUsdUrl(url) {
|
|
8805
8957
|
return /\.(?:usd|usda|usdc|usdz)$/i.test(urlPath(url));
|
|
8806
8958
|
}
|
|
8807
|
-
var AssetContainer = class {
|
|
8959
|
+
var AssetContainer = class AssetContainer {
|
|
8808
8960
|
/** @internal Underlying Babylon Lite asset container. */
|
|
8809
8961
|
_lite;
|
|
8810
8962
|
/** @internal Canonical loaded-mesh wrappers, cached per Lite node for stable identity. */
|
|
8811
8963
|
_meshRegistry = /* @__PURE__ */ new Map();
|
|
8812
|
-
/** @internal The compat scene this container was added to, if any (drives
|
|
8964
|
+
/** @internal The compat scene this container was added to, if any (drives registry membership). */
|
|
8813
8965
|
_scene;
|
|
8966
|
+
/** @internal Destination supplied at load time for later instantiation, even while the container stays detached. */
|
|
8967
|
+
_destinationScene;
|
|
8814
8968
|
/** @internal Canonical loaded-skeleton wrappers. */
|
|
8815
8969
|
_skeletons;
|
|
8816
8970
|
_dispose;
|
|
@@ -8818,10 +8972,11 @@ var AssetContainer = class {
|
|
|
8818
8972
|
_ownedMeshes;
|
|
8819
8973
|
_sceneDisposeObserver;
|
|
8820
8974
|
_disposed = false;
|
|
8821
|
-
constructor(lite, dispose, ownedMeshes) {
|
|
8975
|
+
constructor(lite, dispose, ownedMeshes, scene) {
|
|
8822
8976
|
this._lite = lite;
|
|
8823
8977
|
this._dispose = dispose;
|
|
8824
8978
|
this._ownedMeshes = ownedMeshes ? [...ownedMeshes] : void 0;
|
|
8979
|
+
this._destinationScene = scene;
|
|
8825
8980
|
}
|
|
8826
8981
|
get animationGroups() {
|
|
8827
8982
|
return this._lite.animationGroups ?? [];
|
|
@@ -8834,11 +8989,50 @@ var AssetContainer = class {
|
|
|
8834
8989
|
*/
|
|
8835
8990
|
get meshes() {
|
|
8836
8991
|
if (this._disposed) return [...this._meshRegistry.values()];
|
|
8837
|
-
|
|
8992
|
+
const scene = this._scene ?? this._destinationScene;
|
|
8993
|
+
return collectLoadedMeshes(this._lite, this._meshRegistry, scene, this._scene !== void 0);
|
|
8838
8994
|
}
|
|
8839
8995
|
get skeletons() {
|
|
8840
8996
|
return this._skeletons ??= (this._lite.skeletons ?? []).map((skeleton, index) => this._scene?._wrapSkeleton(skeleton) ?? Skeleton._fromLite(skeleton, index));
|
|
8841
8997
|
}
|
|
8998
|
+
/**
|
|
8999
|
+
* Babylon.js `AssetContainer.instantiateModelsToScene` for clone-backed Lite
|
|
9000
|
+
* hierarchies. Materials can be cloned independently; animation/skeleton
|
|
9001
|
+
* retargeting remains outside Lite's clone contract.
|
|
9002
|
+
*/
|
|
9003
|
+
instantiateModelsToScene(nameFunction, cloneMaterials = false, options) {
|
|
9004
|
+
const scene = this._scene ?? this._destinationScene;
|
|
9005
|
+
if (!scene) throw new Error("AssetContainer.instantiateModelsToScene requires a Scene.");
|
|
9006
|
+
if ((this._lite.animationGroups?.length ?? 0) > 0 || (this._lite.skeletons?.length ?? 0) > 0) unsupported("AssetContainer.instantiateModelsToScene", "Lite can clone loaded node hierarchies, but cloned animation-group and skeleton binding/retargeting needs a loader-owned clone policy.");
|
|
9007
|
+
if (options?.doNotInstantiate === false) unsupported("AssetContainer.instantiateModelsToScene", "Lite exposes hierarchy cloning but no Babylon.js InstancedMesh ownership model; pass doNotInstantiate: true.");
|
|
9008
|
+
const lite = { entities: this._lite.entities.map((entity) => cloneTransformNode(entity)) };
|
|
9009
|
+
const clone = new AssetContainer(lite, void 0, void 0, scene);
|
|
9010
|
+
clone.addAllToScene(scene);
|
|
9011
|
+
const meshes = clone.meshes;
|
|
9012
|
+
if (nameFunction) {
|
|
9013
|
+
const sources = this.meshes;
|
|
9014
|
+
for (let index = 0; index < meshes.length; index++) meshes[index].name = nameFunction(sources[index]?.name ?? meshes[index].name);
|
|
9015
|
+
}
|
|
9016
|
+
if (cloneMaterials) {
|
|
9017
|
+
const materials = /* @__PURE__ */ new Map();
|
|
9018
|
+
for (const mesh of meshes) {
|
|
9019
|
+
const material = mesh.material;
|
|
9020
|
+
if (!material) continue;
|
|
9021
|
+
if (!("clone" in material) || typeof material.clone !== "function") unsupported("AssetContainer.instantiateModelsToScene", "The assigned compat material has no Babylon.js clone contract, so Lite cannot create an independent material for the cloned hierarchy.");
|
|
9022
|
+
let cloned = materials.get(material);
|
|
9023
|
+
if (!cloned) {
|
|
9024
|
+
cloned = material.clone(nameFunction ? nameFunction(material.name) : `Clone of ${material.name}`);
|
|
9025
|
+
materials.set(material, cloned);
|
|
9026
|
+
}
|
|
9027
|
+
mesh.material = cloned;
|
|
9028
|
+
}
|
|
9029
|
+
}
|
|
9030
|
+
return {
|
|
9031
|
+
rootNodes: meshes.filter((mesh) => mesh.parent === null),
|
|
9032
|
+
skeletons: [],
|
|
9033
|
+
animationGroups: []
|
|
9034
|
+
};
|
|
9035
|
+
}
|
|
8842
9036
|
/** Add every entity, animation group, camera, and clear colour to the scene. */
|
|
8843
9037
|
addAllToScene(scene) {
|
|
8844
9038
|
addToScene(scene._lite, this._lite);
|
|
@@ -8932,10 +9126,10 @@ async function load(rootUrl, fileName, scene, usdOptions) {
|
|
|
8932
9126
|
const url = joinUrl(rootUrl, fileName);
|
|
8933
9127
|
const engine = scene.getEngine()._lite;
|
|
8934
9128
|
if (!isBabylonUrl(url) && !isUsdUrl(url)) enableBoneControlForSkinnedAssets();
|
|
8935
|
-
if (isUsdUrl(url)) return loadUsdContainer(engine, url, usdOptions);
|
|
8936
|
-
if (isBabylonUrl(url)) return new AssetContainer(await loadBabylon(engine, url));
|
|
9129
|
+
if (isUsdUrl(url)) return loadUsdContainer(engine, url, usdOptions, void 0, scene);
|
|
9130
|
+
if (isBabylonUrl(url)) return new AssetContainer(await loadBabylon(engine, url), void 0, void 0, scene);
|
|
8937
9131
|
RegisterKHR_materials_scatter();
|
|
8938
|
-
return new AssetContainer(await loadGltf(engine, url));
|
|
9132
|
+
return new AssetContainer(await loadGltf(engine, url), void 0, void 0, scene);
|
|
8939
9133
|
}
|
|
8940
9134
|
/** Babylon.js `SceneLoader` — async glTF/.babylon loading into a compat scene. */
|
|
8941
9135
|
var SceneLoader = {
|
|
@@ -9014,14 +9208,14 @@ async function LoadAssetContainerAsync(source, scene, options) {
|
|
|
9014
9208
|
async function loadFromSource(source, scene, usdOptions, onProgress) {
|
|
9015
9209
|
const engine = scene.getEngine()._lite;
|
|
9016
9210
|
if (!isBabylonUrl(source) && !isUsdUrl(source)) enableBoneControlForSkinnedAssets();
|
|
9017
|
-
if (isUsdUrl(source)) return loadUsdContainer(engine, source, usdOptions, onProgress);
|
|
9018
|
-
if (isBabylonUrl(source)) return new AssetContainer(await loadBabylon(engine, source));
|
|
9211
|
+
if (isUsdUrl(source)) return loadUsdContainer(engine, source, usdOptions, onProgress, scene);
|
|
9212
|
+
if (isBabylonUrl(source)) return new AssetContainer(await loadBabylon(engine, source), void 0, void 0, scene);
|
|
9019
9213
|
RegisterKHR_materials_scatter();
|
|
9020
|
-
return new AssetContainer(await loadGltf(engine, source));
|
|
9214
|
+
return new AssetContainer(await loadGltf(engine, source), void 0, void 0, scene);
|
|
9021
9215
|
}
|
|
9022
|
-
async function loadUsdContainer(engine, source, options = {}, onProgress) {
|
|
9216
|
+
async function loadUsdContainer(engine, source, options = {}, onProgress, scene) {
|
|
9023
9217
|
const lite = await loadUsd(engine, source, toLiteUsdOptions(resolveUsdOptions(options), void 0, onProgress));
|
|
9024
|
-
const container = new AssetContainer(lite, () => disposeUsd(lite), lite._usdMeshes);
|
|
9218
|
+
const container = new AssetContainer(lite, () => disposeUsd(lite), lite._usdMeshes, scene);
|
|
9025
9219
|
try {
|
|
9026
9220
|
options.onComplete?.(lite.diagnostics);
|
|
9027
9221
|
return container;
|
|
@@ -10147,7 +10341,7 @@ var SpriteManager = class {
|
|
|
10147
10341
|
});
|
|
10148
10342
|
for (const sprite of this._sprites) sprite._applyTo(system);
|
|
10149
10343
|
this._lite = system;
|
|
10150
|
-
|
|
10344
|
+
addBillboardSystemToScene(scene._lite, system);
|
|
10151
10345
|
});
|
|
10152
10346
|
}
|
|
10153
10347
|
/** Babylon.js `SpriteManager.isReady()` — an empty manager is ready without renderer preparation. */
|
|
@@ -12651,6 +12845,7 @@ var DITHERED_TILE_FADE_UNSUPPORTED = "Lite's material-plugin bridge supports sha
|
|
|
12651
12845
|
var GAUSSIAN_SPLATTING_MATERIAL_UNSUPPORTED = "Lite's Gaussian-splat renderable fixes shader fragments and render state at load time and exposes no post-load material replacement or pipeline-rebuild lifecycle. Supporting Babylon.js GaussianSplattingMaterial plugins requires an opt-in Lite splat-material lifecycle design.";
|
|
12652
12846
|
var GAUSSIAN_POINT_SPLATTING_UNSUPPORTED = "Lite exposes Gaussian Point Splatting through a scene-integrated high-level handle. Babylon.js's standalone renderer and blit-material classes expose manual accumulation/depth buffers and pass-level GPU control, which cannot be adapted without exposing raw GPU resources forbidden by Lite's public API.";
|
|
12653
12847
|
var SHADER_MATERIAL_UNSUPPORTED = "Lite accepts standalone WGSL, but Babylon.js ShaderMaterial sources rely on the Effect shader-store/preprocessor dialect (attribute/varying declarations and injected VertexInputs/FragmentInputs); adapting it requires a shader preprocessing subsystem.";
|
|
12848
|
+
var SUBMESH_INDIRECT_DRAW_UNSUPPORTED = "Lite can bind one indexed-indirect source to an entire mesh, but Babylon.js binds application-owned draw arguments per submesh and render-pass id. Supporting that requires changing Lite's existing material renderable and pass-recording hot paths, so it cannot be added as an independent tree-shakeable adapter.";
|
|
12654
12849
|
var FLOW_GRAPH_UNSUPPORTED = "Babylon Lite's flow-graph runtime does not expose Babylon.js FlowGraph blocks, connections, or contexts. Validation requires a stable cross-model graph adapter and block registry design.";
|
|
12655
12850
|
var FlowGraphValidationSeverity = /* @__PURE__ */ function(FlowGraphValidationSeverity) {
|
|
12656
12851
|
FlowGraphValidationSeverity[FlowGraphValidationSeverity["Error"] = 0] = "Error";
|
|
@@ -12663,6 +12858,77 @@ function ValidateFlowGraph(_flowGraph) {
|
|
|
12663
12858
|
function ValidateFlowGraphWithBlockList(_flowGraph, _allKnownBlocks) {
|
|
12664
12859
|
return unsupported("ValidateFlowGraphWithBlockList", FLOW_GRAPH_UNSUPPORTED);
|
|
12665
12860
|
}
|
|
12861
|
+
var DefaultKTX2EncoderOptions = class {
|
|
12862
|
+
_dirty = true;
|
|
12863
|
+
_etc1sQualityLevel;
|
|
12864
|
+
_etc1sCompressionLevel;
|
|
12865
|
+
_uastcQualityLevel;
|
|
12866
|
+
_zstandard;
|
|
12867
|
+
get isDirty() {
|
|
12868
|
+
return this._dirty;
|
|
12869
|
+
}
|
|
12870
|
+
get etc1sQualityLevel() {
|
|
12871
|
+
return this._etc1sQualityLevel;
|
|
12872
|
+
}
|
|
12873
|
+
set etc1sQualityLevel(value) {
|
|
12874
|
+
this._etc1sQualityLevel = value;
|
|
12875
|
+
this._dirty = true;
|
|
12876
|
+
}
|
|
12877
|
+
get etc1sCompressionLevel() {
|
|
12878
|
+
return this._etc1sCompressionLevel;
|
|
12879
|
+
}
|
|
12880
|
+
set etc1sCompressionLevel(value) {
|
|
12881
|
+
this._etc1sCompressionLevel = value;
|
|
12882
|
+
this._dirty = true;
|
|
12883
|
+
}
|
|
12884
|
+
get uastcQualityLevel() {
|
|
12885
|
+
return this._uastcQualityLevel;
|
|
12886
|
+
}
|
|
12887
|
+
set uastcQualityLevel(value) {
|
|
12888
|
+
this._uastcQualityLevel = value;
|
|
12889
|
+
this._dirty = true;
|
|
12890
|
+
}
|
|
12891
|
+
get zstandard() {
|
|
12892
|
+
return this._zstandard;
|
|
12893
|
+
}
|
|
12894
|
+
set zstandard(value) {
|
|
12895
|
+
this._zstandard = value;
|
|
12896
|
+
this._dirty = true;
|
|
12897
|
+
}
|
|
12898
|
+
};
|
|
12899
|
+
var defaultKtx2EncoderOptions = null;
|
|
12900
|
+
var KhronosTextureContainer2Encoder = class {
|
|
12901
|
+
static get URLConfig() {
|
|
12902
|
+
return unsupported("KhronosTextureContainer2Encoder.URLConfig", "The URLs configure the out-of-scope @babylonjs/ktx2encoder worker/WASM package, which Lite does not ship or own.");
|
|
12903
|
+
}
|
|
12904
|
+
static DefaultNumWorkers = 1;
|
|
12905
|
+
static get DefaultEncoderOptions() {
|
|
12906
|
+
return defaultKtx2EncoderOptions ??= new DefaultKTX2EncoderOptions();
|
|
12907
|
+
}
|
|
12908
|
+
constructor() {
|
|
12909
|
+
unsupported("KhronosTextureContainer2Encoder", "KTX2 encoding depends on the out-of-scope @babylonjs/ktx2encoder worker/WASM package and its worker-pool ownership lifecycle.");
|
|
12910
|
+
}
|
|
12911
|
+
};
|
|
12912
|
+
function MapSRGBToLinear(format) {
|
|
12913
|
+
if (format >= 37840 && format <= 37853) return format - 32;
|
|
12914
|
+
switch (format) {
|
|
12915
|
+
case 35916: return 33776;
|
|
12916
|
+
case 35918: return 33778;
|
|
12917
|
+
case 35919: return 33779;
|
|
12918
|
+
case 37493: return 37492;
|
|
12919
|
+
case 37497: return 37496;
|
|
12920
|
+
case 37495: return 37494;
|
|
12921
|
+
case 36493: return 36492;
|
|
12922
|
+
default: return null;
|
|
12923
|
+
}
|
|
12924
|
+
}
|
|
12925
|
+
var WebGPURenderPassCommandStreamProtocolVersion = 1;
|
|
12926
|
+
var WebGPURenderPassCommandStreamMaxDrawsPerBatch = 1024;
|
|
12927
|
+
var WebGPURenderPassCommandStream = class {
|
|
12928
|
+
constructor() {
|
|
12929
|
+
unsupported("WebGPURenderPassCommandStream", "This API records Babylon Native render-pass command batches through host-specific resource IDs; Lite exposes no native-host recorder contract.");
|
|
12930
|
+
}
|
|
12931
|
+
};
|
|
12666
12932
|
function RemoveFlowGraphAnimationGroupObservers(_context, _animationGroup) {
|
|
12667
12933
|
return unsupported("RemoveFlowGraphAnimationGroupObservers", FLOW_GRAPH_UNSUPPORTED);
|
|
12668
12934
|
}
|
|
@@ -12814,6 +13080,15 @@ var MultiMaterial = class {
|
|
|
12814
13080
|
unsupported("MultiMaterial", "Babylon Lite uses one material per renderable. Split the mesh geometry by material into separate meshes instead.");
|
|
12815
13081
|
}
|
|
12816
13082
|
};
|
|
13083
|
+
/** Babylon.js `SubMesh`; pass-specific indirect drawing requires Lite renderer integration. */
|
|
13084
|
+
var SubMesh = class {
|
|
13085
|
+
constructor(_materialIndex, _verticesStart, _verticesCount, _indexStart, _indexCount, _mesh, _renderingMesh, _createBoundingBox, _addToMesh) {
|
|
13086
|
+
unsupported("SubMesh", SUBMESH_INDIRECT_DRAW_UNSUPPORTED);
|
|
13087
|
+
}
|
|
13088
|
+
setIndirectDrawBuffer(_buffer, _byteOffset, _renderPassId) {
|
|
13089
|
+
unsupported("SubMesh.setIndirectDrawBuffer", SUBMESH_INDIRECT_DRAW_UNSUPPORTED);
|
|
13090
|
+
}
|
|
13091
|
+
};
|
|
12817
13092
|
var GaussianSplattingMaxPartCount = GAUSSIAN_SPLATTING_MAX_PART_COUNT;
|
|
12818
13093
|
function GetGaussianSplattingMaxPartCount(engine) {
|
|
12819
13094
|
return getGaussianSplattingMaxPartCount(engine._lite);
|
|
@@ -13404,21 +13679,33 @@ function ComputeOverlayCssTransform() {
|
|
|
13404
13679
|
function GetElementPixelFromUv() {
|
|
13405
13680
|
return unsupported("GetElementPixelFromUv", "HTML overlay raycast interaction is not supported by Babylon Lite.");
|
|
13406
13681
|
}
|
|
13407
|
-
/**
|
|
13682
|
+
/**
|
|
13683
|
+
* Babylon.js `IsHtmlInCanvasSupportedNatively`.
|
|
13684
|
+
*
|
|
13685
|
+
* The legacy polyfill uses a positional upload signature that Lite's existing
|
|
13686
|
+
* HTML texture module cannot consume without adding feature branches to a
|
|
13687
|
+
* module already included by HTML-texture users.
|
|
13688
|
+
*/
|
|
13408
13689
|
function IsHtmlInCanvasSupportedNatively() {
|
|
13409
|
-
return unsupported("IsHtmlInCanvasSupportedNatively", "
|
|
13690
|
+
return unsupported("IsHtmlInCanvasSupportedNatively", "Supporting the legacy HTML-in-Canvas polyfill requires changing Lite's existing HTML texture upload path, which would add code to current HTML-texture bundles.");
|
|
13410
13691
|
}
|
|
13411
13692
|
/** Babylon.js internal polyfill-state query. Compat never installs the unsupported polyfill. */
|
|
13412
13693
|
function _IsHtmlInCanvasPolyfillInstalled() {
|
|
13413
13694
|
return false;
|
|
13414
13695
|
}
|
|
13415
|
-
/**
|
|
13696
|
+
/**
|
|
13697
|
+
* Babylon.js `InstallHtmlInCanvasPolyfill`.
|
|
13698
|
+
*
|
|
13699
|
+
* The installed polyfill would redirect Lite to an incompatible positional
|
|
13700
|
+
* upload API, so exposing the installer without changing Lite's hot path would
|
|
13701
|
+
* break otherwise-working HTML textures.
|
|
13702
|
+
*/
|
|
13416
13703
|
function InstallHtmlInCanvasPolyfill() {
|
|
13417
|
-
return unsupported("InstallHtmlInCanvasPolyfill", "The
|
|
13704
|
+
return unsupported("InstallHtmlInCanvasPolyfill", "The legacy polyfill's positional upload API requires changes inside Lite's existing HTML texture module, so it cannot be added as a zero-impact compat-only capability.");
|
|
13418
13705
|
}
|
|
13419
|
-
/** Babylon.js `UninstallHtmlInCanvasPolyfill
|
|
13706
|
+
/** Babylon.js `UninstallHtmlInCanvasPolyfill`; paired with the structurally blocked installer. */
|
|
13420
13707
|
function UninstallHtmlInCanvasPolyfill() {
|
|
13421
|
-
return unsupported("UninstallHtmlInCanvasPolyfill", "The
|
|
13708
|
+
return unsupported("UninstallHtmlInCanvasPolyfill", "The matching installer is unavailable because the legacy polyfill requires changes inside Lite's existing HTML texture upload path.");
|
|
13422
13709
|
}
|
|
13423
13710
|
var Sound = class {
|
|
13424
13711
|
constructor() {
|
|
@@ -14036,11 +14323,6 @@ var FxaaPostProcess = class {
|
|
|
14036
14323
|
unsupported("FxaaPostProcess", "FXAA is not implemented in Babylon Lite.");
|
|
14037
14324
|
}
|
|
14038
14325
|
};
|
|
14039
|
-
var SSAO2RenderingPipeline = class {
|
|
14040
|
-
constructor() {
|
|
14041
|
-
unsupported("SSAO2RenderingPipeline", "SSAO is not implemented in Babylon Lite.");
|
|
14042
|
-
}
|
|
14043
|
-
};
|
|
14044
14326
|
var FSR1RenderingPipeline = class {
|
|
14045
14327
|
constructor() {
|
|
14046
14328
|
unsupported("FSR1RenderingPipeline", "FSR 1 upscaling is not implemented in Babylon Lite; it has no PostProcessRenderPipeline subsystem.");
|
|
@@ -14200,6 +14482,276 @@ var SceneOptimizer = class {
|
|
|
14200
14482
|
unsupported("SceneOptimizer", "Automatic scene optimisation is not implemented in the compat layer.");
|
|
14201
14483
|
}
|
|
14202
14484
|
};
|
|
14485
|
+
// src/post-processes/ssao2-rendering-pipeline.ts
|
|
14486
|
+
/** Babylon.js-shaped adapter over Babylon Lite's native scene SSAO pipeline. */
|
|
14487
|
+
var SSAO2RenderingPipeline = class SSAO2RenderingPipeline {
|
|
14488
|
+
static _uniqueIdSource = 0;
|
|
14489
|
+
SSAOOriginalSceneColorEffect = "SSAOOriginalSceneColorEffect";
|
|
14490
|
+
SSAORenderEffect = "SSAORenderEffect";
|
|
14491
|
+
SSAOBlurHRenderEffect = "SSAOBlurHRenderEffect";
|
|
14492
|
+
SSAOBlurVRenderEffect = "SSAOBlurVRenderEffect";
|
|
14493
|
+
SSAOCombineRenderEffect = "SSAOCombineRenderEffect";
|
|
14494
|
+
isSupported;
|
|
14495
|
+
uniqueId = ++SSAO2RenderingPipeline._uniqueIdSource;
|
|
14496
|
+
/** @internal Babylon.js pipeline registry key. */
|
|
14497
|
+
_name;
|
|
14498
|
+
_scene;
|
|
14499
|
+
_ratio;
|
|
14500
|
+
_forceGeometryBuffer;
|
|
14501
|
+
_textureType;
|
|
14502
|
+
_resolutionScale;
|
|
14503
|
+
_native = null;
|
|
14504
|
+
_camera = null;
|
|
14505
|
+
_disposed = false;
|
|
14506
|
+
_radius = 2;
|
|
14507
|
+
_totalStrength = 1;
|
|
14508
|
+
_base = 0;
|
|
14509
|
+
_maxZ = 100;
|
|
14510
|
+
_minZAspect = .2;
|
|
14511
|
+
_epsilon = .02;
|
|
14512
|
+
_samples = 8;
|
|
14513
|
+
_expensiveBlur = true;
|
|
14514
|
+
_bypassBlur = false;
|
|
14515
|
+
_bilateralSamples = 16;
|
|
14516
|
+
_bilateralSoften = 0;
|
|
14517
|
+
_bilateralTolerance = 0;
|
|
14518
|
+
_useViewportInCombineStage = true;
|
|
14519
|
+
_textureSamples = 1;
|
|
14520
|
+
_warned = /* @__PURE__ */ new Set();
|
|
14521
|
+
cameras = [];
|
|
14522
|
+
constructor(name, scene, ratio, cameras, forceGeometryBuffer = false, textureType = 0) {
|
|
14523
|
+
this._name = name;
|
|
14524
|
+
this._scene = scene;
|
|
14525
|
+
this._ratio = ratio;
|
|
14526
|
+
this._forceGeometryBuffer = forceGeometryBuffer;
|
|
14527
|
+
this._textureType = textureType;
|
|
14528
|
+
this._resolutionScale = typeof ratio === "number" ? ratio : ratio.ssaoRatio ?? 1;
|
|
14529
|
+
this.isSupported = !scene.getEngine()._headless;
|
|
14530
|
+
if (scene.getEngine()._headless) {
|
|
14531
|
+
Logger.Error("SSAO2RenderingPipeline is not supported by the headless engine.");
|
|
14532
|
+
return;
|
|
14533
|
+
}
|
|
14534
|
+
if (forceGeometryBuffer !== false) this._warnUnsupported("forceGeometryBuffer", forceGeometryBuffer);
|
|
14535
|
+
if (textureType !== 0) this._warnUnsupported("textureType", textureType);
|
|
14536
|
+
if (typeof ratio !== "number" && ratio.blurRatio !== void 0 && ratio.blurRatio !== ratio.ssaoRatio) this._warnUnsupported("blurRatio", ratio.blurRatio);
|
|
14537
|
+
if (cameras?.length) this._attachCameras(cameras);
|
|
14538
|
+
scene.postProcessRenderPipelineManager.addPipeline(this);
|
|
14539
|
+
}
|
|
14540
|
+
get radius() {
|
|
14541
|
+
return this._radius;
|
|
14542
|
+
}
|
|
14543
|
+
set radius(value) {
|
|
14544
|
+
this._radius = value;
|
|
14545
|
+
if (this._native) this._native.radius = value;
|
|
14546
|
+
}
|
|
14547
|
+
get totalStrength() {
|
|
14548
|
+
return this._totalStrength;
|
|
14549
|
+
}
|
|
14550
|
+
set totalStrength(value) {
|
|
14551
|
+
this._totalStrength = value;
|
|
14552
|
+
if (this._native) this._native.intensity = value;
|
|
14553
|
+
}
|
|
14554
|
+
get base() {
|
|
14555
|
+
return this._base;
|
|
14556
|
+
}
|
|
14557
|
+
set base(value) {
|
|
14558
|
+
this._base = value;
|
|
14559
|
+
if (this._native) this._native.base = value;
|
|
14560
|
+
}
|
|
14561
|
+
get maxZ() {
|
|
14562
|
+
return this._maxZ;
|
|
14563
|
+
}
|
|
14564
|
+
set maxZ(value) {
|
|
14565
|
+
this._maxZ = value;
|
|
14566
|
+
if (this._native) this._native.fadeEnd = value;
|
|
14567
|
+
}
|
|
14568
|
+
get minZAspect() {
|
|
14569
|
+
return this._minZAspect;
|
|
14570
|
+
}
|
|
14571
|
+
set minZAspect(value) {
|
|
14572
|
+
this._minZAspect = value;
|
|
14573
|
+
if (value !== .2) this._warnUnsupported("minZAspect", value);
|
|
14574
|
+
}
|
|
14575
|
+
get epsilon() {
|
|
14576
|
+
return this._epsilon;
|
|
14577
|
+
}
|
|
14578
|
+
set epsilon(value) {
|
|
14579
|
+
this._epsilon = value;
|
|
14580
|
+
if (value !== .02) this._warnUnsupported("epsilon", value);
|
|
14581
|
+
}
|
|
14582
|
+
get samples() {
|
|
14583
|
+
return this._samples;
|
|
14584
|
+
}
|
|
14585
|
+
set samples(value) {
|
|
14586
|
+
this._samples = value;
|
|
14587
|
+
if (value !== 8) this._warnUnsupported("samples", value);
|
|
14588
|
+
}
|
|
14589
|
+
get expensiveBlur() {
|
|
14590
|
+
return this._expensiveBlur;
|
|
14591
|
+
}
|
|
14592
|
+
get bypassBlur() {
|
|
14593
|
+
return this._bypassBlur;
|
|
14594
|
+
}
|
|
14595
|
+
set bypassBlur(value) {
|
|
14596
|
+
this._bypassBlur = value;
|
|
14597
|
+
if (value !== false) this._warnUnsupported("bypassBlur", value);
|
|
14598
|
+
}
|
|
14599
|
+
get bilateralSamples() {
|
|
14600
|
+
return this._bilateralSamples;
|
|
14601
|
+
}
|
|
14602
|
+
set bilateralSamples(value) {
|
|
14603
|
+
this._bilateralSamples = value;
|
|
14604
|
+
if (value !== 16) this._warnUnsupported("bilateralSamples", value);
|
|
14605
|
+
}
|
|
14606
|
+
get bilateralSoften() {
|
|
14607
|
+
return this._bilateralSoften;
|
|
14608
|
+
}
|
|
14609
|
+
set bilateralSoften(value) {
|
|
14610
|
+
this._bilateralSoften = value;
|
|
14611
|
+
if (value !== 0) this._warnUnsupported("bilateralSoften", value);
|
|
14612
|
+
}
|
|
14613
|
+
get bilateralTolerance() {
|
|
14614
|
+
return this._bilateralTolerance;
|
|
14615
|
+
}
|
|
14616
|
+
set bilateralTolerance(value) {
|
|
14617
|
+
this._bilateralTolerance = value;
|
|
14618
|
+
if (value !== 0) this._warnUnsupported("bilateralTolerance", value);
|
|
14619
|
+
}
|
|
14620
|
+
get useViewportInCombineStage() {
|
|
14621
|
+
return this._useViewportInCombineStage;
|
|
14622
|
+
}
|
|
14623
|
+
set useViewportInCombineStage(value) {
|
|
14624
|
+
this._useViewportInCombineStage = value;
|
|
14625
|
+
if (value !== true) this._warnUnsupported("useViewportInCombineStage", value);
|
|
14626
|
+
}
|
|
14627
|
+
set expensiveBlur(value) {
|
|
14628
|
+
this._expensiveBlur = value;
|
|
14629
|
+
if (value !== true) this._warnUnsupported("expensiveBlur", value);
|
|
14630
|
+
}
|
|
14631
|
+
get textureSamples() {
|
|
14632
|
+
return this._textureSamples;
|
|
14633
|
+
}
|
|
14634
|
+
set textureSamples(value) {
|
|
14635
|
+
this._textureSamples = value;
|
|
14636
|
+
if (value !== 1) this._warnUnsupported("textureSamples", value);
|
|
14637
|
+
}
|
|
14638
|
+
getClassName() {
|
|
14639
|
+
return "SSAO2RenderingPipeline";
|
|
14640
|
+
}
|
|
14641
|
+
get name() {
|
|
14642
|
+
return this._name;
|
|
14643
|
+
}
|
|
14644
|
+
get engine() {
|
|
14645
|
+
return this._scene.getEngine();
|
|
14646
|
+
}
|
|
14647
|
+
get scene() {
|
|
14648
|
+
return this._scene;
|
|
14649
|
+
}
|
|
14650
|
+
static get IsSupported() {
|
|
14651
|
+
const engine = _getLastCreatedEngine();
|
|
14652
|
+
return engine !== null && !engine._headless;
|
|
14653
|
+
}
|
|
14654
|
+
static Parse(source, scene) {
|
|
14655
|
+
const pipeline = new SSAO2RenderingPipeline(String(source._name ?? "ssao"), scene, source._ratio ?? 1, void 0, source._forceGeometryBuffer ?? false, Number(source._textureType ?? 0));
|
|
14656
|
+
for (const key of [
|
|
14657
|
+
"radius",
|
|
14658
|
+
"totalStrength",
|
|
14659
|
+
"base",
|
|
14660
|
+
"maxZ",
|
|
14661
|
+
"minZAspect",
|
|
14662
|
+
"epsilon",
|
|
14663
|
+
"samples",
|
|
14664
|
+
"expensiveBlur",
|
|
14665
|
+
"bypassBlur",
|
|
14666
|
+
"bilateralSamples",
|
|
14667
|
+
"bilateralSoften",
|
|
14668
|
+
"bilateralTolerance",
|
|
14669
|
+
"textureSamples"
|
|
14670
|
+
]) if (source[key] !== void 0) pipeline[key] = source[key];
|
|
14671
|
+
return pipeline;
|
|
14672
|
+
}
|
|
14673
|
+
isReady() {
|
|
14674
|
+
return this.isSupported && !this._disposed;
|
|
14675
|
+
}
|
|
14676
|
+
serialize() {
|
|
14677
|
+
return {
|
|
14678
|
+
customType: "SSAO2RenderingPipeline",
|
|
14679
|
+
_name: this._name,
|
|
14680
|
+
_ratio: this._ratio,
|
|
14681
|
+
_forceGeometryBuffer: this._forceGeometryBuffer,
|
|
14682
|
+
_textureType: this._textureType,
|
|
14683
|
+
radius: this.radius,
|
|
14684
|
+
totalStrength: this.totalStrength,
|
|
14685
|
+
base: this.base,
|
|
14686
|
+
maxZ: this.maxZ,
|
|
14687
|
+
minZAspect: this.minZAspect,
|
|
14688
|
+
epsilon: this.epsilon,
|
|
14689
|
+
samples: this.samples,
|
|
14690
|
+
expensiveBlur: this.expensiveBlur,
|
|
14691
|
+
bypassBlur: this.bypassBlur,
|
|
14692
|
+
bilateralSamples: this.bilateralSamples,
|
|
14693
|
+
bilateralSoften: this.bilateralSoften,
|
|
14694
|
+
bilateralTolerance: this.bilateralTolerance,
|
|
14695
|
+
textureSamples: this.textureSamples
|
|
14696
|
+
};
|
|
14697
|
+
}
|
|
14698
|
+
/** @internal */
|
|
14699
|
+
_attachCameras(cameras, _unique = false) {
|
|
14700
|
+
if (this._disposed || this._scene.getEngine()._headless) return;
|
|
14701
|
+
const list = Array.isArray(cameras) ? cameras : [cameras];
|
|
14702
|
+
if (list.length !== 1) unsupported("SSAO2RenderingPipeline cameras", "Babylon Lite's native scene SSAO pipeline supports exactly one fullscreen camera per scene.");
|
|
14703
|
+
const camera = list[0];
|
|
14704
|
+
if (this._camera === camera && this._native?.attached) return;
|
|
14705
|
+
if (this._native) detachSceneSsaoPipeline(this._native);
|
|
14706
|
+
this._camera = camera;
|
|
14707
|
+
this.cameras.length = 0;
|
|
14708
|
+
this.cameras.push(camera);
|
|
14709
|
+
this._native ??= createSceneSsaoPipeline({
|
|
14710
|
+
name: this._name,
|
|
14711
|
+
resolutionScale: this._resolutionScale,
|
|
14712
|
+
radius: this._radius,
|
|
14713
|
+
intensity: this._totalStrength,
|
|
14714
|
+
base: this._base,
|
|
14715
|
+
fadeEnd: this._maxZ
|
|
14716
|
+
}, this._scene.getEngine()._lite, this._scene._lite, camera._lite);
|
|
14717
|
+
this._native.camera = camera._lite;
|
|
14718
|
+
attachSceneSsaoPipeline(this._native, camera._lite);
|
|
14719
|
+
}
|
|
14720
|
+
/** @internal */
|
|
14721
|
+
_detachCameras(cameras) {
|
|
14722
|
+
const list = Array.isArray(cameras) ? cameras : [cameras];
|
|
14723
|
+
if (this._camera && list.includes(this._camera)) {
|
|
14724
|
+
if (this._native) detachSceneSsaoPipeline(this._native, this._camera._lite);
|
|
14725
|
+
this.cameras.length = 0;
|
|
14726
|
+
}
|
|
14727
|
+
}
|
|
14728
|
+
/** @internal */
|
|
14729
|
+
_enableEffect(_renderEffectName, _cameras) {
|
|
14730
|
+
return unsupported("PostProcessRenderPipelineManager.enableEffectInPipeline", "Babylon Lite's native scene SSAO is a single composite task and does not expose independently toggleable Babylon.js render effects.");
|
|
14731
|
+
}
|
|
14732
|
+
/** @internal */
|
|
14733
|
+
_disableEffect(_renderEffectName, _cameras) {
|
|
14734
|
+
return unsupported("PostProcessRenderPipelineManager.disableEffectInPipeline", "Babylon Lite's native scene SSAO is a single composite task and does not expose independently toggleable Babylon.js render effects.");
|
|
14735
|
+
}
|
|
14736
|
+
/** @internal */
|
|
14737
|
+
_update() {}
|
|
14738
|
+
/** @internal */
|
|
14739
|
+
_rebuild() {}
|
|
14740
|
+
dispose(_disableGeometryBufferRenderer = false) {
|
|
14741
|
+
if (this._disposed) return;
|
|
14742
|
+
this._disposed = true;
|
|
14743
|
+
if (this._native) disposeSceneSsaoPipeline(this._native);
|
|
14744
|
+
this._native = null;
|
|
14745
|
+
this._camera = null;
|
|
14746
|
+
this.cameras.length = 0;
|
|
14747
|
+
this._scene.postProcessRenderPipelineManager.removePipeline(this._name);
|
|
14748
|
+
}
|
|
14749
|
+
_warnUnsupported(setting, value) {
|
|
14750
|
+
if (this._warned.has(setting)) return;
|
|
14751
|
+
this._warned.add(setting);
|
|
14752
|
+
Logger.Warn(`SSAO2RenderingPipeline.${setting}=${String(value)} has no native Babylon Lite equivalent and is retained for readback only.`);
|
|
14753
|
+
}
|
|
14754
|
+
};
|
|
14203
14755
|
// src/particles/node-particle-system-set.ts
|
|
14204
14756
|
/**
|
|
14205
14757
|
* Babylon.js-compatible Node Particle Editor (NPE) surface over Babylon Lite's
|
|
@@ -14381,6 +14933,6 @@ var NodeParticleSystemSet = class NodeParticleSystemSet {
|
|
|
14381
14933
|
this._snippetId = null;
|
|
14382
14934
|
}
|
|
14383
14935
|
};
|
|
14384
|
-
export { AbstractAssetTask, AbstractAudioAnalyzer, AbstractAudioBus, AbstractAudioNode, AbstractAudioOutNode, AbstractEngine, AbstractMesh, AbstractNamedAudioNode, AbstractScene, AbstractSound, AbstractSoundSource, AbstractSpatialAudio, AbstractSpatialAudioListener, AbstractStereoAudio, Action, ActionManager, ActionManagerTriggers, AddGaussianSplattingStreamPart, AddGaussianSplattingStreamPartAsync, AmmoJSPlugin, AnaglyphArcRotateCamera, Angle, Animatable, Animation, AnimationGroup, AnimationKeyInterpolation, AnimationLoopModes, AnimationTypes, AppendSceneAsync, ArcRotateCamera, AreaLight, AreaLightTextureTools, AssetContainer, AssetsManager, AttachToBoxBehavior, AudioBus, AudioEngine, AudioEngineV2, AudioParameterRampShape, AutoRotationBehavior, Axis, AxisDragGizmo, AxisScaleGizmo, BVHFileLoader, BackEase, BackgroundMaterial, BallAndSocketConstraint, BaseSixDofDragBehavior, BaseTexture, BezierCurveEase, BlackAndWhitePostProcess, BloomEffect, BlurPostProcess, Bone, BounceEase, BouncingBehavior, BoundingBox, BoundingBoxGizmo, BoundingBoxRenderer, BoundingInfo, BoundingSphere, CSG, CSG2, Camera, CameraGizmo, CannonJSPlugin, CascadedShadowGenerator, CastingResult, ChannelMask, CharacterSupportedState, ChromaticAberrationPostProcess, CircleEase, ClusteredLightContainer, Color3, Color4, ColorGradient, CompleteGreasedLineColorTable, CompleteGreasedLineWidthTable, ComputeOverlayCssTransform, ComputeShader, ComputeShaderParse, Condition, Constants, CreateAudioBusAsync, CreateAudioEngineAsync, CreateBox, CreateCylinder, CreateDashedLines, CreateDefaultMeshBlendRadiusDefinitions, CreateDisc, CreateGreasedLine, CreateGreasedLineMaterial, CreateGround, CreateLineSystem, CreateLines, CreateMainAudioBusAsync, CreateMicrophoneSoundSourceAsync, CreatePlane, CreatePolygon, CreatePolygonVertexData, CreateSoundAsync, CreateSoundBufferAsync, CreateSoundSourceAsync, CreateSphere, CreateStreamingSoundAsync, CreateTexture2DArrayFromImageUrlsAsync, CreateTexture2DArrayFromKTX2Async, CreateTiledBox, CreateTiledPlane, CreateTorus, CubeTexture, CubicEase, Curve3, CustomAssetTask, DefaultRenderingPipeline, DepthOfFieldEffect, DepthRenderer, DeviceInputEventType, DeviceOrientationCamera, DeviceSource, DeviceSourceManager, DeviceType, DirectionalLight, DistanceConstraint, DitheredTileFadeMaterialPlugin, DivideTexturesAsync, DualSenseInput, DualShockInput, DynamicTexture, EASINGMODE_EASEIN, EASINGMODE_EASEINOUT, EASINGMODE_EASEOUT, EasingFunction, EdgesRenderer, Effect, EffectLayer, EffectWrapper, ElasticEase, Engine, Epsilon, EventConstants, ExecuteCodeAction, ExponentialEase, ExternalTexture, ExtrudePolygon, FBXConstraintBehavior, FBXConstraintSolver, FBXFileLoader, FBXFileLoaderMetadata, FSR1RenderingPipeline, FactorGradient, FadeInOutBehavior, FlowGraphValidationSeverity, FluidRenderer, FluidRendererSceneComponent, FluidRenderingObject, FluidRenderingObjectCustomParticles, FluidRenderingObjectParticleSystem, FluidRenderingTargetRenderer, FlyCamera, FollowBehavior, FollowCamera, FrameGraphMeshBlendingTask, FrameGraphMinMaxReducerTask, FramingBehavior, FreeCamera, Frustum, FxaaPostProcess, gltf1_exports as GLTF1, gltf2_exports as GLTF2, GPUParticleSystem, GPUPicker, GUID, GamepadCamera, GaussianPointSplattingBlitMaterial, GaussianPointSplattingDepthBlitMaterial, GaussianPointSplattingRenderer, GaussianSplattingDebugMaterialPlugin, GaussianSplattingGpuPickingMaterialPlugin, GaussianSplattingGpuSortOutput, GaussianSplattingGpuSorter, GaussianSplattingMaterial, GaussianSplattingMaxPartCount, GaussianSplattingMesh, GaussianSplattingOverdrawMaterialPlugin, GaussianSplattingPartProxyMesh, GaussianSplattingSizeMaterialPlugin, GaussianSplattingSolidColorMaterialPlugin, GaussianSplattingStream, GeometryBufferRenderer, GeospatialCamera, GeospatialClippingBehavior, GetElementPixelFromUv, GetGaussianSplattingGpuSorterMaxSplatCount, GetGaussianSplattingMaxPartCount, GetPartIndexVaryingDeclaration, GetPointsCount, GetSupportedSimultaneousLights, GetWhiteBalanceMatrix, GizmoManager, GlowLayer, GreasedLineBaseMesh, GreasedLineMaterialDefaults, GreasedLineMesh, GreasedLineMeshColorDistribution, GreasedLineMeshWidthDistribution, GreasedLinePluginMaterial, GreasedLineRibbonAutoDirectionMode, GreasedLineRibbonFacesMode, GreasedLineRibbonMesh, GreasedLineRibbonPointsMode, GreasedLineSimpleMaterial, GreasedLineTools, GridMaterial, GroundMesh, HDRCubeTexture, HandConstraintBehavior, HavokPlugin, HemisphericLight, HighlightLayer, HingeConstraint, HtmlInteractionManager, HtmlRaycastInteractionManager, HtmlTexture, ImageProcessingConfiguration, ImportMeshAsync, IncrementValueAction, InitializeCSG2Async, InstallHtmlInCanvasPolyfill, InstancedMesh, InterpolatingBehavior, IsHtmlInCanvasSupportedNatively, IsHtmlInCanvasUploadSupported, KHR_materials_scatter, KHR_materials_variants, LastCreatedAudioEngine, Layer, Light, LightGizmo, LinesMesh, LiteCompatError, LoadAssetContainerAsync, LoadImageToTexture2DArrayLayerAsync, LockConstraint, Logger, MainAudioBus, Material, MaterialGreasedLineDefines, MaterialPluginBase, MaterialPluginManager, Matrix, MaxTintMagnitude, Mesh, MeshBlendDebugMode, MeshBlendDepthType, MeshBlendQuality, MeshBlendingPostProcess, MeshBlendingRadiusClass, MeshBuilder, MeshoptCompression, MinTemperatureKelvin, MirrorTexture, MorphTarget, MorphTargetManager, MultiMaterial, MultiPointerScaleBehavior, MultiScatterToSingleScatterAlbedoAsync, Node, NodeMaterial, NodeParticleSystemSet, NodeRenderGraphMeshBlendingPostProcessBlock, NodeRenderGraphMinMaxReducerBlock, NullEngine, OBJFileLoader, Observable, OnAudioEngineV2CreatedObservable, OpenPBRMaterial, OpenPBRMaterialDefines, OpenPBRMaterialLoadingAdapter, OutlineRenderer, PBRAnisotropicConfiguration, PBRClearCoatConfiguration, PBRIridescenceConfiguration, PBRMaterial, PBRMetallicRoughnessMaterial, PBRSheenConfiguration, PBRSpecularGlossinessMaterial, PackMeshBlendingTag, ParticleHelper, ParticleSystem, ParticleSystemSet, Path3D, PerformanceMonitor, Physics6DoFConstraint, Physics6DoFLimit, PhysicsAggregate, PhysicsBody, PhysicsCharacterController, PhysicsConstraint, PhysicsConstraintAxis, PhysicsConstraintType, PhysicsEngine, PhysicsMotionType, PhysicsPrestepType, PhysicsRaycastResult, PhysicsShape, PhysicsShapeType, PickingInfo, Plane, PlaneDragGizmo, PlaneRotationGizmo, PointLight, PointerDragBehavior, PointerEventTypes, PointerInfo, PointerInput, PointsCloudSystem, Polar, PolygonBuilder, PositionGizmo, PostProcess, PowerEase, PrecisionDate, PredicateCondition, PrismaticConstraint, PushMaterial, QuadraticEase, QuarticEase, Quaternion, QuinticEase, RandomGUID, RawTexture, RawTexture2DArray, RawTexture3D, Ray, RecastJSPlugin, RectAreaLight, ReflectionProbe, RegisterAbstractEngineTextureLoaders, RegisterComputeShader, RegisterEnginesExtensionsEngineTexture2DArrayImageSource, RegisterEnginesWebGPUExtensionsEngineTexture2DArrayImageSource, RegisterFluidRenderer, RegisterGaussianSplattingDebugMaterialPlugin, RegisterGaussianSplattingGpuPickingMaterialPlugin, RegisterGaussianSplattingMaterial, RegisterGaussianSplattingOverdrawMaterialPlugin, RegisterGaussianSplattingSizeMaterialPlugin, RegisterGaussianSplattingSolidColorMaterialPlugin, RegisterGreasedLinePluginMaterial, RegisterImageProcessingConfiguration, RegisterKHR_materials_scatter, RegisterMeshBlendingPostProcessBlock, RegisterMinMaxReducerBlock, RegisterOpenpbrMaterial, RegisterPolygonBuilder, RegisterSPLATFileLoader, RegisterUSDFileLoader, RemoveFlowGraphAnimationGroupObservers, RenderTargetTexture, RootMotionClip, RootMotionController, RootMotionSource, RotationGizmo, SPLATFileLoader, SSAO2RenderingPipeline, STLFileLoader, Scalar, ScaleGizmo, Scene, SceneLoader, SceneOptimizer, ScenePerformancePriority, SceneSerializer, SetValueAction, ShaderLanguage, ShaderMaterial, ShadowGenerator, SineEase, SingleScatterToMultiScatterAlbedoAsync, SixDofDragBehavior, Size, Skeleton, SliderConstraint, SmartArray, SolidParticleSystem, Sound, SoundSource, SoundState, Space, SpatialAudioAttachmentType, Spherical, SpotLight, SpringConstraint, Sprite, SpriteManager, SpriteMap, SpritePackedManager, SpriteRenderer, StandardMaterial, StaticSound, StaticSoundBuffer, StorageBuffer, StreamingSound, StringDictionary, SurfaceMagnetismBehavior, SwitchInput, Tags, TargetCamera, TemperatureTintToXyz, Texture, TextureChannel, TextureColorSpace, ThinEngine, ThinFSR1SharpenPostProcess, ThinFSR1UpscalePostProcess, ThinMeshBlendingPostProcess, ThinSprite, ThinWalledScatterWeightsAsync, ToDegrees, ToRadians, Tools, TouchCamera, TransformNode, TransmissionFractionAsync, TransmissionScatterToSingleScatterAlbedoAsync, USDFileLoader, UniformBuffer, UninstallHtmlInCanvasPolyfill, UniversalCamera, UnpackMeshBlendingTag, UploadHtmlElementToTexture, UploadImageToTexture2DArrayLayer, UtilityLayerRenderer, ValidateFlowGraph, ValidateFlowGraphWithBlockList, ValueCondition, ValueConditionOperators, Vector2, Vector3, Vector4, VertexBuffer, VertexData, Viewport, VirtualJoystick, WebGPUEngine, WebXRCamera, WeightedSound, XboxInput, _ClampGpuSortKeyBits, _ComputeGpuSortDepthCoefficients, _ComputeGpuSortDepthRange, _ComputeGpuSortKeyScale, _DecodeGpuSortSogMean, _GetGpuSortPaddedCount, _GetGpuSortPassCount, _GetPackedShBytesPerSplat, _HasGaussianPointSplattingProjectedDepth, _IsHtmlInCanvasPolyfillInstalled, _PackGpuSortIntervals, _RegisterUSDLoaderDependencies, defaultValueParseFunction, registerBuiltInLoaders, transformCoordinates, transformNormal, unsupported };
|
|
14936
|
+
export { AbstractAssetTask, AbstractAudioAnalyzer, AbstractAudioBus, AbstractAudioNode, AbstractAudioOutNode, AbstractEngine, AbstractMesh, AbstractNamedAudioNode, AbstractScene, AbstractSound, AbstractSoundSource, AbstractSpatialAudio, AbstractSpatialAudioListener, AbstractStereoAudio, Action, ActionManager, ActionManagerTriggers, AddGaussianSplattingStreamPart, AddGaussianSplattingStreamPartAsync, AmmoJSPlugin, AnaglyphArcRotateCamera, Angle, Animatable, Animation, AnimationGroup, AnimationKeyInterpolation, AnimationLoopModes, AnimationTypes, AppendSceneAsync, ArcRotateCamera, AreaLight, AreaLightTextureTools, AssetContainer, AssetsManager, AttachToBoxBehavior, AudioBus, AudioEngine, AudioEngineV2, AudioParameterRampShape, AutoRotationBehavior, Axis, AxisDragGizmo, AxisScaleGizmo, BVHFileLoader, BackEase, BackgroundMaterial, BallAndSocketConstraint, BaseSixDofDragBehavior, BaseTexture, BezierCurveEase, BlackAndWhitePostProcess, BloomEffect, BlurPostProcess, Bone, BounceEase, BouncingBehavior, BoundingBox, BoundingBoxGizmo, BoundingBoxRenderer, BoundingInfo, BoundingSphere, CSG, CSG2, Camera, CameraGizmo, CannonJSPlugin, CascadedShadowGenerator, CastingResult, ChannelMask, CharacterSupportedState, ChromaticAberrationPostProcess, CircleEase, ClusteredLightContainer, Color3, Color4, ColorGradient, CompleteGreasedLineColorTable, CompleteGreasedLineWidthTable, ComputeOverlayCssTransform, ComputeShader, ComputeShaderParse, Condition, Constants, CreateAudioBusAsync, CreateAudioEngineAsync, CreateBox, CreateCylinder, CreateDashedLines, CreateDefaultMeshBlendRadiusDefinitions, CreateDisc, CreateGreasedLine, CreateGreasedLineMaterial, CreateGround, CreateLineSystem, CreateLines, CreateMainAudioBusAsync, CreateMicrophoneSoundSourceAsync, CreatePlane, CreatePolygon, CreatePolygonVertexData, CreateSoundAsync, CreateSoundBufferAsync, CreateSoundSourceAsync, CreateSphere, CreateStreamingSoundAsync, CreateTexture2DArrayFromImageUrlsAsync, CreateTexture2DArrayFromKTX2Async, CreateTiledBox, CreateTiledPlane, CreateTorus, CubeTexture, CubicEase, Curve3, CustomAssetTask, DefaultKTX2EncoderOptions, DefaultRenderingPipeline, DepthOfFieldEffect, DepthRenderer, DeviceInputEventType, DeviceOrientationCamera, DeviceSource, DeviceSourceManager, DeviceType, DirectionalLight, DistanceConstraint, DitheredTileFadeMaterialPlugin, DivideTexturesAsync, DualSenseInput, DualShockInput, DynamicTexture, EASINGMODE_EASEIN, EASINGMODE_EASEINOUT, EASINGMODE_EASEOUT, EasingFunction, EdgesRenderer, Effect, EffectLayer, EffectWrapper, ElasticEase, Engine, Epsilon, EventConstants, ExecuteCodeAction, ExponentialEase, ExternalTexture, ExtrudePolygon, FBXConstraintBehavior, FBXConstraintSolver, FBXFileLoader, FBXFileLoaderMetadata, FSR1RenderingPipeline, FactorGradient, FadeInOutBehavior, FlowGraphValidationSeverity, FluidRenderer, FluidRendererSceneComponent, FluidRenderingObject, FluidRenderingObjectCustomParticles, FluidRenderingObjectParticleSystem, FluidRenderingTargetRenderer, FlyCamera, FollowBehavior, FollowCamera, FrameGraphMeshBlendingTask, FrameGraphMinMaxReducerTask, FramingBehavior, FreeCamera, Frustum, FxaaPostProcess, gltf1_exports as GLTF1, gltf2_exports as GLTF2, GPUParticleSystem, GPUPicker, GUID, GamepadCamera, GaussianPointSplattingBlitMaterial, GaussianPointSplattingDepthBlitMaterial, GaussianPointSplattingRenderer, GaussianSplattingDebugMaterialPlugin, GaussianSplattingGpuPickingMaterialPlugin, GaussianSplattingGpuSortOutput, GaussianSplattingGpuSorter, GaussianSplattingMaterial, GaussianSplattingMaxPartCount, GaussianSplattingMesh, GaussianSplattingOverdrawMaterialPlugin, GaussianSplattingPartProxyMesh, GaussianSplattingSizeMaterialPlugin, GaussianSplattingSolidColorMaterialPlugin, GaussianSplattingStream, GeometryBufferRenderer, GeospatialCamera, GeospatialClippingBehavior, GetElementPixelFromUv, GetGaussianSplattingGpuSorterMaxSplatCount, GetGaussianSplattingMaxPartCount, GetPartIndexVaryingDeclaration, GetPointsCount, GetSupportedSimultaneousLights, GetWhiteBalanceMatrix, GizmoManager, GlowLayer, GreasedLineBaseMesh, GreasedLineMaterialDefaults, GreasedLineMesh, GreasedLineMeshColorDistribution, GreasedLineMeshWidthDistribution, GreasedLinePluginMaterial, GreasedLineRibbonAutoDirectionMode, GreasedLineRibbonFacesMode, GreasedLineRibbonMesh, GreasedLineRibbonPointsMode, GreasedLineSimpleMaterial, GreasedLineTools, GridMaterial, GroundMesh, HDRCubeTexture, HandConstraintBehavior, HavokPlugin, HemisphericLight, HighlightLayer, HingeConstraint, HtmlInteractionManager, HtmlRaycastInteractionManager, HtmlTexture, ImageProcessingConfiguration, ImportMeshAsync, IncrementValueAction, InitializeCSG2Async, InstallHtmlInCanvasPolyfill, InstancedMesh, InterpolatingBehavior, IsHtmlInCanvasSupportedNatively, IsHtmlInCanvasUploadSupported, KHR_materials_scatter, KHR_materials_variants, KhronosTextureContainer2Encoder, LastCreatedAudioEngine, Layer, Light, LightGizmo, LinesMesh, LiteCompatError, LoadAssetContainerAsync, LoadImageToTexture2DArrayLayerAsync, LockConstraint, Logger, MainAudioBus, MapSRGBToLinear, Material, MaterialGreasedLineDefines, MaterialPluginBase, MaterialPluginManager, Matrix, MaxTintMagnitude, Mesh, MeshBlendDebugMode, MeshBlendDepthType, MeshBlendQuality, MeshBlendingPostProcess, MeshBlendingRadiusClass, MeshBuilder, MeshoptCompression, MinTemperatureKelvin, MirrorTexture, MorphTarget, MorphTargetManager, MultiMaterial, MultiPointerScaleBehavior, MultiScatterToSingleScatterAlbedoAsync, Node, NodeMaterial, NodeParticleSystemSet, NodeRenderGraphMeshBlendingPostProcessBlock, NodeRenderGraphMinMaxReducerBlock, NullEngine, OBJFileLoader, Observable, OnAudioEngineV2CreatedObservable, OpenPBRMaterial, OpenPBRMaterialDefines, OpenPBRMaterialLoadingAdapter, OutlineRenderer, PBRAnisotropicConfiguration, PBRClearCoatConfiguration, PBRIridescenceConfiguration, PBRMaterial, PBRMetallicRoughnessMaterial, PBRSheenConfiguration, PBRSpecularGlossinessMaterial, PackMeshBlendingTag, ParticleHelper, ParticleSystem, ParticleSystemSet, Path3D, PerformanceMonitor, Physics6DoFConstraint, Physics6DoFLimit, PhysicsAggregate, PhysicsBody, PhysicsCharacterController, PhysicsConstraint, PhysicsConstraintAxis, PhysicsConstraintType, PhysicsEngine, PhysicsMotionType, PhysicsPrestepType, PhysicsRaycastResult, PhysicsShape, PhysicsShapeType, PickingInfo, Plane, PlaneDragGizmo, PlaneRotationGizmo, PointLight, PointerDragBehavior, PointerEventTypes, PointerInfo, PointerInput, PointsCloudSystem, Polar, PolygonBuilder, PositionGizmo, PostProcess, PostProcessRenderPipelineManager, PowerEase, PrecisionDate, PredicateCondition, PrismaticConstraint, PushMaterial, QuadraticEase, QuarticEase, Quaternion, QuinticEase, RandomGUID, RawTexture, RawTexture2DArray, RawTexture3D, Ray, RecastJSPlugin, RectAreaLight, ReflectionProbe, RegisterAbstractEngineTextureLoaders, RegisterComputeShader, RegisterEnginesExtensionsEngineTexture2DArrayImageSource, RegisterEnginesWebGPUExtensionsEngineTexture2DArrayImageSource, RegisterFluidRenderer, RegisterGaussianSplattingDebugMaterialPlugin, RegisterGaussianSplattingGpuPickingMaterialPlugin, RegisterGaussianSplattingMaterial, RegisterGaussianSplattingOverdrawMaterialPlugin, RegisterGaussianSplattingSizeMaterialPlugin, RegisterGaussianSplattingSolidColorMaterialPlugin, RegisterGreasedLinePluginMaterial, RegisterImageProcessingConfiguration, RegisterKHR_materials_scatter, RegisterMeshBlendingPostProcessBlock, RegisterMinMaxReducerBlock, RegisterOpenpbrMaterial, RegisterPolygonBuilder, RegisterSPLATFileLoader, RegisterUSDFileLoader, RemoveFlowGraphAnimationGroupObservers, RenderTargetTexture, RootMotionClip, RootMotionController, RootMotionSource, RotationGizmo, SPLATFileLoader, SSAO2RenderingPipeline, STLFileLoader, Scalar, ScaleGizmo, Scene, SceneLoader, SceneOptimizer, ScenePerformancePriority, SceneSerializer, SetValueAction, ShaderLanguage, ShaderMaterial, ShadowGenerator, SineEase, SingleScatterToMultiScatterAlbedoAsync, SixDofDragBehavior, Size, Skeleton, SliderConstraint, SmartArray, SolidParticleSystem, Sound, SoundSource, SoundState, Space, SpatialAudioAttachmentType, Spherical, SpotLight, SpringConstraint, Sprite, SpriteManager, SpriteMap, SpritePackedManager, SpriteRenderer, StandardMaterial, StaticSound, StaticSoundBuffer, StorageBuffer, StreamingSound, StringDictionary, SubMesh, SurfaceMagnetismBehavior, SwitchInput, Tags, TargetCamera, TemperatureTintToXyz, Texture, TextureChannel, TextureColorSpace, ThinEngine, ThinFSR1SharpenPostProcess, ThinFSR1UpscalePostProcess, ThinMeshBlendingPostProcess, ThinSprite, ThinWalledScatterWeightsAsync, ToDegrees, ToRadians, Tools, TouchCamera, TransformNode, TransmissionFractionAsync, TransmissionScatterToSingleScatterAlbedoAsync, USDFileLoader, UniformBuffer, UninstallHtmlInCanvasPolyfill, UniversalCamera, UnpackMeshBlendingTag, UploadHtmlElementToTexture, UploadImageToTexture2DArrayLayer, UtilityLayerRenderer, ValidateFlowGraph, ValidateFlowGraphWithBlockList, ValueCondition, ValueConditionOperators, Vector2, Vector3, Vector4, VertexBuffer, VertexData, Viewport, VirtualJoystick, WebGPUEngine, WebGPURenderPassCommandStream, WebGPURenderPassCommandStreamMaxDrawsPerBatch, WebGPURenderPassCommandStreamProtocolVersion, WebXRCamera, WeightedSound, XboxInput, _ClampGpuSortKeyBits, _ComputeGpuSortDepthCoefficients, _ComputeGpuSortDepthRange, _ComputeGpuSortKeyScale, _DecodeGpuSortSogMean, _GetGpuSortPaddedCount, _GetGpuSortPassCount, _GetPackedShBytesPerSplat, _HasGaussianPointSplattingProjectedDepth, _IsHtmlInCanvasPolyfillInstalled, _PackGpuSortIntervals, _RegisterUSDLoaderDependencies, defaultValueParseFunction, registerBuiltInLoaders, transformCoordinates, transformNormal, unsupported };
|
|
14385
14937
|
|
|
14386
14938
|
//# sourceMappingURL=index.js.map
|