@ignifx/core 0.18.0 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/{environment-DZ6WUHbm.js → environment-Bf4aphSb.js} +2 -2
  2. package/dist/{environment-DZ6WUHbm.js.map → environment-Bf4aphSb.js.map} +1 -1
  3. package/dist/{gtao-_nr0b6-E.js → gtao-Bpu5-0Ne.js} +2 -2
  4. package/dist/{gtao-_nr0b6-E.js.map → gtao-Bpu5-0Ne.js.map} +1 -1
  5. package/dist/{hdr-output-Dbv0lhFl.js → hdr-output-DBQwMphy.js} +2 -2
  6. package/dist/{hdr-output-Dbv0lhFl.js.map → hdr-output-DBQwMphy.js.map} +1 -1
  7. package/dist/{ignifx-error-B8ByiSfJ.js → ignifx-error-DwIZKxA2.js} +4 -1
  8. package/dist/ignifx-error-DwIZKxA2.js.map +1 -0
  9. package/dist/index.d.ts +218 -696
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.js +2904 -970
  12. package/dist/index.js.map +1 -1
  13. package/dist/{instanced-mesh-instance-BMhREEfx.js → instanced-mesh-instance-B-fXKSrY.js} +2 -2
  14. package/dist/{instanced-mesh-instance-BMhREEfx.js.map → instanced-mesh-instance-B-fXKSrY.js.map} +1 -1
  15. package/dist/{light-probe-asset-B60_X-yN.js → light-probe-asset-BqfSrJe9.js} +2 -2
  16. package/dist/{light-probe-asset-B60_X-yN.js.map → light-probe-asset-BqfSrJe9.js.map} +1 -1
  17. package/dist/{light-probes-DkYN89Qw.js → light-probes-DDojYajw.js} +4 -4
  18. package/dist/{light-probes-DkYN89Qw.js.map → light-probes-DDojYajw.js.map} +1 -1
  19. package/dist/lightmaps-BUUIIkt9.js +230 -0
  20. package/dist/lightmaps-BUUIIkt9.js.map +1 -0
  21. package/dist/{material-CGk5mAah.js → material-myMbl9mW.js} +37 -2
  22. package/dist/{material-CGk5mAah.js.map → material-myMbl9mW.js.map} +1 -1
  23. package/dist/{material-plugin-CiAmriQ_.js → material-plugin-DapJNj04.js} +2 -2
  24. package/dist/{material-plugin-CiAmriQ_.js.map → material-plugin-DapJNj04.js.map} +1 -1
  25. package/dist/{post-effect-CQnlX1RH.js → post-effect-Cu3Enpz7.js} +2 -2
  26. package/dist/{post-effect-CQnlX1RH.js.map → post-effect-Cu3Enpz7.js.map} +1 -1
  27. package/dist/{post-effect-compiler-C_7HTHZy.js → post-effect-compiler-cCq9lcHt.js} +3 -3
  28. package/dist/{post-effect-compiler-C_7HTHZy.js.map → post-effect-compiler-cCq9lcHt.js.map} +1 -1
  29. package/dist/{prefab-overrides-DT-wHHAJ.js → prefab-overrides-C2GsgOQc.js} +467 -30
  30. package/dist/prefab-overrides-C2GsgOQc.js.map +1 -0
  31. package/dist/{prefab-overrides-BLQn5yHS.d.ts → prefab-overrides-htDc_5Po.d.ts} +1370 -246
  32. package/dist/prefab-overrides-htDc_5Po.d.ts.map +1 -0
  33. package/dist/prefab.d.ts +2 -2
  34. package/dist/prefab.js +2 -2
  35. package/dist/{reflection-probe-DlVsl3zJ.js → reflection-probe-QkD1Fo_d.js} +106 -12
  36. package/dist/{reflection-probe-DlVsl3zJ.js.map → reflection-probe-QkD1Fo_d.js.map} +1 -1
  37. package/dist/reflection-probes-CAzSuqf8.js +921 -0
  38. package/dist/reflection-probes-CAzSuqf8.js.map +1 -0
  39. package/dist/{shader-material-CaAkv5nT.js → shader-material-CJIDFvSb.js} +2 -2
  40. package/dist/{shader-material-CaAkv5nT.js.map → shader-material-CJIDFvSb.js.map} +1 -1
  41. package/dist/{shader-material-C2_UCYdO.js → shader-material-TM4f8eKA.js} +4 -4
  42. package/dist/{shader-material-C2_UCYdO.js.map → shader-material-TM4f8eKA.js.map} +1 -1
  43. package/dist/{shader-pragma-DmZpxGUo.js → shader-pragma-ljmAbVc2.js} +2 -2
  44. package/dist/{shader-pragma-DmZpxGUo.js.map → shader-pragma-ljmAbVc2.js.map} +1 -1
  45. package/dist/{ssgi-Dm-maZrc.js → ssgi-DSnhqotl.js} +2 -2
  46. package/dist/{ssgi-Dm-maZrc.js.map → ssgi-DSnhqotl.js.map} +1 -1
  47. package/dist/{surface-shader-BeDRofOV.js → surface-shader-rpPpeosD.js} +6 -6
  48. package/dist/{surface-shader-BeDRofOV.js.map → surface-shader-rpPpeosD.js.map} +1 -1
  49. package/dist/{vec3-Cc19wl4r.js → vec3-2C3LBZnt.js} +55 -3
  50. package/dist/vec3-2C3LBZnt.js.map +1 -0
  51. package/package.json +1 -1
  52. package/dist/ignifx-error-B8ByiSfJ.js.map +0 -1
  53. package/dist/prefab-overrides-BLQn5yHS.d.ts.map +0 -1
  54. package/dist/prefab-overrides-DT-wHHAJ.js.map +0 -1
  55. package/dist/reflection-probes-B8S9WnVX.js +0 -551
  56. package/dist/reflection-probes-B8S9WnVX.js.map +0 -1
  57. package/dist/vec3-Cc19wl4r.js.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { $ as TWEEN_VALUE_KINDS, $a as ComponentClassInfo, $i as SchemaIssue, $n as RENDERING_SETTINGS_SECTION, $o as RegisterAssetOptions, $r as SHADER_BLEND_MODES, $t as InstantiateOptions, A as ServiceClassKey, Aa as VEC3_FORWARD, Ai as LightProbeData, An as RenderOverlay, Ao as StringFieldSpec, Ar as LiteShaderMaterial, At as FRAME_HISTORY_LENGTH, B as WaitInstruction, Ba as QUAT_IDENTITY, Bi as Script, Bn as forceRendererDeviceLossForTesting, Bo as AssetLoader, Br as TEXTURE_ASSET_TYPE, Bt as ComponentInitValue, C as FrameState, Ca as SchemaFieldDescription, Ci as ReflectionProbeRefreshMode, Cn as RENDER_TEXTURE_MAX_SIZE, Co as LayerMaskFieldSpec, Cr as LitePbrMaterial, Cs as ErrorRange, Ct as HotReloadModule, D as Phase, Da as LiteSceneNode, Di as LIGHT_PROBE_FILE_FORMAT, Dn as RENDER_DIAGNOSTICS_COUNTERS, Do as PartialFieldsOf, Dr as SurfaceShaderBinding, Dt as HotReloadStatics, E as PHASE_NAMES, Ea as Transform, Ei as LIGHT_PROBE_FILE_EXTENSIONS, En as FrameWaitOptions, Eo as OptionalFieldSpec, Er as MaterialAlphaMode, Et as HotReloadReport, F as System, Fa as VEC3_ZERO, Fi as LayerTable, Fn as RenderTaskTiming, Fo as EntityHandle, Fr as LiteStorageBuffer, Ft as createFrameSample, G as TWEEN_LOOP_FOREVER, Ga as MutableVec2, Gi as DecodeResult, Gn as AMBIENT_OCCLUSION_QUALITIES, Go as AssetState, Gr as SHADER_ASSET_TYPE, Gt as Component, H as TweenProps, Ha as ColorLike, Hi as ScriptDefinition, Hn as isWebGpuAvailable, Ho as AssetManifestEntry, Hr as TextureAssetLiteHandles, Ht as ComponentType, I as SystemContext, Ia as Vec3, Ii as MAX_LAYERS, In as RenderTaskTimings, Io as INVALID_HANDLE, Ir as ShaderMaterialDefinition, It as resetFrameSample, J as EASINGS, Ja as QuatLike, Ji as canonicalizeNumber, Jn as AutoExposureSettings, Jo as AssetsSettings, Jr as IGNIFX_UNIFORM_NAMES, Jt as Entity, K as Tween, Ka as MutableVec3, Ki as ReferenceDecoder, Kn as AmbientOcclusionQuality, Ko as AssetTypeDefinition, Kr as SHADER_FILE_EXTENSIONS, Kt as ComponentDefinition, L as SystemEditMode, La as VEC2_ONE, Li as RESERVED_LAYER_NAMES, Ln as Renderer, Lo as AssetHandle, Lr as ShaderMaterialDefinitionInput, Lt as DiagnosticsGroup, M as ServiceNameKey, Ma as VEC3_ONE, Mi as sampleLightProbes, Mn as RenderPick, Mo as PhysicsCallbackName, Mr as StorageBufferAsset, Mt as FrameSample, N as ServiceRegistry, Na as VEC3_RIGHT, Ni as writeLightProbeFile, Nn as RenderPickIgnore, No as ScriptCallbackKind, Nr as StorageBufferAssetLiteHandles, Nt as PHASE_COUNT, O as RegisterComponentOptions, Oa as VEC3_BACKWARD, Oi as LIGHT_PROBE_FORMAT_VERSION, On as RENDER_DIAGNOSTICS_GROUP, Oo as RecordFieldSpec, Or as SurfaceShaderInit, Ot as Diagnostics, P as SortingLayersSettings, Pa as VEC3_UP, Pi as DEFAULT_LAYER, Pn as RenderPickOptions, Po as ComponentHandle, Pr as createStorageBufferAsset, Pt as PhaseIndex, Q as resolveEase, Qa as TagSet, Qi as encodeValue, Qn as RENDERING_QUALITIES, Qo as LoaderContext, Qr as SHADER_ATTRIBUTE_NAMES, Qt as CreateSceneOptions, R as Time, Ra as VEC2_ZERO, Ri as createLayerTable, Rn as RendererImpl, Ro as AssetLoadError, Rr as shaderMaterialDefinition, Rt as createDiagnosticsGroup, S as ExtensionContext, Sa as SchemaDescriptionMeta, Si as ReflectionProbe, Sn as EDITOR_ONLY_METADATA_KEY, So as FieldsOf, Sr as LiteMaterial, Ss as ErrorCode, St as HotReloadKind, T as PHASES, Ta as toJsonSchema, Ti as LIGHT_PROBE_ASSET_TYPE, Tn as LiteCamera, To as NumberFieldSpec, Tr as MATERIAL_ALPHA_MODES, Ts as isValidErrorCode, Tt as HotReloadPolicy, U as TweenTargetValue, Ua as Mat4Like, Ui as SceneInstance, Un as LiteShadowGenerator, Uo as AssetProgress, Ur as TextureImportOptions, Ut as ConcreteComponentType, V as createServiceKey, Va as Quat, Vi as ScriptCallbacks, Vn as RenderSurface, Vo as AssetManifest, Vr as TextureAsset, Vt as ComponentStatics, W as Tweens, Wa as MutableQuat, Wi as UidRemap, Wn as SHADOW_TECHNIQUES, Wo as AssetRef, Wr as LiteTexture2D, Wt as ScriptStatics, X as EasingFunction, Xa as Vec3Like, Xi as decodeValue, Xn as CanvasAlphaMode, Xo as FetchLike, Xr as LITE_SYSTEM_UNIFORM_NAMES, Xt as SetParentOptions, Y as EASING_NAMES, Ya as Vec2Like, Yi as decodeProps, Yn as CANVAS_ALPHA_MODES, Yo as BatchHandle, Yr as IgnifxUniformName, Yt as EntityPrefabLink, Z as EasingName, Za as Vec4Like, Zi as encodeProps, Zn as DEFAULT_BRDF_LUT_ADDRESS, Zo as LoadOptions, Zr as LiteSystemUniformName, Zt as CreateEntityOptions, _ as CoroutineHost, _a as isSceneFileHeader, _i as ShaderTextureFallback, _n as RayVector, _o as EnumFieldSpec, _r as STANDARD_TEXTURE_SLOTS, _s as assertNever, _t as LogLevel, a as PrefabOverrideSkip, aa as SCENE_ASSET_TYPE, ai as SURFACE_HOOK_NAMES, an as AddComponentFromRecordOptions, ao as AssetRefValue, ar as defaultRenderingSettings, as as SignalLike, at as StoredValue, b as ErrorReport, ba as JsonSchemaObject, bi as SurfaceHookName, bn as Mat4, bo as FieldOptions, br as pbrMaterialDefinition, bs as CORE_ERROR_MESSAGES, bt as LogThreshold, c as EntityOverrideField, ca as SCENE_FORMAT_VERSION, ci as ShaderBlendMode, cn as SceneBuildResult, co as ColorFieldSpec, cr as MATERIAL_FILE_FORMAT, cs as JsonArray, ct as PlatformInfo, d as App, da as SceneFileComponent, di as ShaderDefineDeclaration, dn as assertSceneDependenciesLoaded, do as CurveFieldSpec, dr as MaterialAsset, ds as LiteEngine, dt as WebGpuInfo, ea as SchemaIssueCode, ei as SHADER_CULL_MODES, en as LoadProgress, eo as ComponentRegistry, er as RenderingFeatureSettings, es as ConnectOptions, et as TweenValueKind, f as AppEvents, fa as SceneFileEntity, fi as ShaderInstancingMode, fn as instantiateScene, fo as CurveKey, fr as MaterialAssetLiteHandles, fs as LiteScene, ft as platformInternals, g as CoroutineHandle, ga as describeSceneFileFormat, gi as ShaderTextureDeclaration, gn as Ray, go as EntityRefFieldSpec, gr as PbrMaterialDefinition, gs as IgnifxErrorOptions, gt as LOG_LEVEL_SEVERITY, h as Coroutine, ha as SceneFileTransform, hi as ShaderStorageDeclaration, hn as PROJECTIONS, ho as CustomFieldSpec, hr as PBR_TEXTURE_SLOTS, hs as IgnifxError, ht as createLogger, i as PrefabOverrideSelection, ia as createSceneAsset, ii as SHADER_UNIFORM_TYPES, in as WorldLiteHandles, io as AssetFieldSpec, ir as defaultAutoExposureSettings, is as SignalHandler, it as StorageBackend, j as ServiceKey, ja as VEC3_LEFT, ji as createLightProbeAsset, jn as RenderOverlayLiteHandles, jo as VectorFieldSpec, jr as STORAGE_BUFFER_ASSET_TYPE, jt as ProfileScope, k as RegisterSystemOptions, ka as VEC3_DOWN, ki as LightProbeAsset, kn as RenderCapture, ko as Schema, kr as SurfaceShaderReference, kt as DiagnosticsOptions, l as OverridePath, la as SceneFile, li as ShaderCullMode, ln as SceneLoadIssue, lo as ComponentRefFieldSpec, lr as MATERIAL_FORMAT_VERSION, ls as JsonObject, lt as PlatformKind, m as AppSettings, ma as SceneFileOverride, mi as ShaderPipelineState, mn as CameraProjection, mo as CustomFieldCodec, mr as MaterialKind, ms as ErrorFormatMode, mt as LoggerOptions, n as PrefabApplyResult, na as SceneAssetToken, ni as SHADER_KINDS, nn as LoadSceneOptions, no as ScriptClassInfo, nr as RenderingSettings, ns as Disconnect, nt as Storage, o as applyOverridesToAsset, oa as SCENE_FILE_EXTENSIONS, oi as SURFACE_UNIFORM_BLOCK, on as ComponentBuildResult, oo as AssetTypeToken, or as MATERIAL_ASSET_TYPE, os as SignalOptions, ot as StoredValueKind, p as AppLiteHandles, pa as SceneFileInstance, pi as ShaderKind, pn as Camera, po as CurveValue, pr as MaterialDefinition, ps as ErrorContext, pt as Logger, q as TweenOptions, qa as MutableVec4, qi as ReferenceEncoder, qn as AmbientOcclusionSettings, qo as Assets, qr as ShaderAsset, qt as ComponentHooks, r as PrefabComponentSkip, ra as computeSceneHash, ri as SHADER_TEXTURE_FALLBACKS, rn as World, ro as ArrayFieldSpec, rr as TaaSettings, rs as Signal, rt as storageInternals, s as revertOverrides, sa as SCENE_FILE_FORMAT, si as ShaderAttributeName, sn as InstantiateSceneOptions, so as BoolFieldSpec, sr as MATERIAL_FILE_EXTENSION, ss as SignalOwner, st as GpuAdapterInfo, t as PrefabApplyOptions, ta as SceneAsset, ti as SHADER_INSTANCING_MODES, tn as LoadSceneFileOptions, to as ComponentReplacement, tr as RenderingQuality, ts as DeferredQueue, tt as TweenableValue, u as parseOverridePath, ua as SceneFileAssetRef, ui as ShaderDeclaration, un as addComponentFromRecord, uo as ComponentTypeToken, ur as MATERIAL_KINDS, us as JsonValue, ut as PlatformOs, v as CoroutineYield, va as sceneFileJsonSchema, vi as ShaderUniformDeclaration, vn as createRay, vo as FieldDefinition, vr as StandardMaterialDefinition, vs as formatErrorMessage, vt as LogRecord, w as LayersSettings, wa as describeSchema, wi as LightProbeVolume, wn as RenderTexture, wo as MapFieldSpec, wr as LiteStandardMaterial, ws as THIRD_PARTY_ERROR_PREFIX, wt as HotReloadOptions, x as Extension, xa as SchemaDescription, xi as REFLECTION_PROBE_REFRESH_MODES, xn as Mat4Elements, xo as FieldSpec, xr as standardMaterialDefinition, xs as CoreErrorCode, xt as HotReloadHost, y as DeviceLostInfo, ya as stringifySceneFile, yi as ShaderUniformType, yn as MAT4_IDENTITY, yo as FieldKind, yr as createMaterialAsset, ys as isIgnifxError, yt as LogSink, z as TimeSettings, za as Vec2, zi as LayerMask, zn as RenderingFeature, zo as AssetLoadErrorOptions, zr as PixelTextureOptions, zt as ComponentInit } from "./prefab-overrides-BLQn5yHS.js";
2
- import { AnimationGroup, AssetContainer, DirectionalLight, EngineContext, EnvironmentTextures, Font, HemisphericLight, Material, Mesh, PointLight, SceneContext, SceneNode, Skeleton, SpotLight, Texture2D } from "@babylonjs/lite";
1
+ import { $ as EASING_NAMES, $a as JsonSchemaObject, $i as LitePbrMaterial, $n as CANVAS_ALPHA_MODES, $o as FieldOptions, $r as STANDARD_TEXTURE_SLOTS, $s as CORE_ERROR_MESSAGES, $t as EntityPrefabLink, A as PHASE_NAMES, Aa as encodeProps, Ai as SHADER_BLEND_MODES, An as FrameWaitOptions, Ao as Vec4Like, Ar as TorusMeshOptions, As as LoadOptions, At as HotReloadReport, B as SystemContext, Ba as SCENE_FILE_FORMAT, Bi as ShaderCullMode, Bn as RenderTaskTimings, Bo as BoolFieldSpec, Br as createLightmapAsset, Bs as SignalOwner, Bt as resetFrameSample, C as DeviceLostInfo, Ca as UidRemap, Ci as SHADER_FILE_EXTENSIONS, Cn as MAT4_IDENTITY, Co as MutableQuat, Cr as MeshAsset, Cs as AssetRef, Ct as LogSink, D as FrameState, Da as canonicalizeNumber, Di as LITE_SYSTEM_UNIFORM_NAMES, Dn as RENDER_TEXTURE_MAX_SIZE, Do as QuatLike, Dr as MeshPrimitiveDefinition, Ds as AssetsSettings, Dt as HotReloadModule, E as ExtensionContext, Ea as ReferenceEncoder, Ei as IgnifxUniformName, En as EDITOR_ONLY_METADATA_KEY, Eo as MutableVec4, Er as MeshPrimitive, Es as Assets, Et as HotReloadKind, F as ServiceKey, Fa as SceneAssetToken, Fi as SHADER_UNIFORM_TYPES, Fn as RenderOverlayLiteHandles, Fo as ScriptClassInfo, Fr as LIGHTMAP_FILE_FORMAT, Fs as Disconnect, Ft as ProfileScope, G as createServiceKey, Ga as SceneFileEntity, Gi as ShaderPipelineState, Gn as RenderSurface, Go as CurveKey, Gr as MATERIAL_FORMAT_VERSION, Gs as LiteScene, Gt as ComponentStatics, H as Time, Ha as SceneFile, Hi as ShaderDefineDeclaration, Hn as RendererImpl, Ho as ComponentRefFieldSpec, Hr as MATERIAL_ASSET_TYPE, Hs as JsonObject, Ht as createDiagnosticsGroup, I as ServiceNameKey, Ia as computeSceneHash, Ii as SURFACE_HOOK_NAMES, In as RenderPick, Io as ArrayFieldSpec, Ir as LIGHTMAP_FORMAT_VERSION, Is as Signal, It as FrameSample, J as Tweens, Ja as SceneFileTransform, Ji as ShaderTextureFallback, Jn as SHADOW_TECHNIQUES, Jo as CustomFieldSpec, Jr as MaterialAssetLiteHandles, Js as IgnifxError, Jt as ScriptStatics, K as TweenProps, Ka as SceneFileInstance, Ki as ShaderStorageDeclaration, Kn as isWebGpuAvailable, Ko as CurveValue, Kr as MATERIAL_KINDS, Ks as ErrorContext, Kt as ComponentType, L as ServiceRegistry, La as createSceneAsset, Li as SURFACE_UNIFORM_BLOCK, Ln as RenderPickIgnore, Lo as AssetFieldSpec, Lr as LightmapAsset, Ls as SignalHandler, Lt as PHASE_COUNT, M as RegisterComponentOptions, Ma as SchemaIssue, Mi as SHADER_INSTANCING_MODES, Mn as RENDER_DIAGNOSTICS_GROUP, Mo as ComponentClassInfo, Mr as IDENTITY_LIGHTMAP_PLACEMENT, Ms as RegisterAssetOptions, Mt as Diagnostics, N as RegisterSystemOptions, Na as SchemaIssueCode, Ni as SHADER_KINDS, Nn as RenderCapture, No as ComponentRegistry, Nr as LIGHTMAP_ASSET_TYPE, Ns as ConnectOptions, Nt as DiagnosticsOptions, O as LayersSettings, Oa as decodeProps, Oi as LiteSystemUniformName, On as RenderTexture, Oo as Vec2Like, Or as PlaneMeshOptions, Os as BatchHandle, Ot as HotReloadOptions, P as ServiceClassKey, Pa as SceneAsset, Pi as SHADER_TEXTURE_FALLBACKS, Pn as RenderOverlay, Po as ComponentReplacement, Pr as LIGHTMAP_FILE_EXTENSIONS, Ps as DeferredQueue, Pt as FRAME_HISTORY_LENGTH, Q as EASINGS, Qa as stringifySceneFile, Qi as LiteMaterial, Qn as AutoExposureSettings, Qo as FieldKind, Qr as PbrMaterialDefinition, Qs as isIgnifxError, Qt as Entity, R as SortingLayersSettings, Ra as SCENE_ASSET_TYPE, Ri as ShaderAttributeName, Rn as RenderPickOptions, Ro as AssetRefValue, Rr as LightmapFileData, Rs as SignalLike, Rt as PhaseIndex, S as CoroutineYield, Sa as SceneInstance, Si as SHADER_ASSET_TYPE, Sn as createRay, So as Mat4Like, Sr as MESH_PRIMITIVES, Ss as AssetProgress, St as LogRecord, T as Extension, Ta as ReferenceDecoder, Ti as IGNIFX_UNIFORM_NAMES, Tn as Mat4Elements, To as MutableVec3, Tr as MeshGeometryData, Ts as AssetTypeDefinition, Tt as HotReloadHost, U as TimeSettings, Ua as SceneFileAssetRef, Ui as ShaderInstancingMode, Un as RenderingFeature, Uo as ComponentTypeToken, Ur as MATERIAL_FILE_EXTENSION, Us as JsonValue, Ut as ComponentInit, V as SystemEditMode, Va as SCENE_FORMAT_VERSION, Vi as ShaderDeclaration, Vn as Renderer, Vo as ColorFieldSpec, Vr as writeLightmapFile, Vs as JsonArray, Vt as DiagnosticsGroup, W as WaitInstruction, Wa as SceneFileComponent, Wi as ShaderKind, Wn as forceRendererDeviceLossForTesting, Wo as CurveFieldSpec, Wr as MATERIAL_FILE_FORMAT, Ws as LiteEngine, Wt as ComponentInitValue, X as Tween, Xa as isSceneFileHeader, Xi as ShaderUniformType, Xn as AmbientOcclusionQuality, Xo as EnumFieldSpec, Xr as MaterialKind, Xs as assertNever, Xt as ComponentDefinition, Y as TWEEN_LOOP_FOREVER, Ya as describeSceneFileFormat, Yi as ShaderUniformDeclaration, Yn as AMBIENT_OCCLUSION_QUALITIES, Yo as EntityRefFieldSpec, Yr as MaterialDefinition, Ys as IgnifxErrorOptions, Yt as Component, Z as TweenOptions, Za as sceneFileJsonSchema, Zi as SurfaceHookName, Zn as AmbientOcclusionSettings, Zo as FieldDefinition, Zr as PBR_TEXTURE_SLOTS, Zs as formatErrorMessage, Zt as ComponentHooks, _ as AppLiteHandles, _a as createLayerTable, _i as TEXTURE_ASSET_TYPE, _n as Camera, _o as VEC2_ZERO, _r as BoxMeshOptions, _s as AssetLoadError, _t as Logger, a as PrefabOverrideSkip, aa as LIGHT_PROBE_FILE_EXTENSIONS, ai as SurfaceShaderInit, an as LoadSceneFileOptions, ao as Transform, ar as RenderingQuality, as as OptionalFieldSpec, at as TweenableValue, b as CoroutineHandle, ba as ScriptCallbacks, bi as TextureImportOptions, bn as Ray, bo as Quat, br as GroundMeshOptions, bs as AssetManifest, bt as LOG_LEVEL_SEVERITY, c as EntityOverrideField, ca as LightProbeAsset, ci as STORAGE_BUFFER_ASSET_TYPE, cn as WorldLiteHandles, co as VEC3_DOWN, cr as defaultAutoExposureSettings, cs as Schema, ct as StorageBackend, d as InstanceTarget, da as sampleLightProbes, di as createStorageBufferAsset, dn as InstantiateSceneOptions, do as VEC3_ONE, dr as ReflectionProbe, ds as PhysicsCallbackName, dt as GpuAdapterInfo, ea as LiteStandardMaterial, ec as CoreErrorCode, ei as StandardMaterialDefinition, en as SetParentOptions, eo as SchemaDescription, er as CanvasAlphaMode, es as FieldSpec, et as EasingFunction, f as PrefabReader, fa as writeLightProbeFile, fi as LiteStorageBuffer, fn as SceneBuildResult, fo as VEC3_RIGHT, fr as ReflectionProbeRefreshMode, fs as ScriptCallbackKind, ft as PlatformInfo, g as AppEvents, ga as RESERVED_LAYER_NAMES, gi as PixelTextureOptions, gn as instantiateScene, go as VEC2_ONE, gr as MeshRendererLightmap, gs as AssetHandle, gt as platformInternals, h as App, ha as MAX_LAYERS, hi as shaderMaterialDefinition, hn as assertSceneDependenciesLoaded, ho as Vec3, hr as MeshRenderer, hs as INVALID_HANDLE, ht as WebGpuInfo, i as PrefabOverrideSelection, ia as LIGHT_PROBE_ASSET_TYPE, ic as isValidErrorCode, ii as SurfaceShaderBinding, in as LoadProgress, io as toJsonSchema, ir as RenderingFeatureSettings, is as NumberFieldSpec, it as TweenValueKind, j as Phase, ja as encodeValue, ji as SHADER_CULL_MODES, jn as RENDER_DIAGNOSTICS_COUNTERS, jo as TagSet, jr as LiteMesh, js as LoaderContext, jt as HotReloadStatics, k as PHASES, ka as decodeValue, ki as SHADER_ATTRIBUTE_NAMES, kn as LiteCamera, ko as Vec3Like, kr as SphereMeshOptions, ks as FetchLike, kt as HotReloadPolicy, l as OverridePath, la as LightProbeData, li as StorageBufferAsset, ln as AddComponentFromRecordOptions, lo as VEC3_FORWARD, lr as defaultRenderingSettings, ls as StringFieldSpec, lt as StoredValue, m as resolveInstancePath, ma as LayerTable, mi as ShaderMaterialDefinitionInput, mn as addComponentFromRecord, mo as VEC3_ZERO, mr as LightmapMode, ms as EntityHandle, mt as PlatformOs, n as PrefabApplyResult, na as MaterialAlphaMode, nc as ErrorRange, ni as pbrMaterialDefinition, nn as CreateSceneOptions, no as SchemaFieldDescription, nr as RENDERING_QUALITIES, ns as LayerMaskFieldSpec, nt as resolveEase, o as applyOverridesToAsset, oa as LIGHT_PROBE_FILE_FORMAT, oi as SurfaceShaderReference, on as LoadSceneOptions, oo as LiteSceneNode, or as RenderingSettings, os as PartialFieldsOf, ot as Storage, p as enumerateInstanceTargets, pa as DEFAULT_LAYER, pi as ShaderMaterialDefinition, pn as SceneLoadIssue, po as VEC3_UP, pr as LIGHTMAP_MODES, ps as ComponentHandle, pt as PlatformKind, q as TweenTargetValue, qa as SceneFileOverride, qi as ShaderTextureDeclaration, qn as LiteShadowGenerator, qo as CustomFieldCodec, qr as MaterialAsset, qs as ErrorFormatMode, qt as ConcreteComponentType, r as PrefabComponentSkip, ra as LightProbeVolume, rc as THIRD_PARTY_ERROR_PREFIX, ri as standardMaterialDefinition, rn as InstantiateOptions, ro as describeSchema, rr as RENDERING_SETTINGS_SECTION, rs as MapFieldSpec, rt as TWEEN_VALUE_KINDS, s as revertOverrides, sa as LIGHT_PROBE_FORMAT_VERSION, si as LiteShaderMaterial, sn as World, so as VEC3_BACKWARD, sr as TaaSettings, ss as RecordFieldSpec, st as storageInternals, t as PrefabApplyOptions, ta as MATERIAL_ALPHA_MODES, tc as ErrorCode, ti as createMaterialAsset, tn as CreateEntityOptions, to as SchemaDescriptionMeta, tr as DEFAULT_BRDF_LUT_ADDRESS, ts as FieldsOf, tt as EasingName, u as parseOverridePath, ua as createLightProbeAsset, ui as StorageBufferAssetLiteHandles, un as ComponentBuildResult, uo as VEC3_LEFT, ur as REFLECTION_PROBE_REFRESH_MODES, us as VectorFieldSpec, ut as StoredValueKind, v as AppSettings, va as LayerMask, vi as TextureAsset, vn as CameraProjection, vo as Vec2, vr as CapsuleMeshOptions, vs as AssetLoadErrorOptions, vt as LoggerOptions, w as ErrorReport, wa as DecodeResult, wi as ShaderAsset, wn as Mat4, wo as MutableVec2, wr as MeshAssetLiteHandles, ws as AssetState, wt as LogThreshold, x as CoroutineHost, xa as ScriptDefinition, xi as LiteTexture2D, xn as RayVector, xo as ColorLike, xr as MESH_ASSET_TYPE, xs as AssetManifestEntry, xt as LogLevel, y as Coroutine, ya as Script, yi as TextureAssetLiteHandles, yn as PROJECTIONS, yo as QUAT_IDENTITY, yr as CylinderMeshOptions, ys as AssetLoader, yt as createLogger, z as System, za as SCENE_FILE_EXTENSIONS, zi as ShaderBlendMode, zn as RenderTaskTiming, zo as AssetTypeToken, zr as LightmapPlacement, zs as SignalOptions, zt as createFrameSample } from "./prefab-overrides-htDc_5Po.js";
2
+ import { AnimationGroup, AssetContainer, DirectionalLight, EngineContext, EnvironmentTextures, Font, HemisphericLight, PointLight, SceneContext, SceneNode, Skeleton, SpotLight, Texture2D } from "@babylonjs/lite";
3
3
  //#region src/settings/settings-input.d.ts
4
4
  /**
5
5
  * What a project hands `createApp` as its settings (`docs/architecture/04-extensions.md` §5). The
@@ -2258,70 +2258,6 @@ export declare class FontAsset {
2258
2258
  get lite(): FontAssetLiteHandles;
2259
2259
  }
2260
2260
  //#endregion
2261
- //#region src/lite/gpu/mesh.d.ts
2262
- /**
2263
- * Mesh half of the Babylon Lite adapter (`docs/architecture/07-rendering.md` §2.3). Every function
2264
- * here needs a WebGPU device — `createMeshFromData` uploads four vertex buffers through
2265
- * `engine._device` (`lib/mesh/mesh.js`, `uploadMeshToGPU`) and the null engine has no `_device` —
2266
- * so the whole module lives under `src/lite/gpu/` and is covered by the browser test project.
2267
- *
2268
- * Everything here is `@internal`.
2269
- *
2270
- * ## Ownership, cloning, and disposal (verified against `@babylonjs/lite@1.27.0`)
2271
- *
2272
- * - `cloneTransformNode(mesh)` (`index.d.ts` 1776, `lib/scene/transform-node.js`) shallow-clones a
2273
- * mesh: the clone gets a fresh transform and **the same `_gpu` wrapper object**, with
2274
- * `retain(_gpu)` bumping a reference count. So N clones of one template share exactly one set of
2275
- * GPU buffers — that is spike S2.4's "instancing shares GPU buffers", and it is provable by
2276
- * object identity rather than by measuring memory.
2277
- * - Disposal is driven entirely by scene membership. `removeFromScene` calls `unregisterMeshScene`,
2278
- * and only when the mesh has left its **last** scene does it queue `disposeMeshGpu`, which calls
2279
- * `release(_gpu)` and destroys the buffers only when the count drops to one
2280
- * (`lib/scene/scene-remove.js`, `lib/mesh/mesh-dispose.js`, `lib/resource/ref-count.js`). A
2281
- * template that is never added to a scene therefore keeps its buffers alive no matter how many
2282
- * clones come and go — which is what `docs/architecture/07-rendering.md` §2.3 means by "the
2283
- * template's buffers stay alive while the asset is retained".
2284
- * - The flip side is that Lite exports **no** mesh disposer. The only public way to release a
2285
- * template's buffers is {@link disposeMeshTemplate}: add it to a scene and take it out again.
2286
- * - `removeFromScene` also recursively removes a mesh's `children` and nulls its `parent`, so
2287
- * removing a `Model`'s root removes the whole instantiated subtree in one call.
2288
- * - Hiding is `setSubtreeVisible` (exported as `setMeshVisible` too, `index.d.ts` 11199): it
2289
- * cascades `visible` down the subtree and bumps a global visibility epoch. Never remove a mesh
2290
- * from the scene to hide it — that disposes it.
2291
- *
2292
- * ## Updating a mesh's vertices (verified against `lib/mesh/mesh-factories.js`)
2293
- *
2294
- * `updateMesh*` writes the GPU buffer and **nothing else**. Three consequences, all of them
2295
- * surprising enough to be worth stating where the calls are:
2296
- *
2297
- * 1. **The retained CPU arrays are not replaced.** `createMeshFromData` keeps `_cpuPositions`,
2298
- * `_cpuNormals`, `_cpuUvs` and `_cpuIndices` — the arrays it was handed — and Lite's CPU ray
2299
- * pick reads them (`lib/picking/ray-pick.js`). Only `updateMeshGeometry`/`resizeMeshGeometry`
2300
- * re-retain, through `retainMeshGeometry`. So an update that hands over a *different* array
2301
- * leaves picking looking at the old geometry, while an update after mutating the retained array
2302
- * in place leaves picking exact. `MeshAsset` keeps its own copy in step for that reason.
2303
- * 2. **Bounds are not recomputed.** `retainMeshGeometry` is what calls `computeAabb` and writes
2304
- * `boundMin`/`boundMax`; the partial updaters do not. `Mesh`'s own declaration says a consumer
2305
- * "MAY overwrite these with a wider hand-computed box", so {@link setMeshBounds} exists and
2306
- * `MeshAsset.updatePositions` uses it.
2307
- * 3. **A cloned template cannot be updated at all.** `writeVertexAttributeRange` throws
2308
- * (`ThrowLiteError(360)`) when `mesh._gpu._refCount > 1`, and cloning a mesh retains that very
2309
- * wrapper. A `MeshAsset` a `MeshRenderer` has drawn is therefore frozen; a mesh meant to be
2310
- * edited is a renderable of its own, which is the shape the terrain chunk adapter uses.
2311
- */
2312
- /**
2313
- * The Babylon Lite mesh a `MeshAsset` template and a `MeshRenderer` clone are, re-exported under an
2314
- * ignifx name so feature code can name the type without importing `@babylonjs/lite`
2315
- * (`CONSTITUTION.md` §3.4, coding standards §4).
2316
- *
2317
- * @remarks
2318
- * Unstable: it is Lite's own type, reachable only through documented `.lite` escape hatches, and it
2319
- * is excluded from the stability guarantees of `CONSTITUTION.md` Article IV.
2320
- *
2321
- * @public
2322
- */
2323
- type LiteMesh = Mesh;
2324
- //#endregion
2325
2261
  //#region src/render/light.d.ts
2326
2262
  /**
2327
2263
  * Sync lights from entity world poses without parenting the Lite light, so lighting and shadows
@@ -2342,6 +2278,21 @@ export declare const LIGHT_TYPES: readonly ["directional", "point", "spot", "hem
2342
2278
  * @public
2343
2279
  */
2344
2280
  type LightType = (typeof LIGHT_TYPES)[number];
2281
+ /**
2282
+ * How a light takes part in baked lighting (`docs/architecture/07-rendering.md` §2.15).
2283
+ *
2284
+ * @beta
2285
+ */
2286
+ export declare const LIGHT_BAKE_MODES: readonly ["realtime", "mixed", "baked"];
2287
+ /**
2288
+ * One of {@link LIGHT_BAKE_MODES}: `"realtime"` lights draw at run time and a light-probe bake stores
2289
+ * only their bounce (their direct light too with `directLight: "include"`); `"mixed"` lights draw at
2290
+ * run time and the bake stores only their bounce; `"baked"` lights do not draw at run time and the
2291
+ * bake stores their direct light and their bounce.
2292
+ *
2293
+ * @beta
2294
+ */
2295
+ type LightBakeMode = (typeof LIGHT_BAKE_MODES)[number];
2345
2296
  /**
2346
2297
  * The union of the shadow techniques a directional light can use.
2347
2298
  *
@@ -2396,6 +2347,8 @@ interface LightShadowSettings {
2396
2347
  *
2397
2348
  * A disabled light, or one on an inactive entity, contributes nothing: its intensity reaches Lite
2398
2349
  * as `0` and its shadow generator is released. Enabling it again restores both on the next frame.
2350
+ * A light whose `bakeMode` is `"baked"` is dimmed the same way: its light reaches the scene only
2351
+ * through a light-probe bake (`bakeLightProbes`).
2399
2352
  *
2400
2353
  * @example
2401
2354
  * ```ts
@@ -2426,6 +2379,13 @@ export declare class Light extends Component implements ComponentHooks {
2426
2379
  shadows: LightShadowSettings;
2427
2380
  includeOnly: (Entity | null)[];
2428
2381
  exclude: (Entity | null)[];
2382
+ /**
2383
+ * How the light takes part in baked lighting; see {@link LightBakeMode}. Defaults to
2384
+ * `"realtime"`.
2385
+ *
2386
+ * @beta
2387
+ */
2388
+ bakeMode: LightBakeMode;
2429
2389
  /** Applies the schema defaults, exactly as `Component.define` would. */
2430
2390
  constructor();
2431
2391
  /**
@@ -2624,453 +2584,6 @@ export declare function createFontLoader(): AssetLoader<FontAsset>;
2624
2584
  */
2625
2585
  export declare function createMaterialLoader(): AssetLoader<MaterialAsset>;
2626
2586
  //#endregion
2627
- //#region src/render/mesh-asset.d.ts
2628
- /**
2629
- * Mesh templates share geometry with renderer clones (ADR-0002).
2630
- * Factories register a loaded handle with one caller-owned hold; release it when no longer needed.
2631
- * Existing clones survive collection, but a disposed template cannot make new clones.
2632
- * Headless mesh assets keep component state without GPU geometry.
2633
- */
2634
- /**
2635
- * The asset type primitives are registered under.
2636
- *
2637
- * @public
2638
- */
2639
- export declare const MESH_ASSET_TYPE = "mesh";
2640
- /**
2641
- * How {@link MeshAsset.box} sizes its box, in metres. Give `size` for a cube, or the three
2642
- * dimensions.
2643
- *
2644
- * @public
2645
- */
2646
- interface BoxMeshOptions {
2647
- /** Edge length on every axis. */
2648
- readonly size?: number;
2649
- /** Size along X, overriding `size`. */
2650
- readonly width?: number;
2651
- /** Size along Y, overriding `size`. */
2652
- readonly height?: number;
2653
- /** Size along Z, overriding `size`. */
2654
- readonly depth?: number;
2655
- }
2656
- /**
2657
- * How {@link MeshAsset.sphere} tessellates its sphere.
2658
- *
2659
- * @public
2660
- */
2661
- interface SphereMeshOptions {
2662
- /** Diameter on every axis, in metres. Lite defaults to 1. */
2663
- readonly diameter?: number;
2664
- /** Ring count; higher is smoother. Lite defaults to 32. */
2665
- readonly segments?: number;
2666
- }
2667
- /**
2668
- * How {@link MeshAsset.plane} sizes its quad, which lies in the XY plane facing `-Z`.
2669
- *
2670
- * @public
2671
- */
2672
- interface PlaneMeshOptions {
2673
- /** Edge length on both axes, in metres. */
2674
- readonly size?: number;
2675
- /** Width, overriding `size`. */
2676
- readonly width?: number;
2677
- /** Height, overriding `size`. */
2678
- readonly height?: number;
2679
- }
2680
- /**
2681
- * How {@link MeshAsset.ground} sizes and subdivides its grid, which lies in the XZ plane facing
2682
- * `+Y`.
2683
- *
2684
- * @public
2685
- */
2686
- interface GroundMeshOptions {
2687
- /** Size along X, in metres. */
2688
- readonly width?: number;
2689
- /** Size along Z, in metres. */
2690
- readonly height?: number;
2691
- /** Quads per side. */
2692
- readonly subdivisions?: number;
2693
- /** UV multiplier, for tiling a texture across the grid. */
2694
- readonly uvScale?: readonly [number, number];
2695
- }
2696
- /**
2697
- * How {@link MeshAsset.cylinder} sizes its cylinder, which stands along Y.
2698
- *
2699
- * @public
2700
- */
2701
- interface CylinderMeshOptions {
2702
- /** Height along Y, in metres. */
2703
- readonly height?: number;
2704
- /** Diameter of both ends. */
2705
- readonly diameter?: number;
2706
- /** Diameter of the top cap, overriding `diameter` — a cone is `diameterTop: 0`. */
2707
- readonly diameterTop?: number;
2708
- /** Diameter of the bottom cap, overriding `diameter`. */
2709
- readonly diameterBottom?: number;
2710
- /** Radial segment count. */
2711
- readonly tessellation?: number;
2712
- }
2713
- /**
2714
- * How {@link MeshAsset.capsule} sizes its capsule, which stands along Y.
2715
- *
2716
- * @remarks
2717
- * `height` is the **total** height including both caps, the same convention `@ignifx/physics` uses
2718
- * for a capsule collider, so one pair of numbers describes both.
2719
- *
2720
- * @public
2721
- */
2722
- interface CapsuleMeshOptions {
2723
- /** Total height including both caps, in metres. */
2724
- readonly height?: number;
2725
- /** Radius of the body and the caps. */
2726
- readonly radius?: number;
2727
- /** Radial segment count. */
2728
- readonly tessellation?: number;
2729
- }
2730
- /**
2731
- * How {@link MeshAsset.torus} sizes its ring, which lies in the XZ plane.
2732
- *
2733
- * @public
2734
- */
2735
- interface TorusMeshOptions {
2736
- /** Outer diameter, in metres. */
2737
- readonly diameter?: number;
2738
- /** Tube thickness, in metres. */
2739
- readonly thickness?: number;
2740
- /** Segment count around the ring. */
2741
- readonly tessellation?: number;
2742
- }
2743
- /**
2744
- * The primitive shapes a `MeshAsset` factory and a `.mesh.json` file can build.
2745
- *
2746
- * @public
2747
- */
2748
- export declare const MESH_PRIMITIVES: readonly ["box", "sphere", "plane", "ground", "cylinder", "capsule", "torus"];
2749
- /**
2750
- * One of {@link MESH_PRIMITIVES}.
2751
- *
2752
- * @public
2753
- */
2754
- type MeshPrimitive = (typeof MESH_PRIMITIVES)[number];
2755
- /**
2756
- * A primitive and the options its factory takes: what a `.mesh.json` file declares.
2757
- *
2758
- * @public
2759
- */
2760
- type MeshPrimitiveDefinition = {
2761
- readonly primitive: "box";
2762
- readonly options: BoxMeshOptions;
2763
- } | {
2764
- readonly primitive: "sphere";
2765
- readonly options: SphereMeshOptions;
2766
- } | {
2767
- readonly primitive: "plane";
2768
- readonly options: PlaneMeshOptions;
2769
- } | {
2770
- readonly primitive: "ground";
2771
- readonly options: GroundMeshOptions;
2772
- } | {
2773
- readonly primitive: "cylinder";
2774
- readonly options: CylinderMeshOptions;
2775
- } | {
2776
- readonly primitive: "capsule";
2777
- readonly options: CapsuleMeshOptions;
2778
- } | {
2779
- readonly primitive: "torus";
2780
- readonly options: TorusMeshOptions;
2781
- };
2782
- /**
2783
- * Raw vertex data for {@link MeshAsset.fromData}.
2784
- *
2785
- * @remarks
2786
- * Lite keeps references to these arrays rather than copying them — they are what its CPU ray pick
2787
- * and its bounds read (`lib/mesh/mesh-factories.js`). Mutating one behind Lite's back changes what
2788
- * a pick reports without changing what the GPU draws; the sanctioned way to change geometry after
2789
- * the fact is {@link MeshAsset.updatePositions} and its three siblings, which re-upload, keep this
2790
- * copy in step, and re-fit the bounds.
2791
- *
2792
- * @public
2793
- */
2794
- interface MeshGeometryData {
2795
- /** Three floats per vertex. */
2796
- readonly positions: Float32Array;
2797
- /** Three floats per vertex, one normal each. */
2798
- readonly normals: Float32Array;
2799
- /** Three indices per triangle. */
2800
- readonly indices: Uint32Array;
2801
- /** Two floats per vertex, or omitted for a mesh with no texture coordinates. */
2802
- readonly uvs?: Float32Array;
2803
- /**
2804
- * Two floats per vertex for the second UV set (`uv2` in a shader), or omitted. Lightmaps, baked
2805
- * ambient occlusion, and the parent-LOD height a terrain morph reads all ride here.
2806
- */
2807
- readonly uvs2?: Float32Array;
2808
- /** Four floats per vertex — `xyz` plus a handedness `w` — or omitted. A normal map needs them. */
2809
- readonly tangents?: Float32Array;
2810
- /**
2811
- * Four floats per vertex, linear RGBA, or omitted. A material has to be one that reads the colour
2812
- * attribute; set `hasVertexAlpha` on the Lite mesh if the alpha is meant to blend.
2813
- */
2814
- readonly colors?: Float32Array;
2815
- }
2816
- /**
2817
- * The Babylon Lite objects a {@link MeshAsset} owns. Unstable escape hatch
2818
- * (`docs/architecture/00-overview.md` §3).
2819
- *
2820
- * @public
2821
- */
2822
- interface MeshAssetLiteHandles {
2823
- /** The template mesh, or `null` under a headless app, which uploads no geometry. */
2824
- readonly mesh: LiteMesh | null;
2825
- }
2826
- /**
2827
- * A geometry template a `MeshRenderer` draws (`docs/architecture/07-rendering.md` §2.3).
2828
- *
2829
- * @remarks
2830
- * Build one with a primitive factory or {@link MeshAsset.fromData}; each returns the handle the
2831
- * `MeshRenderer.mesh` field takes. A `.mesh.json` file loads the same primitives by address
2832
- * (`app.assets.load("meshes/crate.mesh.json")`), so a scene file can name one. A glTF mesh
2833
- * arrives as part of a `ModelAsset` instead — a glTF is a tree of meshes, materials, and
2834
- * animations, not one buffer.
2835
- *
2836
- * @example
2837
- * ```ts
2838
- * const box = MeshAsset.box(app, { size: 2 }); // one reference, owned by this code
2839
- * const cube = app.world.createEntity("Cube");
2840
- * cube.addComponent(MeshRenderer, { mesh: box }); // the field takes no reference
2841
- * // Once nothing draws the box any more:
2842
- * box.release();
2843
- * ```
2844
- *
2845
- * @public
2846
- */
2847
- export declare class MeshAsset {
2848
- #private;
2849
- /** The type name the asset service registers meshes under. */
2850
- static assetType: string;
2851
- /** A human-readable name, used in diagnostics and as the Lite mesh's name. */
2852
- readonly name: string;
2853
- /**
2854
- * Wraps a template mesh. Use the static factories; the engine constructs assets.
2855
- *
2856
- * @param name - A human-readable name.
2857
- * @param mesh - The template, or `null` when the app is headless.
2858
- * @param scene - The scene the template is released through, or `null` when there is nothing to
2859
- * release.
2860
- * @param geometry - The vertex arrays the asset was built from, when it came from
2861
- * {@link MeshAsset.fromData}; `null` for a primitive, whose arrays Lite generated and never
2862
- * handed back. It is what makes the `update*` methods legal.
2863
- * @param engine - The engine an update writes through, or `null` under a headless app.
2864
- *
2865
- * @internal
2866
- */
2867
- constructor(name: string, mesh: LiteMesh | null, scene: LiteScene | null, geometry?: MeshGeometryData | null, engine?: LiteEngine | null);
2868
- /**
2869
- * The Babylon Lite objects the asset owns. Unstable escape hatch
2870
- * (`docs/architecture/00-overview.md` §3).
2871
- *
2872
- * @returns The template mesh, or `null` under a headless app.
2873
- */
2874
- get lite(): MeshAssetLiteHandles;
2875
- /**
2876
- * Whether the template's GPU buffers have been released.
2877
- *
2878
- * @returns `true` once {@link MeshAsset.dispose} has run.
2879
- */
2880
- get isDisposed(): boolean;
2881
- /**
2882
- * The vertex arrays the asset was built from, for CPU-side work such as a light-probe bake.
2883
- *
2884
- * @returns The arrays for a mesh built with {@link MeshAsset.fromData}; `null` for a primitive.
2885
- *
2886
- * @internal
2887
- */
2888
- get cpuGeometry(): MeshGeometryData | null;
2889
- /**
2890
- * How many vertices the geometry has.
2891
- *
2892
- * @remarks
2893
- * Known for a mesh built with {@link MeshAsset.fromData} — headless included — and `0` for a
2894
- * primitive: Lite generates a primitive's arrays internally and 1.27.0's `Mesh` exposes no vertex
2895
- * count, only the opaque `MeshGPU` handle it says a user never touches (`index.d.ts` 7230).
2896
- *
2897
- * @returns The vertex count, or `0`.
2898
- */
2899
- get vertexCount(): number;
2900
- /**
2901
- * How many indices the geometry has — three per triangle.
2902
- *
2903
- * @returns The index count, or `0`; see {@link MeshAsset.vertexCount}.
2904
- */
2905
- get indexCount(): number;
2906
- /**
2907
- * Re-uploads vertex positions and re-fits the bounds.
2908
- *
2909
- * @remarks
2910
- * Only a mesh from {@link MeshAsset.fromData} can be updated, and only while nothing has cloned it:
2911
- * Lite refuses to write a vertex buffer with more than one owner, and a `MeshRenderer` clone is a
2912
- * second owner.
2913
- *
2914
- * Lite's `updateMeshPositions` writes the GPU buffer and stops there, so this also copies the range
2915
- * into the asset's own position array — the one Lite retained and CPU picking reads — and rewrites
2916
- * the bounds from the whole of it, `O(vertexCount)` per call. Passing the asset's own array skips
2917
- * the copy.
2918
- *
2919
- * @param data - Three floats per vertex, read from index 0.
2920
- * @param vertexOffset - The first vertex to overwrite. Defaults to `0`.
2921
- * @param vertexCount - How many vertices to write. Defaults to as many as `data` holds.
2922
- * @throws IgnifxError with code `IGX-0702` when the mesh did not come from
2923
- * {@link MeshAsset.fromData}, or has been disposed.
2924
- * @throws IgnifxError with code `IGX-0725` when the range falls outside the mesh or `data` is too
2925
- * short for it.
2926
- *
2927
- * @example
2928
- * ```ts
2929
- * const grid = MeshAsset.fromData(app, "grid", { positions, normals, indices });
2930
- * positions[1] += 0.5;
2931
- * grid.value.updatePositions(positions);
2932
- * ```
2933
- */
2934
- updatePositions(data: Float32Array, vertexOffset?: number, vertexCount?: number): void;
2935
- /**
2936
- * Re-uploads vertex normals.
2937
- *
2938
- * @remarks
2939
- * The same rules as {@link MeshAsset.updatePositions}, minus the bounds: a normal cannot move a
2940
- * bounding box. The range is copied into the asset's own normal array so that a later
2941
- * `updatePositions` sees a consistent mesh.
2942
- *
2943
- * @param data - Three floats per vertex.
2944
- * @param vertexOffset - The first vertex to overwrite. Defaults to `0`.
2945
- * @param vertexCount - How many vertices to write. Defaults to as many as `data` holds.
2946
- * @throws IgnifxError with code `IGX-0702` or `IGX-0725`; see
2947
- * {@link MeshAsset.updatePositions}.
2948
- */
2949
- updateNormals(data: Float32Array, vertexOffset?: number, vertexCount?: number): void;
2950
- /**
2951
- * Re-uploads texture coordinates.
2952
- *
2953
- * @remarks
2954
- * Lite makes the upload a **no-op** when the mesh was created without UVs, rather than an error,
2955
- * so a mesh whose `MeshGeometryData` named none silently ignores this. The range check still runs.
2956
- *
2957
- * @param data - Two floats per vertex.
2958
- * @param vertexOffset - The first vertex to overwrite. Defaults to `0`.
2959
- * @param vertexCount - How many vertices to write. Defaults to as many as `data` holds.
2960
- * @throws IgnifxError with code `IGX-0702` or `IGX-0725`; see
2961
- * {@link MeshAsset.updatePositions}.
2962
- */
2963
- updateUvs(data: Float32Array, vertexOffset?: number, vertexCount?: number): void;
2964
- /**
2965
- * Re-uploads vertex colours.
2966
- *
2967
- * @remarks
2968
- * Four floats per vertex, linear RGBA. A no-op on the GPU when the mesh was created without
2969
- * colours, exactly as {@link MeshAsset.updateUvs} is.
2970
- *
2971
- * @param data - Four floats per vertex.
2972
- * @param vertexOffset - The first vertex to overwrite. Defaults to `0`.
2973
- * @param vertexCount - How many vertices to write. Defaults to as many as `data` holds.
2974
- * @throws IgnifxError with code `IGX-0702` or `IGX-0725`; see
2975
- * {@link MeshAsset.updatePositions}.
2976
- */
2977
- updateColors(data: Float32Array, vertexOffset?: number, vertexCount?: number): void;
2978
- /**
2979
- * Releases the template's GPU buffers.
2980
- *
2981
- * @remarks
2982
- * Lite exports no mesh disposer: a mesh's buffers are freed when it leaves its last scene, so the
2983
- * adapter adds the template to a scene and takes it straight out again
2984
- * (`src/lite/gpu/mesh.ts`). Clones still in a scene keep the shared buffers alive; what the
2985
- * template loses is the ability to be cloned again. Calling it twice is a no-op, and it is a
2986
- * no-op under a headless app, which has no buffers.
2987
- */
2988
- dispose(): void;
2989
- /** Releases the template when the asset leaves a `using` block. */
2990
- [Symbol.dispose](): void;
2991
- /**
2992
- * Creates a box template and publishes it.
2993
- *
2994
- * @param app - The app whose engine uploads the geometry and whose asset service holds the handle.
2995
- * @param options - A uniform `size`, or per-axis dimensions.
2996
- * @returns The handle, with one holder — the caller.
2997
- *
2998
- * @example
2999
- * ```ts
3000
- * const box = MeshAsset.box(app, { width: 2, height: 1, depth: 3 });
3001
- * ```
3002
- */
3003
- static box(app: App, options?: BoxMeshOptions): AssetHandle<MeshAsset>;
3004
- /**
3005
- * Creates a sphere template and publishes it.
3006
- *
3007
- * @param app - The app that owns the engine and the asset service.
3008
- * @param options - Diameter and ring count.
3009
- * @returns The handle, with one holder.
3010
- */
3011
- static sphere(app: App, options?: SphereMeshOptions): AssetHandle<MeshAsset>;
3012
- /**
3013
- * Creates a quad template in the XY plane and publishes it.
3014
- *
3015
- * @param app - The app that owns the engine and the asset service.
3016
- * @param options - A uniform `size`, or width and height.
3017
- * @returns The handle, with one holder.
3018
- */
3019
- static plane(app: App, options?: PlaneMeshOptions): AssetHandle<MeshAsset>;
3020
- /**
3021
- * Creates a subdivided grid in the XZ plane and publishes it.
3022
- *
3023
- * @param app - The app that owns the engine and the asset service.
3024
- * @param options - Width, depth, subdivisions, and UV scale.
3025
- * @returns The handle, with one holder.
3026
- */
3027
- static ground(app: App, options?: GroundMeshOptions): AssetHandle<MeshAsset>;
3028
- /**
3029
- * Creates a cylinder template standing along Y and publishes it.
3030
- *
3031
- * @param app - The app that owns the engine and the asset service.
3032
- * @param options - Height, diameters, and tessellation.
3033
- * @returns The handle, with one holder.
3034
- */
3035
- static cylinder(app: App, options?: CylinderMeshOptions): AssetHandle<MeshAsset>;
3036
- /**
3037
- * Creates a capsule template standing along Y and publishes it.
3038
- *
3039
- * @param app - The app that owns the engine and the asset service.
3040
- * @param options - Total height, radius, and tessellation.
3041
- * @returns The handle, with one holder.
3042
- */
3043
- static capsule(app: App, options?: CapsuleMeshOptions): AssetHandle<MeshAsset>;
3044
- /**
3045
- * Creates a torus template in the XZ plane and publishes it.
3046
- *
3047
- * @param app - The app that owns the engine and the asset service.
3048
- * @param options - Diameter, thickness, and tessellation.
3049
- * @returns The handle, with one holder.
3050
- */
3051
- static torus(app: App, options?: TorusMeshOptions): AssetHandle<MeshAsset>;
3052
- /**
3053
- * Creates a template from raw vertex data and publishes it.
3054
- *
3055
- * @param app - The app that owns the engine and the asset service.
3056
- * @param name - A human-readable name.
3057
- * @param data - Positions, normals, indices, and any of the four optional attributes. Lite keeps
3058
- * references to the arrays; a caller that means to edit them afterwards does so through the
3059
- * `update*` methods, which keep Lite's own copy and its bounds in step.
3060
- * @returns The handle, with one holder.
3061
- *
3062
- * @example
3063
- * ```ts
3064
- * const triangle = MeshAsset.fromData(app, "triangle", {
3065
- * positions: Float32Array.from([0, 0, 0, 1, 0, 0, 0, 1, 0]),
3066
- * normals: Float32Array.from([0, 0, -1, 0, 0, -1, 0, 0, -1]),
3067
- * indices: Uint32Array.from([0, 1, 2]),
3068
- * });
3069
- * ```
3070
- */
3071
- static fromData(app: App, name: string, data: MeshGeometryData): AssetHandle<MeshAsset>;
3072
- }
3073
- //#endregion
3074
2587
  //#region src/render/loaders/mesh-loader.d.ts
3075
2588
  /**
3076
2589
  * Builds the `mesh` loader: `.mesh.json` to `MeshAsset` (ADR-0029).
@@ -3270,10 +2783,40 @@ export declare class ModelAsset {
3270
2783
  * @param animations - The clips taken off the container.
3271
2784
  * @param skeletons - The skeletons the loader found.
3272
2785
  * @param scene - The scene the container is released through, or `null` when headless.
2786
+ * @param sourceBytes - The file's bytes, kept by a headless load for the light-probe bake; `null`
2787
+ * otherwise.
2788
+ *
2789
+ * @internal
2790
+ */
2791
+ constructor(address: string, container: LiteAssetContainer | null, animations: readonly LiteAnimationGroup[], skeletons: readonly LiteSkeleton[], scene: LiteScene | null, sourceBytes?: ArrayBuffer | null);
2792
+ /**
2793
+ * The `.glb` or `.gltf` bytes a headless load kept, which `bakeLightProbes` reads its triangles
2794
+ * from. A load with a device keeps none: the container already holds the model, and holding the
2795
+ * file as well would double what a game keeps in memory.
2796
+ *
2797
+ * @returns The bytes, or `null`.
3273
2798
  *
3274
2799
  * @internal
3275
2800
  */
3276
- constructor(address: string, container: LiteAssetContainer | null, animations: readonly LiteAnimationGroup[], skeletons: readonly LiteSkeleton[], scene: LiteScene | null);
2801
+ get sourceBytes(): ArrayBuffer | null;
2802
+ /**
2803
+ * The flat linear albedo of each named glTF material, which a load with a device records for the
2804
+ * light-probe bake: Lite bakes an untextured material's `baseColorFactor` into a 1×1 texture
2805
+ * (`lib/loader-gltf/gltf-pbr-builder.js`), so the drawn material cannot tell its colour.
2806
+ *
2807
+ * @returns The albedos by material name, or `null` when none were recorded.
2808
+ *
2809
+ * @internal
2810
+ */
2811
+ get bakeAlbedos(): ReadonlyMap<string, readonly [number, number, number]> | null;
2812
+ /**
2813
+ * Records {@link ModelAsset.bakeAlbedos}. The `model` loader calls it.
2814
+ *
2815
+ * @param albedos - The albedos by material name.
2816
+ *
2817
+ * @internal
2818
+ */
2819
+ recordBakeAlbedos(albedos: ReadonlyMap<string, readonly [number, number, number]>): void;
3277
2820
  /**
3278
2821
  * The Babylon Lite objects the asset owns. Unstable escape hatch.
3279
2822
  *
@@ -3344,7 +2887,8 @@ export declare class ModelAsset {
3344
2887
  * `engine._device` (ADR-0002 Validation). So a headless load skips it entirely and produces an
3345
2888
  * asset with no container — the `gpu: null` shape §5 requires — rather than failing. The bytes are
3346
2889
  * still fetched, so a headless test still exercises the address, the manifest, and the byte
3347
- * counters.
2890
+ * counters, and the asset keeps them for `bakeLightProbes`, which reads a model's triangles from
2891
+ * the file because a headless app has no container to read them from.
3348
2892
  */
3349
2893
  /**
3350
2894
  * Builds the loader for `.glb` and `.gltf` addresses.
@@ -3475,174 +3019,6 @@ export declare const MESH_PRIMITIVE_OPTIONS: MeshPrimitiveOptionKinds;
3475
3019
  */
3476
3020
  export declare function meshFileJsonSchema(): JsonSchemaObject;
3477
3021
  //#endregion
3478
- //#region src/render/mesh-renderer.d.ts
3479
- /**
3480
- * The `MeshRenderer` component (`docs/architecture/07-rendering.md` §2.3): one clone of a
3481
- * `MeshAsset`, drawn with a `MaterialAsset`.
3482
- *
3483
- * ## Cloning, not sharing
3484
- *
3485
- * The asset holds the template; the renderer holds a clone parented under the entity's node.
3486
- * `cloneTransformNode` shallow-clones the mesh — fresh transform, **same** `_gpu` wrapper with its
3487
- * reference count bumped — so a hundred renderers of one asset upload one set of vertex buffers
3488
- * (ADR-0002 Validation). Removing the component calls `removeFromScene` on the clone, which is what
3489
- * frees its share.
3490
- *
3491
- * ## Hiding is `visible`, never removal
3492
- *
3493
- * Lite disposes a mesh that leaves its last scene, so `enabled = false` must not remove anything.
3494
- * `visible` is derived from `entity.activeInHierarchy && component.enabled` and written on the
3495
- * clone's subtree; the mesh stays in the scene, keeps its buffers, and comes back the moment the
3496
- * flag flips. That is `07-rendering.md` §2.3's rule, and the browser test asserts both halves: the
3497
- * pixel returns to the clear colour, and the mesh is still in the scene.
3498
- *
3499
- * `displayHidden` hides the same way, and makes the clone unpickable too, but is not a field: scene
3500
- * files do not save it, so a system
3501
- * that chooses what is drawn without changing the document (a `LodGroup` in an edit-mode app,
3502
- * ADR-0028) switches it instead of `enabled`.
3503
- *
3504
- * ## Decisions the documents left open
3505
- *
3506
- * - **The clone's Lite `id` is the entity's uid.** Lite's light include/exclude lists match on
3507
- * `Mesh.id` strings (`lib/render/lights-ubo.js`), and §2.2 maps `Light.includeOnly` onto them
3508
- * from *entity* references. The uid is the one identifier both sides can name.
3509
- * - **`materials` beyond the first is accepted and ignored.** §2.3 says "one per submesh", but
3510
- * Lite's `Mesh.material` is a single value and Lite has no submesh material list in 1.27.0, so
3511
- * there is nothing for the extra entries to drive. The field keeps its array shape so files do
3512
- * not have to change if submeshes land; the renderer uses index 0, or the default material when
3513
- * the array is empty.
3514
- *
3515
- * ## Headless
3516
- *
3517
- * A headless `MeshAsset` carries no geometry, so there is nothing to clone: the component keeps its
3518
- * fields, reports `lite.mesh === null`, and touches no scene (`07-rendering.md` §6).
3519
- */
3520
- /**
3521
- * Draws a mesh asset with a material (`docs/architecture/07-rendering.md` §2.3).
3522
- *
3523
- * @example
3524
- * ```ts
3525
- * const box = MeshAsset.box(app, { size: 1 }); // release it once nothing draws it
3526
- * const cube = world.createEntity("Cube");
3527
- * cube.addComponent(MeshRenderer, { mesh: box, castShadows: true });
3528
- * ```
3529
- *
3530
- * @public
3531
- */
3532
- export declare class MeshRenderer extends Component implements ComponentHooks {
3533
- #private;
3534
- /** The namespaced registration id. */
3535
- static typeId: string;
3536
- /** What the component does, in one line, for an inspector. */
3537
- static description: string;
3538
- /** Several renderers on one entity draw several meshes from one transform, which is useful. */
3539
- static allowMultiple: boolean;
3540
- /** The serialized field declarations (ADR-0004). */
3541
- static schema: Schema;
3542
- mesh: AssetHandle<MeshAsset> | null;
3543
- materials: (AssetHandle<MaterialAsset> | null)[];
3544
- castShadows: boolean;
3545
- receiveShadows: boolean;
3546
- renderOrder: number;
3547
- pickable: boolean;
3548
- /** Applies the schema defaults, exactly as `Component.define` would. */
3549
- constructor();
3550
- /**
3551
- * The Babylon Lite mesh this renderer draws. Unstable escape hatch
3552
- * (`docs/architecture/00-overview.md` §3).
3553
- *
3554
- * @returns The clone, or `null` when there is nothing to draw.
3555
- */
3556
- get lite(): {
3557
- readonly mesh: LiteSceneNode | null;
3558
- };
3559
- /**
3560
- * A display-only hide: while `true` the mesh is neither drawn nor picked, whatever `enabled` and
3561
- * `pickable` say.
3562
- *
3563
- * @remarks
3564
- * It is not a schema field, so scene files do not save it, a serializer never reads it, and
3565
- * `enabled` keeps its authored value. That makes it the switch for a system that chooses what is
3566
- * drawn without changing the document: `@ignifx/3d`'s `LodGroup` uses it in place of `enabled` in
3567
- * an edit-mode app (ADR-0028). It starts `false` and takes effect at the next render sync;
3568
- * {@link MeshRenderer.isVisible} reports the outcome. Lite's pickers ignore visibility, so the
3569
- * clone is also made unpickable while hidden: `app.renderer.pickAsync` and `world.raycastRender`
3570
- * neither return it nor let it occlude, as with `pickable: false`.
3571
- *
3572
- * It is one flag with one owner, not a count. In an edit-mode app the `LodGroup` that lists the
3573
- * renderer as a level owns it: the group sets and clears it whenever it switches, so a value
3574
- * written by anything else lasts only until then. A renderer belongs to at most one `LodGroup`; a
3575
- * second group that lists it leaves it alone and warns with `IGX-1217`.
3576
- *
3577
- * @returns `true` while the mesh is hidden for display.
3578
- *
3579
- * @example
3580
- * ```ts
3581
- * renderer.displayHidden = true; // not drawn, and `renderer.enabled` is still `true`
3582
- * ```
3583
- */
3584
- get displayHidden(): boolean;
3585
- /**
3586
- * Hides the mesh for display, or shows it again; `enabled` is not touched.
3587
- *
3588
- * @param value - `true` to hide it.
3589
- */
3590
- set displayHidden(value: boolean);
3591
- /**
3592
- * Whether the mesh is currently drawn: its own `enabled` flag and its entity's
3593
- * `activeInHierarchy`, less {@link MeshRenderer.displayHidden}, materialised onto Lite's
3594
- * `visible`.
3595
- *
3596
- * @returns `true` when the clone is visible.
3597
- */
3598
- get isVisible(): boolean;
3599
- /** Nothing to do at attach: the clone is built on the first sync, once `mesh` has been decoded. */
3600
- onAttach(): void;
3601
- /** Removes the clone from the scene, releasing its share of the template's buffers. */
3602
- onDetach(): void;
3603
- /**
3604
- * Rebuilds the clone when `mesh` changed, then writes every other field that changed. The
3605
- * `PreRender` system calls it.
3606
- *
3607
- * @param renderer - The rendering service, for the scene and the default material.
3608
- * @returns `true` when the scene's renderable set changed, which the system coalesces into one
3609
- * `rebuildSceneRenderables`.
3610
- *
3611
- * @internal
3612
- */
3613
- sync(renderer: RendererImpl): boolean;
3614
- /**
3615
- * Whether the material this renderer draws with is a `"shader"` material.
3616
- *
3617
- * @remarks
3618
- * The render sync system asks before it builds an ESM caster list: Babylon Lite 1.27.0 has no ESM
3619
- * shadow view for the shader family and writes the fragment colour's red channel into the map
3620
- * (`lib/shadow/esm-directional-shadow-generator.js` 230–245), so such a mesh is left out of it and
3621
- * reported once with `IGX-0724`. PCF and CSM generators take it.
3622
- *
3623
- * @returns `true` when the first declared material is loaded and is a shader material.
3624
- *
3625
- * @internal
3626
- */
3627
- get usesShaderMaterial(): boolean;
3628
- /**
3629
- * Appends this renderer's mesh to a shadow caster list, when it casts.
3630
- *
3631
- * @param out - The caster list being built.
3632
- *
3633
- * @internal
3634
- */
3635
- collectCasters(out: LiteMesh[]): void;
3636
- /**
3637
- * Whether the caster contribution of this renderer changed since the last frame.
3638
- *
3639
- * @returns `true` when `castShadows` or visibility moved.
3640
- *
3641
- * @internal
3642
- */
3643
- consumeCasterChange(): boolean;
3644
- }
3645
- //#endregion
3646
3022
  //#region src/render/loaders/shader-loader.d.ts
3647
3023
  /**
3648
3024
  * The `shader` asset loader: `.wgsl` to `ShaderAsset`
@@ -4241,6 +3617,14 @@ export declare class Model extends Component implements ComponentHooks {
4241
3617
  get lite(): {
4242
3618
  readonly root: LiteSceneNode | null;
4243
3619
  };
3620
+ /**
3621
+ * The meshes of the instantiated subtree, for the light-probe bake under an app with a device.
3622
+ *
3623
+ * @returns The meshes, or `null` while nothing is instantiated (headless, or not synced yet).
3624
+ *
3625
+ * @internal
3626
+ */
3627
+ get instanceMeshes(): readonly LiteMesh[] | null;
4244
3628
  /**
4245
3629
  * Parents an entity under one of the model's glTF nodes — the "weapon in hand" case
4246
3630
  * (`docs/architecture/07-rendering.md` §2.4).
@@ -4617,6 +4001,67 @@ export declare class PostProcessStack extends Component implements ComponentHook
4617
4001
  }
4618
4002
  //#endregion
4619
4003
  //#region src/render/light-probe-bake.d.ts
4004
+ /**
4005
+ * Whether a light-probe bake adds the light a probe receives straight from directional, point and
4006
+ * spot lights. See {@link LightProbeBakeOptions.directLight}.
4007
+ *
4008
+ * @beta
4009
+ */
4010
+ type LightProbeBakeDirectLight = "include" | "exclude";
4011
+ /**
4012
+ * A sky gradient for {@link LightProbeBakeOptions.sky}: linear radiance straight up, at the horizon
4013
+ * and straight down, blended linearly by the ray's height.
4014
+ *
4015
+ * @beta
4016
+ */
4017
+ interface LightProbeBakeSkyGradient {
4018
+ /** Selects the gradient form. */
4019
+ readonly kind: "gradient";
4020
+ /** Linear radiance straight up. */
4021
+ readonly sky: ColorLike;
4022
+ /** Linear radiance at the horizon. */
4023
+ readonly horizon: ColorLike;
4024
+ /** Linear radiance straight down. */
4025
+ readonly ground: ColorLike;
4026
+ }
4027
+ /**
4028
+ * A sky as nine spherical-harmonic coefficients for {@link LightProbeBakeOptions.sky}.
4029
+ *
4030
+ * @remarks
4031
+ * `coefficients` holds 27 numbers: nine linear-RGB triples of **radiance** in the real SH basis,
4032
+ * in the usual graphics order: `Y00`, `Y1-1 (y)`, `Y10 (z)`, `Y11 (x)`, `Y2-2 (xy)`, `Y2-1 (yz)`,
4033
+ * `Y20 (3z²−1)`, `Y21 (xz)`, `Y22 (x²−y²)`, where `x`, `y` and `z` are the world axes (Y up). A ray
4034
+ * that hits nothing returns `Σ cᵢ·Yᵢ(d)`, clamped at 0.
4035
+ *
4036
+ * @beta
4037
+ */
4038
+ interface LightProbeBakeSkyHarmonics {
4039
+ /** Selects the harmonics form. */
4040
+ readonly kind: "sh9";
4041
+ /** 27 finite numbers. */
4042
+ readonly coefficients: readonly number[];
4043
+ }
4044
+ /**
4045
+ * What a ray that hits nothing returns: one linear colour, a gradient, or harmonics.
4046
+ *
4047
+ * @beta
4048
+ */
4049
+ type LightProbeBakeSky = ColorLike | LightProbeBakeSkyGradient | LightProbeBakeSkyHarmonics;
4050
+ /**
4051
+ * Something the bake could not trace, and why.
4052
+ *
4053
+ * @beta
4054
+ */
4055
+ interface LightProbeBakeSkip {
4056
+ /** The entity's name. */
4057
+ readonly entity: string;
4058
+ /** The entity's uid. */
4059
+ readonly uid: string;
4060
+ /** The component's type id: `ignifx/MeshRenderer` or `ignifx/Model`. */
4061
+ readonly component: string;
4062
+ /** Why, in one line. */
4063
+ readonly reason: string;
4064
+ }
4620
4065
  /**
4621
4066
  * What {@link bakeLightProbes} bakes.
4622
4067
  *
@@ -4637,8 +4082,29 @@ interface LightProbeBakeOptions {
4637
4082
  readonly rays?: number;
4638
4083
  /** How far a ray looks for a surface, in metres; finite and positive. Defaults to `100`. */
4639
4084
  readonly maxDistance?: number;
4640
- /** The linear radiance of rays that hit nothing, before hemispheric lights. Defaults to black. */
4641
- readonly sky?: ColorLike;
4085
+ /**
4086
+ * What rays that hit nothing return, in linear radiance: a colour, a
4087
+ * {@link LightProbeBakeSkyGradient} or {@link LightProbeBakeSkyHarmonics}. Defaults to black.
4088
+ *
4089
+ * @remarks
4090
+ * Hemispheric lights are not part of the sky: they follow the light rules
4091
+ * ({@link LightProbeBakeOptions.directLight}). The scene's `Environment` is not read, because its
4092
+ * harmonics live in the `.env` file a headless app does not load; pass them here.
4093
+ */
4094
+ readonly sky?: LightProbeBakeSky;
4095
+ /**
4096
+ * Whether each probe also stores the light it receives straight from the `"realtime"` lights it
4097
+ * sees (`Light.bakeMode`). Defaults to `"exclude"`.
4098
+ *
4099
+ * @remarks
4100
+ * A real-time light keeps lighting the scene while a `LightProbeVolume` is on, so a probe that
4101
+ * also holds its direct light counts it twice. `"exclude"` bakes only its bounce: the light that
4102
+ * reached surfaces from it (shadowed) and came back. That holds for hemispheric lights too, whose
4103
+ * direct part is what a probe sees of their sky and ground. Use `"include"` to read a probe's
4104
+ * total light with `sampleLightProbes`. A `"baked"` light's direct light is always stored and a
4105
+ * `"mixed"` light's never, whatever this says.
4106
+ */
4107
+ readonly directLight?: LightProbeBakeDirectLight;
4642
4108
  /** Stops the bake between probes; the promise then rejects with the signal's reason. */
4643
4109
  readonly signal?: AbortSignal;
4644
4110
  /**
@@ -4659,27 +4125,61 @@ interface LightProbeBakeResult {
4659
4125
  readonly data: LightProbeData;
4660
4126
  /** How many triangles the rays were traced against. */
4661
4127
  readonly triangles: number;
4662
- /** How many enabled mesh renderers were skipped because their triangles are not on the CPU. */
4128
+ /** How many enabled mesh renderers and models gave no triangles at all. */
4663
4129
  readonly skipped: number;
4130
+ /**
4131
+ * Every renderer or model left out, and every glTF primitive left out of a model that was traced
4132
+ * otherwise, with the reason.
4133
+ */
4134
+ readonly skips: readonly LightProbeBakeSkip[];
4664
4135
  }
4665
4136
  /**
4666
- * Bakes a light-probe grid from a world's mesh renderers and lights, on the CPU.
4137
+ * What one light gives a light-probe bake, by its `bakeMode` and the bake's `directLight`.
4667
4138
  *
4668
4139
  * @remarks
4669
- * One bounce, first-order harmonics, deterministic. Only meshes built with `MeshAsset.fromData`
4670
- * cast and bounce light (see {@link LightProbeBakeResult.skipped}). Cost grows with probes × rays ×
4671
- * triangles; it is meant for small scenes and tools, not for every frame.
4140
+ * Every light bounces: the light it puts on surfaces is traced back to the probes. Whether a probe
4141
+ * also stores the light it receives straight from it depends on who draws that light at run time:
4142
+ * a `"baked"` light is not drawn, so the probe holds it; a `"mixed"` light is drawn, so the probe
4143
+ * never does; a `"realtime"` light is drawn too, and `directLight: "include"` is how a bake asks
4144
+ * for its direct light anyway (to read a probe's total light).
4145
+ *
4146
+ * @param bakeMode - The light's `bakeMode`.
4147
+ * @param directLight - The bake's `directLight` option.
4148
+ * @returns Whether the probes store its direct light, and whether its bounce is baked.
4149
+ *
4150
+ * @beta
4151
+ */
4152
+ export declare function lightBakeTerms(bakeMode: LightBakeMode, directLight: LightProbeBakeDirectLight): {
4153
+ readonly direct: boolean;
4154
+ readonly bounce: boolean;
4155
+ };
4156
+ /**
4157
+ * Bakes a light-probe grid from a world's mesh renderers and lights, on the CPU.
4672
4158
  *
4673
- * The bake is asynchronous: it yields to the host after each probe, reports progress through
4674
- * `onProgress`, and stops at the next probe once `signal` aborts.
4159
+ * @remarks
4160
+ * One bounce, first-order harmonics, deterministic. `MeshRenderer` meshes (built from data, or
4161
+ * primitives) and `Model` glTF files cast and bounce light; a model is read from the file a
4162
+ * headless app loaded, or, under an app with a device, from the CPU triangles Lite keeps on its
4163
+ * instance's meshes once the model has been drawn (a model not instantiated yet is listed in
4164
+ * {@link LightProbeBakeResult.skips}). Draco- and meshopt-compressed glTF primitives are skipped
4165
+ * headless. By
4166
+ * default a probe holds every light's bounce but the direct light of `"baked"` lights only, since
4167
+ * the others keep lighting the scene in real time (see {@link LightProbeBakeOptions.directLight} and
4168
+ * `Light.bakeMode`). Cost grows with probes × rays × triangles (each mesh's bounding box culls its
4169
+ * triangles); it is meant for tools, not for every frame.
4170
+ *
4171
+ * The bake is asynchronous: it yields to the host after every ~8 ms of work, reports progress
4172
+ * through `onProgress` after each probe, and stops at the next probe once `signal` aborts.
4675
4173
  *
4676
4174
  * @param world - The world to bake. Its meshes and lights are read once, when the bake starts.
4677
4175
  * @param options - The grid, the quality, and the cancellation and progress hooks.
4678
4176
  * @returns The grid and what was traced.
4679
4177
  * @throws IgnifxError with code `IGX-0734`, before tracing anything, for a grid the `.probes.json`
4680
4178
  * format cannot hold (whole counts, `counts.x` ≤ 1024, `counts.y × counts.z` ≤ 4096, finite
4681
- * `origin` and positive `cellSize`), `rays` outside 1–4096, or a `maxDistance` that is not finite
4682
- * and positive. The promise rejects with `signal.reason` when the bake is aborted.
4179
+ * `origin` and positive `cellSize`), `rays` outside 1–4096, a `maxDistance` that is not finite
4180
+ * and positive, a `directLight` other than `"include"` or `"exclude"`, or a `sky` that is not a
4181
+ * finite colour, gradient or 27 finite harmonics. The promise rejects with `signal.reason` when the
4182
+ * bake is aborted.
4683
4183
  *
4684
4184
  * @example
4685
4185
  * ```ts
@@ -4706,6 +4206,18 @@ export declare function bakeLightProbes(world: World, options: LightProbeBakeOpt
4706
4206
  */
4707
4207
  export declare function createLightProbeLoader(): AssetLoader<LightProbeAsset>;
4708
4208
  //#endregion
4209
+ //#region src/render/loaders/lightmap-loader.d.ts
4210
+ /**
4211
+ * Builds the loader for `.lightmap.json` lightmaps (GI Phase 2, step B3). The texture the file names
4212
+ * loads as a dependency, so it is released with the lightmap; a texture that fails to load fails
4213
+ * the lightmap.
4214
+ *
4215
+ * @returns The loader to register with `ctx.registerAssetLoader`.
4216
+ *
4217
+ * @beta
4218
+ */
4219
+ export declare function createLightmapLoader(): AssetLoader<LightmapAsset>;
4220
+ //#endregion
4709
4221
  //#region src/render/schemas.d.ts
4710
4222
  /**
4711
4223
  * The documentation harness's view of everything `@ignifx/core` declares
@@ -4784,6 +4296,14 @@ export declare function describeMeshFileFormat(): SchemaDescription;
4784
4296
  * @beta
4785
4297
  */
4786
4298
  export declare function describeLightProbeFileFormat(): SchemaDescription;
4299
+ /**
4300
+ * Describes the `.lightmap.json` lightmap format (GI Phase 2, step B3).
4301
+ *
4302
+ * @returns The description of the top-level file fields.
4303
+ *
4304
+ * @beta
4305
+ */
4306
+ export declare function describeLightmapFileFormat(): SchemaDescription;
4787
4307
  //#endregion
4788
4308
  //#region src/serialization/instance-lookup.d.ts
4789
4309
  /**
@@ -5055,7 +4575,9 @@ export declare function validateSceneFile(value: unknown): readonly SceneFileIss
5055
4575
  * Describes every component an app has registered, the engine's, its extensions' and the game's,
5056
4576
  * the way {@link describeSchema} describes one, plus what only the registry knows: whether an
5057
4577
  * entity may hold more than one (`allowMultiple`), which package registered it (`package`), and
5058
- * which components it adds when they are missing (`requires`, its classes' type ids).
4578
+ * which components it adds when they are missing (`requires`, its classes' type ids; `null` for a
4579
+ * class that declares no `typeId` of its own, such as an unregistered subclass that only inherits
4580
+ * its parent's, because naming the parent would describe a different component).
5059
4581
  * This is what an external inspector, such as the ignifx editor, is generated from.
5060
4582
  *
5061
4583
  * @remarks
@@ -5931,5 +5453,5 @@ export declare function transformSchema(): Schema;
5931
5453
  */
5932
5454
  export declare const TWEEN_SYSTEM_ORDER = -100;
5933
5455
  //#endregion
5934
- export { AMBIENT_OCCLUSION_QUALITIES, type AddComponentFromRecordOptions, type AmbientOcclusionQuality, type AmbientOcclusionSettings, type App, type AppEvents, type AppLiteHandles, type AppSettings, type ArrayFieldSpec, type AssetFieldSpec, type AssetHandle, AssetLoadError, type AssetLoadErrorOptions, type AssetLoader, type AssetManifest, type AssetManifestEntry, type AssetProgress, type AssetRef, type AssetRefValue, type AssetState, type AssetTypeDefinition, type AssetTypeToken, type Assets, type AssetsCreateOptions, type AssetsSettings, type AutoExposureSettings, type BatchHandle, type BloomEffectSettings, type BoolFieldSpec, type BoxMeshOptions, CANVAS_ALPHA_MODES, CORE_ERROR_MESSAGES, Camera, type CameraProjection, type CanvasAlphaMode, type CapsuleMeshOptions, type Clock, type ColorFieldSpec, type ColorLike, Component, type ComponentBuildResult, type ComponentClassInfo, type ComponentDefinition, type ComponentHandle, type ComponentHooks, type ComponentInit, type ComponentInitValue, type ComponentRefFieldSpec, ComponentRegistry, type ComponentReplacement, type ComponentStatics, type ComponentType, type ComponentTypeToken, type ConcreteComponentType, type ConnectOptions, type ConsoleLike, type ConsoleSinkOptions, type ContactShadowsEffectSettings, CoreErrorCode, type Coroutine, type CoroutineHandle, type CoroutineHost, type CoroutineYield, type CreateAppOptions, type CreateEntityOptions, type CreateSceneOptions, type CurveFieldSpec, type CurveKey, type CurveValue, type CustomEffectInit, type CustomEffectSettings, type CustomFieldCodec, type CustomFieldSpec, type CylinderMeshOptions, DEFAULT_BRDF_LUT_ADDRESS, DEFAULT_LAYER, type DecodeResult, type DeferredQueue, type DeviceLostInfo, Diagnostics, type DiagnosticsGroup, type DiagnosticsOptions, type Disconnect, EASINGS, EASING_NAMES, EDITOR_ONLY_METADATA_KEY, type EasingFunction, type EasingName, Entity, type EntityHandle, type EntityOverrideField, type EntityPrefabLink, type EntityRefFieldSpec, type EnumFieldSpec, type EnvironmentAssetLiteHandles, type EnvironmentDefinition, type EnvironmentFogMode, type EnvironmentFogSettings, type EnvironmentSkyboxSettings, type ErrorCode, type ErrorCodeDescription, type ErrorCodeRegistry, type ErrorContext, type ErrorFormatMode, ErrorRange, type ErrorReport, type Extension, type ExtensionContext, FRAME_HISTORY_LENGTH, type FetchLike, type FieldDefinition, FieldKind, type FieldOptions, type FieldSpec, type FieldsOf, type FileStorageOptions, type FontAssetLiteHandles, type FrameSample, type FrameState, type FrameWaitOptions, type GpuAdapterInfo, type GroundMeshOptions, type HotReloadHost, type HotReloadKind, type HotReloadModule, type HotReloadOptions, type HotReloadPolicy, type HotReloadReport, type HotReloadStatics, IGNIFX_UNIFORM_NAMES, INVALID_HANDLE, IgnifxError, type IgnifxErrorOptions, type IgnifxUniformName, type ImageProcessingEffectSettings, type ImageProcessingSettings, type InstanceRange, type InstancedMeshLod, type InstancedMeshRendererLiteHandles, type InstantiateOptions, type InstantiateSceneOptions, type JsonArray, type JsonObject, type JsonSchemaObject, type JsonValue, LIGHT_PROBE_ASSET_TYPE, LIGHT_PROBE_FILE_EXTENSIONS, LIGHT_PROBE_FILE_FORMAT, LIGHT_PROBE_FORMAT_VERSION, LITE_SYSTEM_UNIFORM_NAMES, LOG_LEVEL_SEVERITY, LayerMask, type LayerMaskFieldSpec, LayerTable, type LayersSettings, LightProbeAsset, type LightProbeBakeOptions, type LightProbeBakeResult, type LightProbeData, LightProbeVolume, type LightShadowSettings, type LightType, type LiteAnimationGroup, type LiteAssetContainer, type LiteCamera, type LiteEngine, type LiteEnvironmentTextures, type LiteFont, type AdapterLight as LiteLight, type LiteMaterial, type LiteMaterialPluginPoint, type LiteMesh, type LitePbrMaterial, type LiteScene, type LiteSceneNode, type LiteShaderMaterial, type LiteShadowGenerator, type LiteSkeleton, type LiteStandardMaterial, type LiteStorageBuffer, type LiteSystemUniformName, type LiteTexture2D, type LoadOptions, type LoadProgress, type LoadSceneDependenciesOptions, type LoadSceneFileOptions, type LoadSceneOptions, type LoaderContext, LogLevel, type LogRecord, type LogSink, type LogThreshold, type Logger, type LoggerOptions, MAT4_IDENTITY, MATERIAL_ALPHA_MODES, MATERIAL_ASSET_TYPE, MATERIAL_FILE_EXTENSION, MATERIAL_FILE_FORMAT, MATERIAL_FORMAT_VERSION, MATERIAL_KINDS, MAX_LAYERS, type ManualClock, type MapFieldSpec, Mat4, type Mat4Elements, type Mat4Like, type MaterialAlphaMode, MaterialAsset, type MaterialAssetLiteHandles, type MaterialDefinition, type MaterialKind, type MaterialPluginDefinition, type MaterialPluginDefinitionInit, type MemorySink, type MeshAssetLiteHandles, type MeshGeometryData, type MeshOptionKind, type MeshPrimitive, type MeshPrimitiveDefinition, type MeshPrimitiveOptionKinds, type ModelAssetLiteHandles, type ModelInstantiation, type MutableQuat, type MutableVec2, type MutableVec3, type MutableVec4, type NumberFieldSpec, type OptionalFieldSpec, type OverridePath, PBR_TEXTURE_SLOTS, PHASES, PHASE_COUNT, PHASE_NAMES, PROJECTIONS, type PartialFieldsOf, type PbrMaterialDefinition, Phase, type PhaseIndex, PhysicsCallbackName, type PixelTextureOptions, type PlaneMeshOptions, type PlatformInfo, type PlatformKind, type PlatformOs, type PrefabApplyOptions, type PrefabApplyResult, type PrefabComponentSkip, type PrefabOverrideSelection, type PrefabOverrideSkip, type ProfileScope, QUAT_IDENTITY, Quat, type QuatLike, REFLECTION_PROBE_REFRESH_MODES, RENDERING_QUALITIES, RENDERING_SETTINGS_SECTION, RENDER_DIAGNOSTICS_COUNTERS, RENDER_DIAGNOSTICS_GROUP, RENDER_TEXTURE_MAX_SIZE, RESERVED_LAYER_NAMES, type RandomSource, type Ray, type RayVector, type RecordFieldSpec, type ReferenceDecoder, type ReferenceEncoder, ReflectionProbe, type ReflectionProbeRefreshMode, type RegisterAssetOptions, type RegisterComponentOptions, type RegisterSystemOptions, type RenderCapture, type RenderOverlay, type RenderOverlayLiteHandles, type RenderPick, type RenderPickIgnore, type RenderPickOptions, type RenderSurface, type RenderTaskTiming, type RenderTaskTimings, type RenderTexture, type Renderer, type RenderingFeature, type RenderingFeatureSettings, type RenderingQuality, type RenderingSettings, SCENE_ASSET_TYPE, SCENE_FILE_EXTENSIONS, SCENE_FILE_FORMAT, SCENE_FORMAT_VERSION, SHADER_ASSET_TYPE, SHADER_ATTRIBUTE_NAMES, SHADER_BLEND_MODES, SHADER_CULL_MODES, SHADER_FILE_EXTENSIONS, SHADER_INSTANCING_MODES, SHADER_KINDS, SHADER_TEXTURE_FALLBACKS, SHADER_UNIFORM_TYPES, SHADOW_TECHNIQUES, STANDARD_TEXTURE_SLOTS, STORAGE_BUFFER_ASSET_TYPE, SURFACE_HOOK_NAMES, SURFACE_UNIFORM_BLOCK, type SceneAsset, SceneAssetToken, type SceneBuildResult, type SceneFile, type SceneFileAssetRef, type SceneFileComponent, type SceneFileEntity, type SceneFileInstance, type SceneFileIssue, type SceneFileOverride, type SceneFileTransform, SceneInstance, type SceneLoadIssue, type SceneLoaderOptions, type Schema, type SchemaDescription, type SchemaDescriptionMeta, type SchemaFieldDescription, type SchemaIssue, SchemaIssueCode, Script, ScriptCallbackKind, type ScriptCallbacks, type ScriptClassInfo, type ScriptDefinition, type ScriptStatics, type SerializeIssue, type SerializeSceneOptions, type ServiceClassKey, type ServiceKey, type ServiceNameKey, type ServiceRegistry, type SetParentOptions, type SettingsInput, ShaderAsset, type ShaderAttributeName, type ShaderBlendMode, type ShaderCullMode, type ShaderDeclaration, type ShaderDefineDeclaration, type ShaderInstancingMode, type ShaderKind, type ShaderMaterialDefinition, type ShaderMaterialDefinitionInput, type ShaderPipelineState, type ShaderStorageDeclaration, type ShaderTextureDeclaration, type ShaderTextureFallback, type ShaderUniformDeclaration, type ShaderUniformType, type ShadowTechniqueName, Signal, type SignalHandler, type SignalLike, type SignalOptions, type SignalOwner, type SmaaEffectSettings, type SortingLayersSettings, type SphereMeshOptions, type SsgiEffectSettings, type StandardMaterialDefinition, type Storage, type StorageBackend, StorageBufferAsset, type StorageBufferAssetLiteHandles, type StoredValue, type StoredValueKind, type StringFieldSpec, type SurfaceHookName, type SurfaceHostCapabilities, type SurfaceHostFamily, type SurfaceShaderBinding, type SurfaceShaderInit, type SurfaceShaderReference, type System, type SystemContext, type SystemEditMode, TEXTURE_ASSET_TYPE, THIRD_PARTY_ERROR_PREFIX, TWEEN_LOOP_FOREVER, TWEEN_VALUE_KINDS, type TaaSettings, TagSet, TextureAsset, type TextureAssetLiteHandles, type TextureImportOptions, type Time, type TimeSettings, type ToneMappingCurve, type TorusMeshOptions, Transform, Tween, type TweenOptions, type TweenProps, type TweenTargetValue, type TweenValueKind, type TweenableValue, type Tweens, UidRemap, type UlidFactoryOptions, VEC2_ONE, VEC2_ZERO, VEC3_BACKWARD, VEC3_DOWN, VEC3_FORWARD, VEC3_LEFT, VEC3_ONE, VEC3_RIGHT, VEC3_UP, VEC3_ZERO, Vec2, type Vec2Like, Vec3, type Vec3Like, type Vec4Like, type VectorFieldSpec, type WaitInstruction, type WebGpuInfo, World, type WorldLiteHandles, addComponentFromRecord, applyOverridesToAsset, assertNever, assertSceneDependenciesLoaded, canonicalizeNumber, computeSceneHash, createDiagnosticsGroup, createFrameSample, createLayerTable, createLightProbeAsset, createLogger, createMaterialAsset, createRay, createSceneAsset, createServiceKey, createStorageBufferAsset, decodeProps, decodeValue, defaultAutoExposureSettings, defaultRenderingSettings, describeSceneFileFormat, describeSchema, encodeProps, encodeValue, forceRendererDeviceLossForTesting, formatErrorMessage, instantiateScene, isIgnifxError, isSceneFileHeader, isValidErrorCode, isWebGpuAvailable, parseOverridePath, pbrMaterialDefinition, platformInternals, resetFrameSample, resolveEase, revertOverrides, sampleLightProbes, sceneFileJsonSchema, shaderMaterialDefinition, standardMaterialDefinition, storageInternals, stringifySceneFile, toJsonSchema, writeLightProbeFile };
5456
+ export { AMBIENT_OCCLUSION_QUALITIES, type AddComponentFromRecordOptions, type AmbientOcclusionQuality, type AmbientOcclusionSettings, type App, type AppEvents, type AppLiteHandles, type AppSettings, type ArrayFieldSpec, type AssetFieldSpec, type AssetHandle, AssetLoadError, type AssetLoadErrorOptions, type AssetLoader, type AssetManifest, type AssetManifestEntry, type AssetProgress, type AssetRef, type AssetRefValue, type AssetState, type AssetTypeDefinition, type AssetTypeToken, type Assets, type AssetsCreateOptions, type AssetsSettings, type AutoExposureSettings, type BatchHandle, type BloomEffectSettings, type BoolFieldSpec, type BoxMeshOptions, CANVAS_ALPHA_MODES, CORE_ERROR_MESSAGES, Camera, type CameraProjection, type CanvasAlphaMode, type CapsuleMeshOptions, type Clock, type ColorFieldSpec, type ColorLike, Component, type ComponentBuildResult, type ComponentClassInfo, type ComponentDefinition, type ComponentHandle, type ComponentHooks, type ComponentInit, type ComponentInitValue, type ComponentRefFieldSpec, ComponentRegistry, type ComponentReplacement, type ComponentStatics, type ComponentType, type ComponentTypeToken, type ConcreteComponentType, type ConnectOptions, type ConsoleLike, type ConsoleSinkOptions, type ContactShadowsEffectSettings, CoreErrorCode, type Coroutine, type CoroutineHandle, type CoroutineHost, type CoroutineYield, type CreateAppOptions, type CreateEntityOptions, type CreateSceneOptions, type CurveFieldSpec, type CurveKey, type CurveValue, type CustomEffectInit, type CustomEffectSettings, type CustomFieldCodec, type CustomFieldSpec, type CylinderMeshOptions, DEFAULT_BRDF_LUT_ADDRESS, DEFAULT_LAYER, type DecodeResult, type DeferredQueue, type DeviceLostInfo, Diagnostics, type DiagnosticsGroup, type DiagnosticsOptions, type Disconnect, EASINGS, EASING_NAMES, EDITOR_ONLY_METADATA_KEY, type EasingFunction, type EasingName, Entity, type EntityHandle, type EntityOverrideField, type EntityPrefabLink, type EntityRefFieldSpec, type EnumFieldSpec, type EnvironmentAssetLiteHandles, type EnvironmentDefinition, type EnvironmentFogMode, type EnvironmentFogSettings, type EnvironmentSkyboxSettings, type ErrorCode, type ErrorCodeDescription, type ErrorCodeRegistry, type ErrorContext, type ErrorFormatMode, ErrorRange, type ErrorReport, type Extension, type ExtensionContext, FRAME_HISTORY_LENGTH, type FetchLike, type FieldDefinition, FieldKind, type FieldOptions, type FieldSpec, type FieldsOf, type FileStorageOptions, type FontAssetLiteHandles, type FrameSample, type FrameState, type FrameWaitOptions, type GpuAdapterInfo, type GroundMeshOptions, type HotReloadHost, type HotReloadKind, type HotReloadModule, type HotReloadOptions, type HotReloadPolicy, type HotReloadReport, type HotReloadStatics, IDENTITY_LIGHTMAP_PLACEMENT, IGNIFX_UNIFORM_NAMES, INVALID_HANDLE, IgnifxError, type IgnifxErrorOptions, type IgnifxUniformName, type ImageProcessingEffectSettings, type ImageProcessingSettings, type InstanceRange, type InstanceTarget, type InstancedMeshLod, type InstancedMeshRendererLiteHandles, type InstantiateOptions, type InstantiateSceneOptions, type JsonArray, type JsonObject, type JsonSchemaObject, type JsonValue, LIGHTMAP_ASSET_TYPE, LIGHTMAP_FILE_EXTENSIONS, LIGHTMAP_FILE_FORMAT, LIGHTMAP_FORMAT_VERSION, LIGHTMAP_MODES, LIGHT_PROBE_ASSET_TYPE, LIGHT_PROBE_FILE_EXTENSIONS, LIGHT_PROBE_FILE_FORMAT, LIGHT_PROBE_FORMAT_VERSION, LITE_SYSTEM_UNIFORM_NAMES, LOG_LEVEL_SEVERITY, LayerMask, type LayerMaskFieldSpec, LayerTable, type LayersSettings, type LightBakeMode, LightProbeAsset, type LightProbeBakeDirectLight, type LightProbeBakeOptions, type LightProbeBakeResult, type LightProbeBakeSkip, type LightProbeBakeSky, type LightProbeBakeSkyGradient, type LightProbeBakeSkyHarmonics, type LightProbeData, LightProbeVolume, type LightShadowSettings, type LightType, LightmapAsset, type LightmapFileData, type LightmapMode, type LightmapPlacement, type LiteAnimationGroup, type LiteAssetContainer, type LiteCamera, type LiteEngine, type LiteEnvironmentTextures, type LiteFont, type AdapterLight as LiteLight, type LiteMaterial, type LiteMaterialPluginPoint, type LiteMesh, type LitePbrMaterial, type LiteScene, type LiteSceneNode, type LiteShaderMaterial, type LiteShadowGenerator, type LiteSkeleton, type LiteStandardMaterial, type LiteStorageBuffer, type LiteSystemUniformName, type LiteTexture2D, type LoadOptions, type LoadProgress, type LoadSceneDependenciesOptions, type LoadSceneFileOptions, type LoadSceneOptions, type LoaderContext, LogLevel, type LogRecord, type LogSink, type LogThreshold, type Logger, type LoggerOptions, MAT4_IDENTITY, MATERIAL_ALPHA_MODES, MATERIAL_ASSET_TYPE, MATERIAL_FILE_EXTENSION, MATERIAL_FILE_FORMAT, MATERIAL_FORMAT_VERSION, MATERIAL_KINDS, MAX_LAYERS, MESH_ASSET_TYPE, MESH_PRIMITIVES, type ManualClock, type MapFieldSpec, Mat4, type Mat4Elements, type Mat4Like, type MaterialAlphaMode, MaterialAsset, type MaterialAssetLiteHandles, type MaterialDefinition, type MaterialKind, type MaterialPluginDefinition, type MaterialPluginDefinitionInit, type MemorySink, MeshAsset, type MeshAssetLiteHandles, type MeshGeometryData, type MeshOptionKind, type MeshPrimitive, type MeshPrimitiveDefinition, type MeshPrimitiveOptionKinds, MeshRenderer, type MeshRendererLightmap, type ModelAssetLiteHandles, type ModelInstantiation, type MutableQuat, type MutableVec2, type MutableVec3, type MutableVec4, type NumberFieldSpec, type OptionalFieldSpec, type OverridePath, PBR_TEXTURE_SLOTS, PHASES, PHASE_COUNT, PHASE_NAMES, PROJECTIONS, type PartialFieldsOf, type PbrMaterialDefinition, Phase, type PhaseIndex, PhysicsCallbackName, type PixelTextureOptions, type PlaneMeshOptions, type PlatformInfo, type PlatformKind, type PlatformOs, type PrefabApplyOptions, type PrefabApplyResult, type PrefabComponentSkip, type PrefabOverrideSelection, type PrefabOverrideSkip, type PrefabReader, type ProfileScope, QUAT_IDENTITY, Quat, type QuatLike, REFLECTION_PROBE_REFRESH_MODES, RENDERING_QUALITIES, RENDERING_SETTINGS_SECTION, RENDER_DIAGNOSTICS_COUNTERS, RENDER_DIAGNOSTICS_GROUP, RENDER_TEXTURE_MAX_SIZE, RESERVED_LAYER_NAMES, type RandomSource, type Ray, type RayVector, type RecordFieldSpec, type ReferenceDecoder, type ReferenceEncoder, ReflectionProbe, type ReflectionProbeRefreshMode, type RegisterAssetOptions, type RegisterComponentOptions, type RegisterSystemOptions, type RenderCapture, type RenderOverlay, type RenderOverlayLiteHandles, type RenderPick, type RenderPickIgnore, type RenderPickOptions, type RenderSurface, type RenderTaskTiming, type RenderTaskTimings, type RenderTexture, type Renderer, type RenderingFeature, type RenderingFeatureSettings, type RenderingQuality, type RenderingSettings, SCENE_ASSET_TYPE, SCENE_FILE_EXTENSIONS, SCENE_FILE_FORMAT, SCENE_FORMAT_VERSION, SHADER_ASSET_TYPE, SHADER_ATTRIBUTE_NAMES, SHADER_BLEND_MODES, SHADER_CULL_MODES, SHADER_FILE_EXTENSIONS, SHADER_INSTANCING_MODES, SHADER_KINDS, SHADER_TEXTURE_FALLBACKS, SHADER_UNIFORM_TYPES, SHADOW_TECHNIQUES, STANDARD_TEXTURE_SLOTS, STORAGE_BUFFER_ASSET_TYPE, SURFACE_HOOK_NAMES, SURFACE_UNIFORM_BLOCK, type SceneAsset, SceneAssetToken, type SceneBuildResult, type SceneFile, type SceneFileAssetRef, type SceneFileComponent, type SceneFileEntity, type SceneFileInstance, type SceneFileIssue, type SceneFileOverride, type SceneFileTransform, SceneInstance, type SceneLoadIssue, type SceneLoaderOptions, type Schema, type SchemaDescription, type SchemaDescriptionMeta, type SchemaFieldDescription, type SchemaIssue, SchemaIssueCode, Script, ScriptCallbackKind, type ScriptCallbacks, type ScriptClassInfo, type ScriptDefinition, type ScriptStatics, type SerializeIssue, type SerializeSceneOptions, type ServiceClassKey, type ServiceKey, type ServiceNameKey, type ServiceRegistry, type SetParentOptions, type SettingsInput, ShaderAsset, type ShaderAttributeName, type ShaderBlendMode, type ShaderCullMode, type ShaderDeclaration, type ShaderDefineDeclaration, type ShaderInstancingMode, type ShaderKind, type ShaderMaterialDefinition, type ShaderMaterialDefinitionInput, type ShaderPipelineState, type ShaderStorageDeclaration, type ShaderTextureDeclaration, type ShaderTextureFallback, type ShaderUniformDeclaration, type ShaderUniformType, type ShadowTechniqueName, Signal, type SignalHandler, type SignalLike, type SignalOptions, type SignalOwner, type SmaaEffectSettings, type SortingLayersSettings, type SphereMeshOptions, type SsgiEffectSettings, type StandardMaterialDefinition, type Storage, type StorageBackend, StorageBufferAsset, type StorageBufferAssetLiteHandles, type StoredValue, type StoredValueKind, type StringFieldSpec, type SurfaceHookName, type SurfaceHostCapabilities, type SurfaceHostFamily, type SurfaceShaderBinding, type SurfaceShaderInit, type SurfaceShaderReference, type System, type SystemContext, type SystemEditMode, TEXTURE_ASSET_TYPE, THIRD_PARTY_ERROR_PREFIX, TWEEN_LOOP_FOREVER, TWEEN_VALUE_KINDS, type TaaSettings, TagSet, TextureAsset, type TextureAssetLiteHandles, type TextureImportOptions, type Time, type TimeSettings, type ToneMappingCurve, type TorusMeshOptions, Transform, Tween, type TweenOptions, type TweenProps, type TweenTargetValue, type TweenValueKind, type TweenableValue, type Tweens, UidRemap, type UlidFactoryOptions, VEC2_ONE, VEC2_ZERO, VEC3_BACKWARD, VEC3_DOWN, VEC3_FORWARD, VEC3_LEFT, VEC3_ONE, VEC3_RIGHT, VEC3_UP, VEC3_ZERO, Vec2, type Vec2Like, Vec3, type Vec3Like, type Vec4Like, type VectorFieldSpec, type WaitInstruction, type WebGpuInfo, World, type WorldLiteHandles, addComponentFromRecord, applyOverridesToAsset, assertNever, assertSceneDependenciesLoaded, canonicalizeNumber, computeSceneHash, createDiagnosticsGroup, createFrameSample, createLayerTable, createLightProbeAsset, createLightmapAsset, createLogger, createMaterialAsset, createRay, createSceneAsset, createServiceKey, createStorageBufferAsset, decodeProps, decodeValue, defaultAutoExposureSettings, defaultRenderingSettings, describeSceneFileFormat, describeSchema, encodeProps, encodeValue, enumerateInstanceTargets, forceRendererDeviceLossForTesting, formatErrorMessage, instantiateScene, isIgnifxError, isSceneFileHeader, isValidErrorCode, isWebGpuAvailable, parseOverridePath, pbrMaterialDefinition, platformInternals, resetFrameSample, resolveEase, resolveInstancePath, revertOverrides, sampleLightProbes, sceneFileJsonSchema, shaderMaterialDefinition, standardMaterialDefinition, storageInternals, stringifySceneFile, toJsonSchema, writeLightProbeFile, writeLightmapFile };
5935
5457
  //# sourceMappingURL=index.d.ts.map