@ignifx/core 0.17.0 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{environment-CMpzGXTz.js → environment-Bf4aphSb.js} +2 -2
- package/dist/{environment-CMpzGXTz.js.map → environment-Bf4aphSb.js.map} +1 -1
- package/dist/{hdr-output-BrUvpAsE.js → hdr-output-Dbv0lhFl.js} +4 -3
- package/dist/{hdr-output-BrUvpAsE.js.map → hdr-output-Dbv0lhFl.js.map} +1 -1
- package/dist/{ignifx-error-Der0bpHK.js → ignifx-error-DwIZKxA2.js} +13 -1
- package/dist/ignifx-error-DwIZKxA2.js.map +1 -0
- package/dist/index.d.ts +144 -675
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3242 -1949
- package/dist/index.js.map +1 -1
- package/dist/light-probe-asset-BqfSrJe9.js +331 -0
- package/dist/light-probe-asset-BqfSrJe9.js.map +1 -0
- package/dist/light-probes-DyLapYX9.js +284 -0
- package/dist/light-probes-DyLapYX9.js.map +1 -0
- package/dist/lightmaps-LO6Ygtwe.js +137 -0
- package/dist/lightmaps-LO6Ygtwe.js.map +1 -0
- package/dist/{material-plugin-B-hartHR.js → material-plugin-DapJNj04.js} +2 -2
- package/dist/{material-plugin-B-hartHR.js.map → material-plugin-DapJNj04.js.map} +1 -1
- package/dist/{post-effect-CuoYvrhb.js → post-effect-CaiqDlhW.js} +2 -2
- package/dist/{post-effect-CuoYvrhb.js.map → post-effect-CaiqDlhW.js.map} +1 -1
- package/dist/{post-effect-compiler-Bps8QbiJ.js → post-effect-compiler-jSvOVe0U.js} +3 -3
- package/dist/{post-effect-compiler-Bps8QbiJ.js.map → post-effect-compiler-jSvOVe0U.js.map} +1 -1
- package/dist/{prefab-overrides-76IhcF-e.d.ts → prefab-overrides-CS8_cG66.d.ts} +1559 -252
- package/dist/prefab-overrides-CS8_cG66.d.ts.map +1 -0
- package/dist/{prefab-overrides-DGiGTSN-.js → prefab-overrides-DRP2DcnC.js} +450 -30
- package/dist/prefab-overrides-DRP2DcnC.js.map +1 -0
- package/dist/prefab.d.ts +2 -2
- package/dist/prefab.js +2 -2
- package/dist/{reflection-probe-C0pzGrG_.js → reflection-probe-AS8d4uKv.js} +30 -12
- package/dist/{reflection-probe-C0pzGrG_.js.map → reflection-probe-AS8d4uKv.js.map} +1 -1
- package/dist/{reflection-probes-B8_vK9YR.js → reflection-probes-CUZcOjNW.js} +115 -22
- package/dist/reflection-probes-CUZcOjNW.js.map +1 -0
- package/dist/{render-path-Be7WgN7r.js → render-path-D11i_7X8.js} +3 -2
- package/dist/{render-path-Be7WgN7r.js.map → render-path-D11i_7X8.js.map} +1 -1
- package/dist/{scene-color-passes-DlNr-qyZ.js → scene-color-passes-B93qTOka.js} +35 -12
- package/dist/scene-color-passes-B93qTOka.js.map +1 -0
- package/dist/{shader-material-DCjYDdkh.js → shader-material-CJIDFvSb.js} +2 -2
- package/dist/{shader-material-DCjYDdkh.js.map → shader-material-CJIDFvSb.js.map} +1 -1
- package/dist/{shader-material-Cjfq7nFS.js → shader-material-CuwK9tWC.js} +5 -5
- package/dist/{shader-material-Cjfq7nFS.js.map → shader-material-CuwK9tWC.js.map} +1 -1
- package/dist/{shader-pragma-cjEC-EPK.js → shader-pragma-ljmAbVc2.js} +2 -2
- package/dist/{shader-pragma-cjEC-EPK.js.map → shader-pragma-ljmAbVc2.js.map} +1 -1
- package/dist/{surface-shader-D40hXQ8c.js → surface-shader-DY9_aC9L.js} +4 -4
- package/dist/{surface-shader-D40hXQ8c.js.map → surface-shader-DY9_aC9L.js.map} +1 -1
- package/package.json +1 -1
- package/dist/ignifx-error-Der0bpHK.js.map +0 -1
- package/dist/prefab-overrides-76IhcF-e.d.ts.map +0 -1
- package/dist/prefab-overrides-DGiGTSN-.js.map +0 -1
- package/dist/reflection-probes-B8_vK9YR.js.map +0 -1
- package/dist/scene-color-passes-DlNr-qyZ.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as TWEEN_VALUE_KINDS, $a as ComponentRefFieldSpec, $i as SceneFile, $n as RENDERING_SETTINGS_SECTION, $o as JsonObject, $r as SHADER_BLEND_MODES, $t as InstantiateOptions, A as ServiceClassKey, Aa as QUAT_IDENTITY, Ai as Script, An as RenderOverlay, Ao as AssetLoader, Ar as LiteShaderMaterial, At as FRAME_HISTORY_LENGTH, B as WaitInstruction, Ba as Vec3Like, Bi as decodeValue, Bn as forceRendererDeviceLossForTesting, Bo as FetchLike, Br as TEXTURE_ASSET_TYPE, Bt as ComponentInitValue, C as FrameState, Ca as VEC3_RIGHT, Ci as ReflectionProbeRefreshMode, Cn as RENDER_TEXTURE_MAX_SIZE, Co as ScriptCallbackKind, Cr as LitePbrMaterial, Ct as HotReloadModule, D as Phase, Da as VEC2_ONE, Di as RESERVED_LAYER_NAMES, Dn as RENDER_DIAGNOSTICS_COUNTERS, Do as AssetHandle, Dr as SurfaceShaderBinding, Dt as HotReloadStatics, E as PHASE_NAMES, Ea as Vec3, Ei as MAX_LAYERS, En as FrameWaitOptions, Eo as INVALID_HANDLE, Er as MaterialAlphaMode, Et as HotReloadReport, F as System, Fa as MutableVec2, Fi as DecodeResult, Fn as RenderTaskTiming, Fo as AssetState, Fr as LiteStorageBuffer, Ft as createFrameSample, G as TWEEN_LOOP_FOREVER, Ga as ComponentReplacement, Gi as SceneAsset, Gn as AMBIENT_OCCLUSION_QUALITIES, Go as DeferredQueue, Gr as SHADER_ASSET_TYPE, Gt as Component, H as TweenProps, Ha as TagSet, Hi as encodeValue, Hn as isWebGpuAvailable, Ho as LoaderContext, Hr as TextureAssetLiteHandles, Ht as ComponentType, I as SystemContext, Ia as MutableVec3, Ii as ReferenceDecoder, In as RenderTaskTimings, Io as AssetTypeDefinition, Ir as ShaderMaterialDefinition, It as resetFrameSample, J as EASINGS, Ja as AssetFieldSpec, Ji as createSceneAsset, Jn as AutoExposureSettings, Jo as SignalHandler, Jr as IGNIFX_UNIFORM_NAMES, Jt as Entity, K as Tween, Ka as ScriptClassInfo, Ki as SceneAssetToken, Kn as AmbientOcclusionQuality, Ko as Disconnect, Kr as SHADER_FILE_EXTENSIONS, Kt as ComponentDefinition, L as SystemEditMode, La as MutableVec4, Li as ReferenceEncoder, Ln as Renderer, Lo as Assets, Lr as ShaderMaterialDefinitionInput, Lt as DiagnosticsGroup, M as ServiceNameKey, Ma as ColorLike, Mi as ScriptDefinition, Mn as RenderPick, Mo as AssetManifestEntry, Mr as StorageBufferAsset, Mt as FrameSample, N as ServiceRegistry, Na as Mat4Like, Ni as SceneInstance, Nn as RenderPickIgnore, No as AssetProgress, Nr as StorageBufferAssetLiteHandles, Nt as PHASE_COUNT, O as RegisterComponentOptions, Oa as VEC2_ZERO, Oi as createLayerTable, On as RENDER_DIAGNOSTICS_GROUP, Oo as AssetLoadError, Or as SurfaceShaderInit, Ot as Diagnostics, P as SortingLayersSettings, Pa as MutableQuat, Pi as UidRemap, Pn as RenderPickOptions, Po as AssetRef, Pr as createStorageBufferAsset, Pt as PhaseIndex, Q as resolveEase, Qa as ColorFieldSpec, Qi as SCENE_FORMAT_VERSION, Qn as RENDERING_QUALITIES, Qo as JsonArray, Qr as SHADER_ATTRIBUTE_NAMES, Qt as CreateSceneOptions, R as Time, Ra as QuatLike, Ri as canonicalizeNumber, Rn as RendererImpl, Ro as AssetsSettings, Rr as shaderMaterialDefinition, Rt as createDiagnosticsGroup, S as ExtensionContext, Sa as VEC3_ONE, Si as ReflectionProbe, Sn as EDITOR_ONLY_METADATA_KEY, So as PhysicsCallbackName, Sr as LiteMaterial, St as HotReloadKind, T as PHASES, Ta as VEC3_ZERO, Ti as LayerTable, Tn as LiteCamera, To as EntityHandle, Tr as MATERIAL_ALPHA_MODES, Tt as HotReloadPolicy, U as TweenTargetValue, Ua as ComponentClassInfo, Ui as SchemaIssue, Un as LiteShadowGenerator, Uo as RegisterAssetOptions, Ur as TextureImportOptions, Ut as ConcreteComponentType, V as createServiceKey, Va as Vec4Like, Vi as encodeProps, Vn as RenderSurface, Vo as LoadOptions, Vr as TextureAsset, Vt as ComponentStatics, W as Tweens, Wa as ComponentRegistry, Wi as SchemaIssueCode, Wn as SHADOW_TECHNIQUES, Wo as ConnectOptions, Wr as LiteTexture2D, Wt as ScriptStatics, X as EasingFunction, Xa as AssetTypeToken, Xi as SCENE_FILE_EXTENSIONS, Xn as CanvasAlphaMode, Xo as SignalOptions, Xr as LITE_SYSTEM_UNIFORM_NAMES, Xt as SetParentOptions, Y as EASING_NAMES, Ya as AssetRefValue, Yi as SCENE_ASSET_TYPE, Yn as CANVAS_ALPHA_MODES, Yo as SignalLike, Yr as IgnifxUniformName, Yt as EntityPrefabLink, Z as EasingName, Za as BoolFieldSpec, Zi as SCENE_FILE_FORMAT, Zn as DEFAULT_BRDF_LUT_ADDRESS, Zo as SignalOwner, Zr as LiteSystemUniformName, Zt as CreateEntityOptions, _ as CoroutineHost, _a as LiteSceneNode, _i as ShaderTextureFallback, _n as RayVector, _o as PartialFieldsOf, _r as STANDARD_TEXTURE_SLOTS, _t as LogLevel, a as PrefabOverrideSkip, aa as SceneFileTransform, ai as SURFACE_HOOK_NAMES, an as AddComponentFromRecordOptions, ao as CustomFieldSpec, ar as defaultRenderingSettings, as as IgnifxError, at as StoredValue, b as ErrorReport, ba as VEC3_FORWARD, bi as SurfaceHookName, bn as Mat4, bo as StringFieldSpec, br as pbrMaterialDefinition, bt as LogThreshold, c as EntityOverrideField, ca as sceneFileJsonSchema, ci as ShaderBlendMode, cn as SceneBuildResult, co as FieldDefinition, cr as MATERIAL_FILE_FORMAT, cs as formatErrorMessage, ct as PlatformInfo, d as App, da as SchemaDescription, di as ShaderDefineDeclaration, dn as assertSceneDependenciesLoaded, do as FieldSpec, dr as MaterialAsset, ds as CoreErrorCode, dt as WebGpuInfo, ea as SceneFileAssetRef, ei as SHADER_CULL_MODES, en as LoadProgress, eo as ComponentTypeToken, er as RenderingFeatureSettings, es as JsonValue, et as TweenValueKind, f as AppEvents, fa as SchemaDescriptionMeta, fi as ShaderInstancingMode, fn as instantiateScene, fo as FieldsOf, fr as MaterialAssetLiteHandles, fs as ErrorCode, ft as platformInternals, g as CoroutineHandle, ga as Transform, gi as ShaderTextureDeclaration, gn as Ray, go as OptionalFieldSpec, gr as PbrMaterialDefinition, gt as LOG_LEVEL_SEVERITY, h as Coroutine, ha as toJsonSchema, hi as ShaderStorageDeclaration, hn as PROJECTIONS, ho as NumberFieldSpec, hr as PBR_TEXTURE_SLOTS, hs as isValidErrorCode, ht as createLogger, i as PrefabOverrideSelection, ia as SceneFileOverride, ii as SHADER_UNIFORM_TYPES, in as WorldLiteHandles, io as CustomFieldCodec, ir as defaultAutoExposureSettings, is as ErrorFormatMode, it as StorageBackend, j as ServiceKey, ja as Quat, ji as ScriptCallbacks, jn as RenderOverlayLiteHandles, jo as AssetManifest, jr as STORAGE_BUFFER_ASSET_TYPE, jt as ProfileScope, k as RegisterSystemOptions, ka as Vec2, ki as LayerMask, kn as RenderCapture, ko as AssetLoadErrorOptions, kr as SurfaceShaderReference, kt as DiagnosticsOptions, l as OverridePath, la as stringifySceneFile, li as ShaderCullMode, ln as SceneLoadIssue, lo as FieldKind, lr as MATERIAL_FORMAT_VERSION, ls as isIgnifxError, lt as PlatformKind, m as AppSettings, ma as describeSchema, mi as ShaderPipelineState, mn as CameraProjection, mo as MapFieldSpec, mr as MaterialKind, ms as THIRD_PARTY_ERROR_PREFIX, mt as LoggerOptions, n as PrefabApplyResult, na as SceneFileEntity, ni as SHADER_KINDS, nn as LoadSceneOptions, no as CurveKey, nr as RenderingSettings, ns as LiteScene, nt as Storage, o as applyOverridesToAsset, oa as describeSceneFileFormat, oi as SURFACE_UNIFORM_BLOCK, on as ComponentBuildResult, oo as EntityRefFieldSpec, or as MATERIAL_ASSET_TYPE, os as IgnifxErrorOptions, ot as StoredValueKind, p as AppLiteHandles, pa as SchemaFieldDescription, pi as ShaderKind, pn as Camera, po as LayerMaskFieldSpec, pr as MaterialDefinition, ps as ErrorRange, pt as Logger, q as TweenOptions, qa as ArrayFieldSpec, qi as computeSceneHash, qn as AmbientOcclusionSettings, qo as Signal, qr as ShaderAsset, qt as ComponentHooks, r as PrefabComponentSkip, ra as SceneFileInstance, ri as SHADER_TEXTURE_FALLBACKS, rn as World, ro as CurveValue, rr as TaaSettings, rs as ErrorContext, rt as storageInternals, s as revertOverrides, sa as isSceneFileHeader, si as ShaderAttributeName, sn as InstantiateSceneOptions, so as EnumFieldSpec, sr as MATERIAL_FILE_EXTENSION, ss as assertNever, st as GpuAdapterInfo, t as PrefabApplyOptions, ta as SceneFileComponent, ti as SHADER_INSTANCING_MODES, tn as LoadSceneFileOptions, to as CurveFieldSpec, tr as RenderingQuality, ts as LiteEngine, tt as TweenableValue, u as parseOverridePath, ua as JsonSchemaObject, ui as ShaderDeclaration, un as addComponentFromRecord, uo as FieldOptions, ur as MATERIAL_KINDS, us as CORE_ERROR_MESSAGES, ut as PlatformOs, v as CoroutineYield, va as VEC3_BACKWARD, vi as ShaderUniformDeclaration, vn as createRay, vo as RecordFieldSpec, vr as StandardMaterialDefinition, vt as LogRecord, w as LayersSettings, wa as VEC3_UP, wi as DEFAULT_LAYER, wn as RenderTexture, wo as ComponentHandle, wr as LiteStandardMaterial, wt as HotReloadOptions, x as Extension, xa as VEC3_LEFT, xi as REFLECTION_PROBE_REFRESH_MODES, xn as Mat4Elements, xo as VectorFieldSpec, xr as standardMaterialDefinition, xt as HotReloadHost, y as DeviceLostInfo, ya as VEC3_DOWN, yi as ShaderUniformType, yn as MAT4_IDENTITY, yo as Schema, yr as createMaterialAsset, yt as LogSink, z as TimeSettings, za as Vec2Like, zi as decodeProps, zn as RenderingFeature, zo as BatchHandle, zr as PixelTextureOptions, zt as ComponentInit } from "./prefab-overrides-76IhcF-e.js";
|
|
2
|
-
import { AnimationGroup, AssetContainer, DirectionalLight, EngineContext, EnvironmentTextures, Font, HemisphericLight,
|
|
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-CS8_cG66.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
|
|
@@ -2624,445 +2560,6 @@ export declare function createFontLoader(): AssetLoader<FontAsset>;
|
|
|
2624
2560
|
*/
|
|
2625
2561
|
export declare function createMaterialLoader(): AssetLoader<MaterialAsset>;
|
|
2626
2562
|
//#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
|
-
* How many vertices the geometry has.
|
|
2883
|
-
*
|
|
2884
|
-
* @remarks
|
|
2885
|
-
* Known for a mesh built with {@link MeshAsset.fromData} — headless included — and `0` for a
|
|
2886
|
-
* primitive: Lite generates a primitive's arrays internally and 1.27.0's `Mesh` exposes no vertex
|
|
2887
|
-
* count, only the opaque `MeshGPU` handle it says a user never touches (`index.d.ts` 7230).
|
|
2888
|
-
*
|
|
2889
|
-
* @returns The vertex count, or `0`.
|
|
2890
|
-
*/
|
|
2891
|
-
get vertexCount(): number;
|
|
2892
|
-
/**
|
|
2893
|
-
* How many indices the geometry has — three per triangle.
|
|
2894
|
-
*
|
|
2895
|
-
* @returns The index count, or `0`; see {@link MeshAsset.vertexCount}.
|
|
2896
|
-
*/
|
|
2897
|
-
get indexCount(): number;
|
|
2898
|
-
/**
|
|
2899
|
-
* Re-uploads vertex positions and re-fits the bounds.
|
|
2900
|
-
*
|
|
2901
|
-
* @remarks
|
|
2902
|
-
* Only a mesh from {@link MeshAsset.fromData} can be updated, and only while nothing has cloned it:
|
|
2903
|
-
* Lite refuses to write a vertex buffer with more than one owner, and a `MeshRenderer` clone is a
|
|
2904
|
-
* second owner.
|
|
2905
|
-
*
|
|
2906
|
-
* Lite's `updateMeshPositions` writes the GPU buffer and stops there, so this also copies the range
|
|
2907
|
-
* into the asset's own position array — the one Lite retained and CPU picking reads — and rewrites
|
|
2908
|
-
* the bounds from the whole of it, `O(vertexCount)` per call. Passing the asset's own array skips
|
|
2909
|
-
* the copy.
|
|
2910
|
-
*
|
|
2911
|
-
* @param data - Three floats per vertex, read from index 0.
|
|
2912
|
-
* @param vertexOffset - The first vertex to overwrite. Defaults to `0`.
|
|
2913
|
-
* @param vertexCount - How many vertices to write. Defaults to as many as `data` holds.
|
|
2914
|
-
* @throws IgnifxError with code `IGX-0702` when the mesh did not come from
|
|
2915
|
-
* {@link MeshAsset.fromData}, or has been disposed.
|
|
2916
|
-
* @throws IgnifxError with code `IGX-0725` when the range falls outside the mesh or `data` is too
|
|
2917
|
-
* short for it.
|
|
2918
|
-
*
|
|
2919
|
-
* @example
|
|
2920
|
-
* ```ts
|
|
2921
|
-
* const grid = MeshAsset.fromData(app, "grid", { positions, normals, indices });
|
|
2922
|
-
* positions[1] += 0.5;
|
|
2923
|
-
* grid.value.updatePositions(positions);
|
|
2924
|
-
* ```
|
|
2925
|
-
*/
|
|
2926
|
-
updatePositions(data: Float32Array, vertexOffset?: number, vertexCount?: number): void;
|
|
2927
|
-
/**
|
|
2928
|
-
* Re-uploads vertex normals.
|
|
2929
|
-
*
|
|
2930
|
-
* @remarks
|
|
2931
|
-
* The same rules as {@link MeshAsset.updatePositions}, minus the bounds: a normal cannot move a
|
|
2932
|
-
* bounding box. The range is copied into the asset's own normal array so that a later
|
|
2933
|
-
* `updatePositions` sees a consistent mesh.
|
|
2934
|
-
*
|
|
2935
|
-
* @param data - Three floats per vertex.
|
|
2936
|
-
* @param vertexOffset - The first vertex to overwrite. Defaults to `0`.
|
|
2937
|
-
* @param vertexCount - How many vertices to write. Defaults to as many as `data` holds.
|
|
2938
|
-
* @throws IgnifxError with code `IGX-0702` or `IGX-0725`; see
|
|
2939
|
-
* {@link MeshAsset.updatePositions}.
|
|
2940
|
-
*/
|
|
2941
|
-
updateNormals(data: Float32Array, vertexOffset?: number, vertexCount?: number): void;
|
|
2942
|
-
/**
|
|
2943
|
-
* Re-uploads texture coordinates.
|
|
2944
|
-
*
|
|
2945
|
-
* @remarks
|
|
2946
|
-
* Lite makes the upload a **no-op** when the mesh was created without UVs, rather than an error,
|
|
2947
|
-
* so a mesh whose `MeshGeometryData` named none silently ignores this. The range check still runs.
|
|
2948
|
-
*
|
|
2949
|
-
* @param data - Two floats per vertex.
|
|
2950
|
-
* @param vertexOffset - The first vertex to overwrite. Defaults to `0`.
|
|
2951
|
-
* @param vertexCount - How many vertices to write. Defaults to as many as `data` holds.
|
|
2952
|
-
* @throws IgnifxError with code `IGX-0702` or `IGX-0725`; see
|
|
2953
|
-
* {@link MeshAsset.updatePositions}.
|
|
2954
|
-
*/
|
|
2955
|
-
updateUvs(data: Float32Array, vertexOffset?: number, vertexCount?: number): void;
|
|
2956
|
-
/**
|
|
2957
|
-
* Re-uploads vertex colours.
|
|
2958
|
-
*
|
|
2959
|
-
* @remarks
|
|
2960
|
-
* Four floats per vertex, linear RGBA. A no-op on the GPU when the mesh was created without
|
|
2961
|
-
* colours, exactly as {@link MeshAsset.updateUvs} is.
|
|
2962
|
-
*
|
|
2963
|
-
* @param data - Four floats per vertex.
|
|
2964
|
-
* @param vertexOffset - The first vertex to overwrite. Defaults to `0`.
|
|
2965
|
-
* @param vertexCount - How many vertices to write. Defaults to as many as `data` holds.
|
|
2966
|
-
* @throws IgnifxError with code `IGX-0702` or `IGX-0725`; see
|
|
2967
|
-
* {@link MeshAsset.updatePositions}.
|
|
2968
|
-
*/
|
|
2969
|
-
updateColors(data: Float32Array, vertexOffset?: number, vertexCount?: number): void;
|
|
2970
|
-
/**
|
|
2971
|
-
* Releases the template's GPU buffers.
|
|
2972
|
-
*
|
|
2973
|
-
* @remarks
|
|
2974
|
-
* Lite exports no mesh disposer: a mesh's buffers are freed when it leaves its last scene, so the
|
|
2975
|
-
* adapter adds the template to a scene and takes it straight out again
|
|
2976
|
-
* (`src/lite/gpu/mesh.ts`). Clones still in a scene keep the shared buffers alive; what the
|
|
2977
|
-
* template loses is the ability to be cloned again. Calling it twice is a no-op, and it is a
|
|
2978
|
-
* no-op under a headless app, which has no buffers.
|
|
2979
|
-
*/
|
|
2980
|
-
dispose(): void;
|
|
2981
|
-
/** Releases the template when the asset leaves a `using` block. */
|
|
2982
|
-
[Symbol.dispose](): void;
|
|
2983
|
-
/**
|
|
2984
|
-
* Creates a box template and publishes it.
|
|
2985
|
-
*
|
|
2986
|
-
* @param app - The app whose engine uploads the geometry and whose asset service holds the handle.
|
|
2987
|
-
* @param options - A uniform `size`, or per-axis dimensions.
|
|
2988
|
-
* @returns The handle, with one holder — the caller.
|
|
2989
|
-
*
|
|
2990
|
-
* @example
|
|
2991
|
-
* ```ts
|
|
2992
|
-
* const box = MeshAsset.box(app, { width: 2, height: 1, depth: 3 });
|
|
2993
|
-
* ```
|
|
2994
|
-
*/
|
|
2995
|
-
static box(app: App, options?: BoxMeshOptions): AssetHandle<MeshAsset>;
|
|
2996
|
-
/**
|
|
2997
|
-
* Creates a sphere template and publishes it.
|
|
2998
|
-
*
|
|
2999
|
-
* @param app - The app that owns the engine and the asset service.
|
|
3000
|
-
* @param options - Diameter and ring count.
|
|
3001
|
-
* @returns The handle, with one holder.
|
|
3002
|
-
*/
|
|
3003
|
-
static sphere(app: App, options?: SphereMeshOptions): AssetHandle<MeshAsset>;
|
|
3004
|
-
/**
|
|
3005
|
-
* Creates a quad template in the XY plane and publishes it.
|
|
3006
|
-
*
|
|
3007
|
-
* @param app - The app that owns the engine and the asset service.
|
|
3008
|
-
* @param options - A uniform `size`, or width and height.
|
|
3009
|
-
* @returns The handle, with one holder.
|
|
3010
|
-
*/
|
|
3011
|
-
static plane(app: App, options?: PlaneMeshOptions): AssetHandle<MeshAsset>;
|
|
3012
|
-
/**
|
|
3013
|
-
* Creates a subdivided grid in the XZ plane and publishes it.
|
|
3014
|
-
*
|
|
3015
|
-
* @param app - The app that owns the engine and the asset service.
|
|
3016
|
-
* @param options - Width, depth, subdivisions, and UV scale.
|
|
3017
|
-
* @returns The handle, with one holder.
|
|
3018
|
-
*/
|
|
3019
|
-
static ground(app: App, options?: GroundMeshOptions): AssetHandle<MeshAsset>;
|
|
3020
|
-
/**
|
|
3021
|
-
* Creates a cylinder template standing along Y and publishes it.
|
|
3022
|
-
*
|
|
3023
|
-
* @param app - The app that owns the engine and the asset service.
|
|
3024
|
-
* @param options - Height, diameters, and tessellation.
|
|
3025
|
-
* @returns The handle, with one holder.
|
|
3026
|
-
*/
|
|
3027
|
-
static cylinder(app: App, options?: CylinderMeshOptions): AssetHandle<MeshAsset>;
|
|
3028
|
-
/**
|
|
3029
|
-
* Creates a capsule template standing along Y and publishes it.
|
|
3030
|
-
*
|
|
3031
|
-
* @param app - The app that owns the engine and the asset service.
|
|
3032
|
-
* @param options - Total height, radius, and tessellation.
|
|
3033
|
-
* @returns The handle, with one holder.
|
|
3034
|
-
*/
|
|
3035
|
-
static capsule(app: App, options?: CapsuleMeshOptions): AssetHandle<MeshAsset>;
|
|
3036
|
-
/**
|
|
3037
|
-
* Creates a torus template in the XZ plane and publishes it.
|
|
3038
|
-
*
|
|
3039
|
-
* @param app - The app that owns the engine and the asset service.
|
|
3040
|
-
* @param options - Diameter, thickness, and tessellation.
|
|
3041
|
-
* @returns The handle, with one holder.
|
|
3042
|
-
*/
|
|
3043
|
-
static torus(app: App, options?: TorusMeshOptions): AssetHandle<MeshAsset>;
|
|
3044
|
-
/**
|
|
3045
|
-
* Creates a template from raw vertex data and publishes it.
|
|
3046
|
-
*
|
|
3047
|
-
* @param app - The app that owns the engine and the asset service.
|
|
3048
|
-
* @param name - A human-readable name.
|
|
3049
|
-
* @param data - Positions, normals, indices, and any of the four optional attributes. Lite keeps
|
|
3050
|
-
* references to the arrays; a caller that means to edit them afterwards does so through the
|
|
3051
|
-
* `update*` methods, which keep Lite's own copy and its bounds in step.
|
|
3052
|
-
* @returns The handle, with one holder.
|
|
3053
|
-
*
|
|
3054
|
-
* @example
|
|
3055
|
-
* ```ts
|
|
3056
|
-
* const triangle = MeshAsset.fromData(app, "triangle", {
|
|
3057
|
-
* positions: Float32Array.from([0, 0, 0, 1, 0, 0, 0, 1, 0]),
|
|
3058
|
-
* normals: Float32Array.from([0, 0, -1, 0, 0, -1, 0, 0, -1]),
|
|
3059
|
-
* indices: Uint32Array.from([0, 1, 2]),
|
|
3060
|
-
* });
|
|
3061
|
-
* ```
|
|
3062
|
-
*/
|
|
3063
|
-
static fromData(app: App, name: string, data: MeshGeometryData): AssetHandle<MeshAsset>;
|
|
3064
|
-
}
|
|
3065
|
-
//#endregion
|
|
3066
2563
|
//#region src/render/loaders/mesh-loader.d.ts
|
|
3067
2564
|
/**
|
|
3068
2565
|
* Builds the `mesh` loader: `.mesh.json` to `MeshAsset` (ADR-0029).
|
|
@@ -3371,7 +2868,8 @@ export declare function createModelLoader(): AssetLoader<ModelAsset>;
|
|
|
3371
2868
|
*
|
|
3372
2869
|
* `.png`, `.jpg`, `.jpeg` and `.webp` go to `loadTexture2D` and the browser's image decoder.
|
|
3373
2870
|
* `.ktx2` goes to Lite's KTX2 loader and `.basis` to its Basis loader, which transcode to the
|
|
3374
|
-
* device's best compressed format (`
|
|
2871
|
+
* device's best compressed format (a `.basis` file fails with `IGX-0509` wherever Lite's CDN-only
|
|
2872
|
+
* transcoder cannot load, see `assertBasisLoadable`) (`src/lite/gpu/decoders.ts` lists the targets); handing either
|
|
3375
2873
|
* to `createImageBitmap` fails with "The source image could not be decoded". The asset type stays
|
|
3376
2874
|
* `texture` for all six, so the choice is made here, from the address's extension — the one name a
|
|
3377
2875
|
* manifest entry, a hashed build URL and a hand-written `{ type: "texture" }` load all keep. Before
|
|
@@ -3466,174 +2964,6 @@ export declare const MESH_PRIMITIVE_OPTIONS: MeshPrimitiveOptionKinds;
|
|
|
3466
2964
|
*/
|
|
3467
2965
|
export declare function meshFileJsonSchema(): JsonSchemaObject;
|
|
3468
2966
|
//#endregion
|
|
3469
|
-
//#region src/render/mesh-renderer.d.ts
|
|
3470
|
-
/**
|
|
3471
|
-
* The `MeshRenderer` component (`docs/architecture/07-rendering.md` §2.3): one clone of a
|
|
3472
|
-
* `MeshAsset`, drawn with a `MaterialAsset`.
|
|
3473
|
-
*
|
|
3474
|
-
* ## Cloning, not sharing
|
|
3475
|
-
*
|
|
3476
|
-
* The asset holds the template; the renderer holds a clone parented under the entity's node.
|
|
3477
|
-
* `cloneTransformNode` shallow-clones the mesh — fresh transform, **same** `_gpu` wrapper with its
|
|
3478
|
-
* reference count bumped — so a hundred renderers of one asset upload one set of vertex buffers
|
|
3479
|
-
* (ADR-0002 Validation). Removing the component calls `removeFromScene` on the clone, which is what
|
|
3480
|
-
* frees its share.
|
|
3481
|
-
*
|
|
3482
|
-
* ## Hiding is `visible`, never removal
|
|
3483
|
-
*
|
|
3484
|
-
* Lite disposes a mesh that leaves its last scene, so `enabled = false` must not remove anything.
|
|
3485
|
-
* `visible` is derived from `entity.activeInHierarchy && component.enabled` and written on the
|
|
3486
|
-
* clone's subtree; the mesh stays in the scene, keeps its buffers, and comes back the moment the
|
|
3487
|
-
* flag flips. That is `07-rendering.md` §2.3's rule, and the browser test asserts both halves: the
|
|
3488
|
-
* pixel returns to the clear colour, and the mesh is still in the scene.
|
|
3489
|
-
*
|
|
3490
|
-
* `displayHidden` hides the same way, and makes the clone unpickable too, but is not a field: scene
|
|
3491
|
-
* files do not save it, so a system
|
|
3492
|
-
* that chooses what is drawn without changing the document (a `LodGroup` in an edit-mode app,
|
|
3493
|
-
* ADR-0028) switches it instead of `enabled`.
|
|
3494
|
-
*
|
|
3495
|
-
* ## Decisions the documents left open
|
|
3496
|
-
*
|
|
3497
|
-
* - **The clone's Lite `id` is the entity's uid.** Lite's light include/exclude lists match on
|
|
3498
|
-
* `Mesh.id` strings (`lib/render/lights-ubo.js`), and §2.2 maps `Light.includeOnly` onto them
|
|
3499
|
-
* from *entity* references. The uid is the one identifier both sides can name.
|
|
3500
|
-
* - **`materials` beyond the first is accepted and ignored.** §2.3 says "one per submesh", but
|
|
3501
|
-
* Lite's `Mesh.material` is a single value and Lite has no submesh material list in 1.27.0, so
|
|
3502
|
-
* there is nothing for the extra entries to drive. The field keeps its array shape so files do
|
|
3503
|
-
* not have to change if submeshes land; the renderer uses index 0, or the default material when
|
|
3504
|
-
* the array is empty.
|
|
3505
|
-
*
|
|
3506
|
-
* ## Headless
|
|
3507
|
-
*
|
|
3508
|
-
* A headless `MeshAsset` carries no geometry, so there is nothing to clone: the component keeps its
|
|
3509
|
-
* fields, reports `lite.mesh === null`, and touches no scene (`07-rendering.md` §6).
|
|
3510
|
-
*/
|
|
3511
|
-
/**
|
|
3512
|
-
* Draws a mesh asset with a material (`docs/architecture/07-rendering.md` §2.3).
|
|
3513
|
-
*
|
|
3514
|
-
* @example
|
|
3515
|
-
* ```ts
|
|
3516
|
-
* const box = MeshAsset.box(app, { size: 1 }); // release it once nothing draws it
|
|
3517
|
-
* const cube = world.createEntity("Cube");
|
|
3518
|
-
* cube.addComponent(MeshRenderer, { mesh: box, castShadows: true });
|
|
3519
|
-
* ```
|
|
3520
|
-
*
|
|
3521
|
-
* @public
|
|
3522
|
-
*/
|
|
3523
|
-
export declare class MeshRenderer extends Component implements ComponentHooks {
|
|
3524
|
-
#private;
|
|
3525
|
-
/** The namespaced registration id. */
|
|
3526
|
-
static typeId: string;
|
|
3527
|
-
/** What the component does, in one line, for an inspector. */
|
|
3528
|
-
static description: string;
|
|
3529
|
-
/** Several renderers on one entity draw several meshes from one transform, which is useful. */
|
|
3530
|
-
static allowMultiple: boolean;
|
|
3531
|
-
/** The serialized field declarations (ADR-0004). */
|
|
3532
|
-
static schema: Schema;
|
|
3533
|
-
mesh: AssetHandle<MeshAsset> | null;
|
|
3534
|
-
materials: (AssetHandle<MaterialAsset> | null)[];
|
|
3535
|
-
castShadows: boolean;
|
|
3536
|
-
receiveShadows: boolean;
|
|
3537
|
-
renderOrder: number;
|
|
3538
|
-
pickable: boolean;
|
|
3539
|
-
/** Applies the schema defaults, exactly as `Component.define` would. */
|
|
3540
|
-
constructor();
|
|
3541
|
-
/**
|
|
3542
|
-
* The Babylon Lite mesh this renderer draws. Unstable escape hatch
|
|
3543
|
-
* (`docs/architecture/00-overview.md` §3).
|
|
3544
|
-
*
|
|
3545
|
-
* @returns The clone, or `null` when there is nothing to draw.
|
|
3546
|
-
*/
|
|
3547
|
-
get lite(): {
|
|
3548
|
-
readonly mesh: LiteSceneNode | null;
|
|
3549
|
-
};
|
|
3550
|
-
/**
|
|
3551
|
-
* A display-only hide: while `true` the mesh is neither drawn nor picked, whatever `enabled` and
|
|
3552
|
-
* `pickable` say.
|
|
3553
|
-
*
|
|
3554
|
-
* @remarks
|
|
3555
|
-
* It is not a schema field, so scene files do not save it, a serializer never reads it, and
|
|
3556
|
-
* `enabled` keeps its authored value. That makes it the switch for a system that chooses what is
|
|
3557
|
-
* drawn without changing the document: `@ignifx/3d`'s `LodGroup` uses it in place of `enabled` in
|
|
3558
|
-
* an edit-mode app (ADR-0028). It starts `false` and takes effect at the next render sync;
|
|
3559
|
-
* {@link MeshRenderer.isVisible} reports the outcome. Lite's pickers ignore visibility, so the
|
|
3560
|
-
* clone is also made unpickable while hidden: `app.renderer.pickAsync` and `world.raycastRender`
|
|
3561
|
-
* neither return it nor let it occlude, as with `pickable: false`.
|
|
3562
|
-
*
|
|
3563
|
-
* It is one flag with one owner, not a count. In an edit-mode app the `LodGroup` that lists the
|
|
3564
|
-
* renderer as a level owns it: the group sets and clears it whenever it switches, so a value
|
|
3565
|
-
* written by anything else lasts only until then. A renderer belongs to at most one `LodGroup`; a
|
|
3566
|
-
* second group that lists it leaves it alone and warns with `IGX-1217`.
|
|
3567
|
-
*
|
|
3568
|
-
* @returns `true` while the mesh is hidden for display.
|
|
3569
|
-
*
|
|
3570
|
-
* @example
|
|
3571
|
-
* ```ts
|
|
3572
|
-
* renderer.displayHidden = true; // not drawn, and `renderer.enabled` is still `true`
|
|
3573
|
-
* ```
|
|
3574
|
-
*/
|
|
3575
|
-
get displayHidden(): boolean;
|
|
3576
|
-
/**
|
|
3577
|
-
* Hides the mesh for display, or shows it again; `enabled` is not touched.
|
|
3578
|
-
*
|
|
3579
|
-
* @param value - `true` to hide it.
|
|
3580
|
-
*/
|
|
3581
|
-
set displayHidden(value: boolean);
|
|
3582
|
-
/**
|
|
3583
|
-
* Whether the mesh is currently drawn: its own `enabled` flag and its entity's
|
|
3584
|
-
* `activeInHierarchy`, less {@link MeshRenderer.displayHidden}, materialised onto Lite's
|
|
3585
|
-
* `visible`.
|
|
3586
|
-
*
|
|
3587
|
-
* @returns `true` when the clone is visible.
|
|
3588
|
-
*/
|
|
3589
|
-
get isVisible(): boolean;
|
|
3590
|
-
/** Nothing to do at attach: the clone is built on the first sync, once `mesh` has been decoded. */
|
|
3591
|
-
onAttach(): void;
|
|
3592
|
-
/** Removes the clone from the scene, releasing its share of the template's buffers. */
|
|
3593
|
-
onDetach(): void;
|
|
3594
|
-
/**
|
|
3595
|
-
* Rebuilds the clone when `mesh` changed, then writes every other field that changed. The
|
|
3596
|
-
* `PreRender` system calls it.
|
|
3597
|
-
*
|
|
3598
|
-
* @param renderer - The rendering service, for the scene and the default material.
|
|
3599
|
-
* @returns `true` when the scene's renderable set changed, which the system coalesces into one
|
|
3600
|
-
* `rebuildSceneRenderables`.
|
|
3601
|
-
*
|
|
3602
|
-
* @internal
|
|
3603
|
-
*/
|
|
3604
|
-
sync(renderer: RendererImpl): boolean;
|
|
3605
|
-
/**
|
|
3606
|
-
* Whether the material this renderer draws with is a `"shader"` material.
|
|
3607
|
-
*
|
|
3608
|
-
* @remarks
|
|
3609
|
-
* The render sync system asks before it builds an ESM caster list: Babylon Lite 1.27.0 has no ESM
|
|
3610
|
-
* shadow view for the shader family and writes the fragment colour's red channel into the map
|
|
3611
|
-
* (`lib/shadow/esm-directional-shadow-generator.js` 230–245), so such a mesh is left out of it and
|
|
3612
|
-
* reported once with `IGX-0724`. PCF and CSM generators take it.
|
|
3613
|
-
*
|
|
3614
|
-
* @returns `true` when the first declared material is loaded and is a shader material.
|
|
3615
|
-
*
|
|
3616
|
-
* @internal
|
|
3617
|
-
*/
|
|
3618
|
-
get usesShaderMaterial(): boolean;
|
|
3619
|
-
/**
|
|
3620
|
-
* Appends this renderer's mesh to a shadow caster list, when it casts.
|
|
3621
|
-
*
|
|
3622
|
-
* @param out - The caster list being built.
|
|
3623
|
-
*
|
|
3624
|
-
* @internal
|
|
3625
|
-
*/
|
|
3626
|
-
collectCasters(out: LiteMesh[]): void;
|
|
3627
|
-
/**
|
|
3628
|
-
* Whether the caster contribution of this renderer changed since the last frame.
|
|
3629
|
-
*
|
|
3630
|
-
* @returns `true` when `castShadows` or visibility moved.
|
|
3631
|
-
*
|
|
3632
|
-
* @internal
|
|
3633
|
-
*/
|
|
3634
|
-
consumeCasterChange(): boolean;
|
|
3635
|
-
}
|
|
3636
|
-
//#endregion
|
|
3637
2967
|
//#region src/render/loaders/shader-loader.d.ts
|
|
3638
2968
|
/**
|
|
3639
2969
|
* The `shader` asset loader: `.wgsl` to `ShaderAsset`
|
|
@@ -4607,6 +3937,129 @@ export declare class PostProcessStack extends Component implements ComponentHook
|
|
|
4607
3937
|
plannedChain(): readonly string[];
|
|
4608
3938
|
}
|
|
4609
3939
|
//#endregion
|
|
3940
|
+
//#region src/render/light-probe-bake.d.ts
|
|
3941
|
+
/**
|
|
3942
|
+
* Whether a light-probe bake adds the light a probe receives straight from directional, point and
|
|
3943
|
+
* spot lights. See {@link LightProbeBakeOptions.directLight}.
|
|
3944
|
+
*
|
|
3945
|
+
* @beta
|
|
3946
|
+
*/
|
|
3947
|
+
type LightProbeBakeDirectLight = "include" | "exclude";
|
|
3948
|
+
/**
|
|
3949
|
+
* What {@link bakeLightProbes} bakes.
|
|
3950
|
+
*
|
|
3951
|
+
* @beta
|
|
3952
|
+
*/
|
|
3953
|
+
interface LightProbeBakeOptions {
|
|
3954
|
+
/** The world position of probe `(0, 0, 0)`. */
|
|
3955
|
+
readonly origin: Vec3Like;
|
|
3956
|
+
/** The distance between neighbouring probes along each axis, in metres. */
|
|
3957
|
+
readonly cellSize: Vec3Like;
|
|
3958
|
+
/** How many probes along X, Y and Z. */
|
|
3959
|
+
readonly counts: {
|
|
3960
|
+
readonly x: number;
|
|
3961
|
+
readonly y: number;
|
|
3962
|
+
readonly z: number;
|
|
3963
|
+
};
|
|
3964
|
+
/** Rays per probe, a whole number from 1 to 4096. Defaults to `128`; more is smoother and slower. */
|
|
3965
|
+
readonly rays?: number;
|
|
3966
|
+
/** How far a ray looks for a surface, in metres; finite and positive. Defaults to `100`. */
|
|
3967
|
+
readonly maxDistance?: number;
|
|
3968
|
+
/** The linear radiance of rays that hit nothing, before hemispheric lights. Defaults to black. */
|
|
3969
|
+
readonly sky?: ColorLike;
|
|
3970
|
+
/**
|
|
3971
|
+
* Whether each probe also stores the light it receives straight from the directional, point and
|
|
3972
|
+
* spot lights it sees. Defaults to `"exclude"`.
|
|
3973
|
+
*
|
|
3974
|
+
* @remarks
|
|
3975
|
+
* Those lights keep lighting the scene in real time while a `LightProbeVolume` is on, so a probe
|
|
3976
|
+
* that also holds their direct light counts it twice. `"exclude"` bakes only the bounce: the
|
|
3977
|
+
* light that reached surfaces from those lights (shadowed) and came back, plus the sky and the
|
|
3978
|
+
* hemispheric lights. Use `"include"` when the baked lights will be disabled at run time, or to
|
|
3979
|
+
* read a probe's total light with `sampleLightProbes`.
|
|
3980
|
+
*/
|
|
3981
|
+
readonly directLight?: LightProbeBakeDirectLight;
|
|
3982
|
+
/** Stops the bake between probes; the promise then rejects with the signal's reason. */
|
|
3983
|
+
readonly signal?: AbortSignal;
|
|
3984
|
+
/**
|
|
3985
|
+
* Called after each probe.
|
|
3986
|
+
*
|
|
3987
|
+
* @param done - Probes baked so far.
|
|
3988
|
+
* @param total - Probes in the grid.
|
|
3989
|
+
*/
|
|
3990
|
+
readonly onProgress?: (done: number, total: number) => void;
|
|
3991
|
+
}
|
|
3992
|
+
/**
|
|
3993
|
+
* The result of a bake.
|
|
3994
|
+
*
|
|
3995
|
+
* @beta
|
|
3996
|
+
*/
|
|
3997
|
+
interface LightProbeBakeResult {
|
|
3998
|
+
/** The grid, ready for `createLightProbeAsset` or `writeLightProbeFile`. */
|
|
3999
|
+
readonly data: LightProbeData;
|
|
4000
|
+
/** How many triangles the rays were traced against. */
|
|
4001
|
+
readonly triangles: number;
|
|
4002
|
+
/** How many enabled mesh renderers were skipped because their triangles are not on the CPU. */
|
|
4003
|
+
readonly skipped: number;
|
|
4004
|
+
}
|
|
4005
|
+
/**
|
|
4006
|
+
* Bakes a light-probe grid from a world's mesh renderers and lights, on the CPU.
|
|
4007
|
+
*
|
|
4008
|
+
* @remarks
|
|
4009
|
+
* One bounce, first-order harmonics, deterministic. Only meshes built with `MeshAsset.fromData`
|
|
4010
|
+
* cast and bounce light (see {@link LightProbeBakeResult.skipped}). By default a probe holds the
|
|
4011
|
+
* bounce but not the direct light of directional, point and spot lights, which keep lighting the
|
|
4012
|
+
* scene in real time (see {@link LightProbeBakeOptions.directLight}). Cost grows with probes × rays ×
|
|
4013
|
+
* triangles; it is meant for small scenes and tools, not for every frame.
|
|
4014
|
+
*
|
|
4015
|
+
* The bake is asynchronous: it yields to the host after every ~8 ms of work, reports progress
|
|
4016
|
+
* through `onProgress` after each probe, and stops at the next probe once `signal` aborts.
|
|
4017
|
+
*
|
|
4018
|
+
* @param world - The world to bake. Its meshes and lights are read once, when the bake starts.
|
|
4019
|
+
* @param options - The grid, the quality, and the cancellation and progress hooks.
|
|
4020
|
+
* @returns The grid and what was traced.
|
|
4021
|
+
* @throws IgnifxError with code `IGX-0734`, before tracing anything, for a grid the `.probes.json`
|
|
4022
|
+
* format cannot hold (whole counts, `counts.x` ≤ 1024, `counts.y × counts.z` ≤ 4096, finite
|
|
4023
|
+
* `origin` and positive `cellSize`), `rays` outside 1–4096, a `maxDistance` that is not finite
|
|
4024
|
+
* and positive, or a `directLight` other than `"include"` or `"exclude"`. The promise rejects with `signal.reason` when the bake is aborted.
|
|
4025
|
+
*
|
|
4026
|
+
* @example
|
|
4027
|
+
* ```ts
|
|
4028
|
+
* const baked = await bakeLightProbes(world, {
|
|
4029
|
+
* origin: { x: -4, y: 0.5, z: -4 },
|
|
4030
|
+
* cellSize: { x: 2, y: 2, z: 2 },
|
|
4031
|
+
* counts: { x: 5, y: 2, z: 5 },
|
|
4032
|
+
* });
|
|
4033
|
+
* world.createEntity("Probes").addComponent(LightProbeVolume, { probes: createLightProbeAsset(app, baked.data) });
|
|
4034
|
+
* ```
|
|
4035
|
+
*
|
|
4036
|
+
* @beta
|
|
4037
|
+
*/
|
|
4038
|
+
export declare function bakeLightProbes(world: World, options: LightProbeBakeOptions): Promise<LightProbeBakeResult>;
|
|
4039
|
+
//#endregion
|
|
4040
|
+
//#region src/render/loaders/light-probe-loader.d.ts
|
|
4041
|
+
/**
|
|
4042
|
+
* Builds the loader for `.probes.json` light-probe grids (GI Phase 2, step B2). It needs no device,
|
|
4043
|
+
* so a grid loads in Node too.
|
|
4044
|
+
*
|
|
4045
|
+
* @returns The loader to register with `ctx.registerAssetLoader`.
|
|
4046
|
+
*
|
|
4047
|
+
* @beta
|
|
4048
|
+
*/
|
|
4049
|
+
export declare function createLightProbeLoader(): AssetLoader<LightProbeAsset>;
|
|
4050
|
+
//#endregion
|
|
4051
|
+
//#region src/render/loaders/lightmap-loader.d.ts
|
|
4052
|
+
/**
|
|
4053
|
+
* Builds the loader for `.lightmap.json` lightmaps (GI Phase 2, step B3). The texture the file names
|
|
4054
|
+
* loads as a dependency, so it is released with the lightmap; a texture that fails to load fails
|
|
4055
|
+
* the lightmap.
|
|
4056
|
+
*
|
|
4057
|
+
* @returns The loader to register with `ctx.registerAssetLoader`.
|
|
4058
|
+
*
|
|
4059
|
+
* @beta
|
|
4060
|
+
*/
|
|
4061
|
+
export declare function createLightmapLoader(): AssetLoader<LightmapAsset>;
|
|
4062
|
+
//#endregion
|
|
4610
4063
|
//#region src/render/schemas.d.ts
|
|
4611
4064
|
/**
|
|
4612
4065
|
* The documentation harness's view of everything `@ignifx/core` declares
|
|
@@ -4677,6 +4130,22 @@ export declare function describeEnvironmentFileFormat(): SchemaDescription;
|
|
|
4677
4130
|
* @public
|
|
4678
4131
|
*/
|
|
4679
4132
|
export declare function describeMeshFileFormat(): SchemaDescription;
|
|
4133
|
+
/**
|
|
4134
|
+
* Describes the `.probes.json` light-probe grid format (GI Phase 2, step B2).
|
|
4135
|
+
*
|
|
4136
|
+
* @returns The description of the top-level file fields.
|
|
4137
|
+
*
|
|
4138
|
+
* @beta
|
|
4139
|
+
*/
|
|
4140
|
+
export declare function describeLightProbeFileFormat(): SchemaDescription;
|
|
4141
|
+
/**
|
|
4142
|
+
* Describes the `.lightmap.json` lightmap format (GI Phase 2, step B3).
|
|
4143
|
+
*
|
|
4144
|
+
* @returns The description of the top-level file fields.
|
|
4145
|
+
*
|
|
4146
|
+
* @beta
|
|
4147
|
+
*/
|
|
4148
|
+
export declare function describeLightmapFileFormat(): SchemaDescription;
|
|
4680
4149
|
//#endregion
|
|
4681
4150
|
//#region src/serialization/instance-lookup.d.ts
|
|
4682
4151
|
/**
|
|
@@ -5824,5 +5293,5 @@ export declare function transformSchema(): Schema;
|
|
|
5824
5293
|
*/
|
|
5825
5294
|
export declare const TWEEN_SYSTEM_ORDER = -100;
|
|
5826
5295
|
//#endregion
|
|
5827
|
-
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, LITE_SYSTEM_UNIFORM_NAMES, LOG_LEVEL_SEVERITY, LayerMask, type LayerMaskFieldSpec, LayerTable, type LayersSettings, 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, 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, sceneFileJsonSchema, shaderMaterialDefinition, standardMaterialDefinition, storageInternals, stringifySceneFile, toJsonSchema };
|
|
5296
|
+
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, LightProbeAsset, type LightProbeBakeDirectLight, type LightProbeBakeOptions, type LightProbeBakeResult, 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 };
|
|
5828
5297
|
//# sourceMappingURL=index.d.ts.map
|