@zephyr3d/scene 0.9.3 → 0.9.4
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/animation/spring/spring_particle.js +4 -4
- package/dist/animation/spring/spring_particle.js.map +1 -1
- package/dist/app/engine.js +119 -71
- package/dist/app/engine.js.map +1 -1
- package/dist/asset/assetmanager.js +296 -244
- package/dist/asset/assetmanager.js.map +1 -1
- package/dist/asset/loaders/gltf/gltf_loader.js +1 -0
- package/dist/asset/loaders/gltf/gltf_loader.js.map +1 -1
- package/dist/asset/model.js +57 -57
- package/dist/asset/model.js.map +1 -1
- package/dist/index.d.ts +684 -33
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/dist/material/material.js +1 -1
- package/dist/material/material.js.map +1 -1
- package/dist/material/msdf_text.js +180 -0
- package/dist/material/msdf_text.js.map +1 -0
- package/dist/material/msdf_text_sprite.js +64 -0
- package/dist/material/msdf_text_sprite.js.map +1 -0
- package/dist/material/pbrblueprint.js +123 -108
- package/dist/material/pbrblueprint.js.map +1 -1
- package/dist/material/shader/helper.js +277 -277
- package/dist/material/shader/helper.js.map +1 -1
- package/dist/material/sprite_sdf.js +106 -0
- package/dist/material/sprite_sdf.js.map +1 -0
- package/dist/posteffect/ssr.js +1 -0
- package/dist/posteffect/ssr.js.map +1 -1
- package/dist/render/abuffer_oit.js +1 -0
- package/dist/render/abuffer_oit.js.map +1 -1
- package/dist/render/cluster_light.js.map +1 -1
- package/dist/render/cull_visitor.js +28 -0
- package/dist/render/cull_visitor.js.map +1 -1
- package/dist/render/drawable.js.map +1 -1
- package/dist/render/drawable_mixin.js +1 -0
- package/dist/render/drawable_mixin.js.map +1 -1
- package/dist/render/fbm_wavegenerator.js +1 -0
- package/dist/render/fbm_wavegenerator.js.map +1 -1
- package/dist/render/gerstner_wavegenerator.js +1 -0
- package/dist/render/gerstner_wavegenerator.js.map +1 -1
- package/dist/render/globalbindgroup_allocator.js +1 -0
- package/dist/render/globalbindgroup_allocator.js.map +1 -1
- package/dist/render/render_queue.js +1 -0
- package/dist/render/render_queue.js.map +1 -1
- package/dist/scene/basesprite.js +1 -5
- package/dist/scene/basesprite.js.map +1 -1
- package/dist/scene/batchgroup.js +29 -17
- package/dist/scene/batchgroup.js.map +1 -1
- package/dist/scene/environment.js +1 -0
- package/dist/scene/environment.js.map +1 -1
- package/dist/scene/mesh.js +86 -87
- package/dist/scene/mesh.js.map +1 -1
- package/dist/scene/meshdrawable.js +96 -0
- package/dist/scene/meshdrawable.js.map +1 -0
- package/dist/scene/msdftext.js +341 -0
- package/dist/scene/msdftext.js.map +1 -0
- package/dist/scene/msdftextsprite.js +349 -0
- package/dist/scene/msdftextsprite.js.map +1 -0
- package/dist/scene/particlesys.js +1 -0
- package/dist/scene/particlesys.js.map +1 -1
- package/dist/scene/scene.js +1 -0
- package/dist/scene/scene.js.map +1 -1
- package/dist/scene/scene_node.js +234 -228
- package/dist/scene/scene_node.js.map +1 -1
- package/dist/scene/sdftextsprite.js +322 -0
- package/dist/scene/sdftextsprite.js.map +1 -0
- package/dist/scene/terrain-cm/grass.js +1 -0
- package/dist/scene/terrain-cm/grass.js.map +1 -1
- package/dist/scene/terrain-cm/grassmaterial.js +1 -0
- package/dist/scene/terrain-cm/grassmaterial.js.map +1 -1
- package/dist/scene/terrain-cm/terrain-cm.js +1 -0
- package/dist/scene/terrain-cm/terrain-cm.js.map +1 -1
- package/dist/scene/textsprite.js +120 -0
- package/dist/scene/textsprite.js.map +1 -0
- package/dist/scene/water.js +1 -0
- package/dist/scene/water.js.map +1 -1
- package/dist/shadow/shader.js +1 -0
- package/dist/shadow/shader.js.map +1 -1
- package/dist/text/font/font_asset.js +884 -0
- package/dist/text/font/font_asset.js.map +1 -0
- package/dist/text/font/sfnt_reader.js +43 -0
- package/dist/text/font/sfnt_reader.js.map +1 -0
- package/dist/text/msdf/generator.js +417 -0
- package/dist/text/msdf/generator.js.map +1 -0
- package/dist/text/msdf/shape.js +143 -0
- package/dist/text/msdf/shape.js.map +1 -0
- package/dist/text/runtime/msdf_glyph_atlas.js +146 -0
- package/dist/text/runtime/msdf_glyph_atlas.js.map +1 -0
- package/dist/text/runtime/msdf_text_atlas_manager.js +47 -0
- package/dist/text/runtime/msdf_text_atlas_manager.js.map +1 -0
- package/dist/text/runtime/text_layout.js +96 -0
- package/dist/text/runtime/text_layout.js.map +1 -0
- package/dist/utility/blueprint/material/inputs.js +1275 -1091
- package/dist/utility/blueprint/material/inputs.js.map +1 -1
- package/dist/utility/blueprint/material/ir.js +16 -1
- package/dist/utility/blueprint/material/ir.js.map +1 -1
- package/dist/utility/blueprint/material/pbr.js +32 -0
- package/dist/utility/blueprint/material/pbr.js.map +1 -1
- package/dist/utility/serialization/manager.js +321 -277
- package/dist/utility/serialization/manager.js.map +1 -1
- package/dist/utility/serialization/scene/animation.js +2 -0
- package/dist/utility/serialization/scene/animation.js.map +1 -1
- package/dist/utility/serialization/scene/batch.js +2 -0
- package/dist/utility/serialization/scene/batch.js.map +1 -1
- package/dist/utility/serialization/scene/camera.js +2 -0
- package/dist/utility/serialization/scene/camera.js.map +1 -1
- package/dist/utility/serialization/scene/light.js +2 -0
- package/dist/utility/serialization/scene/light.js.map +1 -1
- package/dist/utility/serialization/scene/material.js +1 -0
- package/dist/utility/serialization/scene/material.js.map +1 -1
- package/dist/utility/serialization/scene/mesh.js +2 -0
- package/dist/utility/serialization/scene/mesh.js.map +1 -1
- package/dist/utility/serialization/scene/node.js +2 -0
- package/dist/utility/serialization/scene/node.js.map +1 -1
- package/dist/utility/serialization/scene/particle.js +2 -0
- package/dist/utility/serialization/scene/particle.js.map +1 -1
- package/dist/utility/serialization/scene/primitive.js +1 -0
- package/dist/utility/serialization/scene/primitive.js.map +1 -1
- package/dist/utility/serialization/scene/sprite.js +2 -0
- package/dist/utility/serialization/scene/sprite.js.map +1 -1
- package/dist/utility/serialization/scene/terrain.js +2 -0
- package/dist/utility/serialization/scene/terrain.js.map +1 -1
- package/dist/utility/serialization/scene/text.js +516 -0
- package/dist/utility/serialization/scene/text.js.map +1 -0
- package/dist/utility/serialization/scene/water.js +2 -0
- package/dist/utility/serialization/scene/water.js.map +1 -1
- package/dist/utility/serialization/types.js.map +1 -1
- package/dist/values.js +48 -48
- package/dist/values.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _zephyr3d_device from '@zephyr3d/device';
|
|
2
|
-
import { TextureCube, FrameBuffer, Texture2D, GPUDataBuffer, PrimitiveType, TextureSampler, BindGroupLayout, ProgramBuilder, PBInsideFunctionScope, PBShaderExp, PBGlobalScope, VertexSemantic, StructuredBuffer, VertexAttribFormat, VertexStepMode, IndexBuffer, BindGroup, GPUProgram, RenderStateSet, FaceMode, PBFunctionScope, Texture2DArray, BaseTexture, ShaderTypeFunc, TextureFormat, AbstractDevice, ColorState, SamplerOptions, DeviceBackend, TextureAddressMode, TextureFilterMode } from '@zephyr3d/device';
|
|
2
|
+
import { TextureCube, FrameBuffer, Texture2D, GPUDataBuffer, PrimitiveType, TextureSampler, BindGroupLayout, ProgramBuilder, PBInsideFunctionScope, PBShaderExp, PBGlobalScope, VertexSemantic, StructuredBuffer, VertexAttribFormat, VertexStepMode, IndexBuffer, BindGroup, GPUProgram, RenderStateSet, FaceMode, PBFunctionScope, Texture2DArray, BaseTexture, ShaderTypeFunc, TextureFormat, AbstractDevice, ColorState, SamplerOptions, TextureAtlasManager, DeviceBackend, TextureAddressMode, TextureFilterMode } from '@zephyr3d/device';
|
|
3
3
|
import * as _zephyr3d_base from '@zephyr3d/base';
|
|
4
4
|
import { Disposable, TypedArray, Ray, AABB, Matrix4x4, Plane, Frustum, Vector3, Nullable, GenericConstructor, RequireOptionals, Immutable, Vector4, Clonable, IDisposable, Vector2, IEventTarget, Observable, DRef, Rect, CubeFace, Quaternion, Interpolator, InterpolationMode, InterpolatorScalar, DeepPartial, VFS, HttpRequest, WriteOptions, ReadOptions, DeepRequireOptionals } from '@zephyr3d/base';
|
|
5
5
|
import { DecoderModule, Metadata as Metadata$1 } from 'draco3d';
|
|
@@ -310,6 +310,8 @@ type PropertyAccessorOptions = {
|
|
|
310
310
|
minValue?: number;
|
|
311
311
|
/** Maximum numeric value (for sliders/spinners). */
|
|
312
312
|
maxValue?: number;
|
|
313
|
+
/** Whether string property is multiline. */
|
|
314
|
+
multiline?: boolean;
|
|
313
315
|
/** Step/speed for numeric editing UI. */
|
|
314
316
|
speed?: number;
|
|
315
317
|
/** Whether the property can be animated/keyframed. */
|
|
@@ -3254,6 +3256,9 @@ declare class MaterialBlueprintIR {
|
|
|
3254
3256
|
private rotateAboutAxis;
|
|
3255
3257
|
/** Converts a panner node to IR */
|
|
3256
3258
|
private panner;
|
|
3259
|
+
private vertexOutput;
|
|
3260
|
+
private vertexIndex;
|
|
3261
|
+
private instanceIndex;
|
|
3257
3262
|
/** Converts a vertex color input node to IR */
|
|
3258
3263
|
private vertexColor;
|
|
3259
3264
|
/** Converts a vertex UV input node to IR */
|
|
@@ -3961,6 +3966,57 @@ declare class StandardSpriteMaterial extends SpriteMaterial implements Clonable<
|
|
|
3961
3966
|
protected onDispose(): void;
|
|
3962
3967
|
}
|
|
3963
3968
|
|
|
3969
|
+
/**
|
|
3970
|
+
* Atlas-based MSDF text material.
|
|
3971
|
+
*
|
|
3972
|
+
* @public
|
|
3973
|
+
*/
|
|
3974
|
+
declare class MSDFTextMaterial extends MeshMaterial implements Clonable<MSDFTextMaterial> {
|
|
3975
|
+
static FEATURE_TEXT_ATLAS: number;
|
|
3976
|
+
private _atlas;
|
|
3977
|
+
private _textColor;
|
|
3978
|
+
private _outlineColor;
|
|
3979
|
+
private _distanceRange;
|
|
3980
|
+
private _atlasSize;
|
|
3981
|
+
private _smallGlyphThreshold;
|
|
3982
|
+
private _outlineWidth;
|
|
3983
|
+
constructor();
|
|
3984
|
+
get atlasTexture(): _zephyr3d_base.Nullable<Texture2D<unknown>>;
|
|
3985
|
+
set atlasTexture(tex: _zephyr3d_base.Nullable<Texture2D<unknown>>);
|
|
3986
|
+
get textColor(): Immutable<Vector3>;
|
|
3987
|
+
set textColor(value: Immutable<Vector3>);
|
|
3988
|
+
get outlineColor(): Immutable<Vector3>;
|
|
3989
|
+
set outlineColor(value: Immutable<Vector3>);
|
|
3990
|
+
get distanceRange(): number;
|
|
3991
|
+
set distanceRange(value: number);
|
|
3992
|
+
get smallGlyphThreshold(): number;
|
|
3993
|
+
set smallGlyphThreshold(value: number);
|
|
3994
|
+
get outlineWidth(): number;
|
|
3995
|
+
set outlineWidth(value: number);
|
|
3996
|
+
clone(): MSDFTextMaterial;
|
|
3997
|
+
copyFrom(other: this): void;
|
|
3998
|
+
vertexShader(scope: PBFunctionScope): void;
|
|
3999
|
+
fragmentShader(scope: PBFunctionScope): void;
|
|
4000
|
+
applyUniformValues(bindGroup: BindGroup, ctx: DrawContext, pass: number): void;
|
|
4001
|
+
protected onDispose(): void;
|
|
4002
|
+
}
|
|
4003
|
+
|
|
4004
|
+
/**
|
|
4005
|
+
* Billboard MSDF text material.
|
|
4006
|
+
*
|
|
4007
|
+
* @public
|
|
4008
|
+
*/
|
|
4009
|
+
declare class MSDFTextSpriteMaterial extends MSDFTextMaterial implements Clonable<MSDFTextSpriteMaterial> {
|
|
4010
|
+
private _rotation;
|
|
4011
|
+
constructor();
|
|
4012
|
+
get rotation(): number;
|
|
4013
|
+
set rotation(value: number);
|
|
4014
|
+
clone(): MSDFTextSpriteMaterial;
|
|
4015
|
+
copyFrom(other: this): void;
|
|
4016
|
+
vertexShader(scope: PBFunctionScope): void;
|
|
4017
|
+
applyUniformValues(bindGroup: BindGroup, ctx: DrawContext, pass: number): void;
|
|
4018
|
+
}
|
|
4019
|
+
|
|
3964
4020
|
/**
|
|
3965
4021
|
* Sprite material driven by a blueprint graph.
|
|
3966
4022
|
*
|
|
@@ -5633,6 +5689,8 @@ declare class CullVisitor implements Visitor<SceneNode | OctreeNode> {
|
|
|
5633
5689
|
*/
|
|
5634
5690
|
visit(target: SceneNode | OctreeNode): boolean;
|
|
5635
5691
|
visitSprite(node: Sprite): boolean;
|
|
5692
|
+
visitMSDFText(node: MSDFText): boolean;
|
|
5693
|
+
visitMSDFTextSprite(node: MSDFTextSprite): boolean;
|
|
5636
5694
|
}
|
|
5637
5695
|
|
|
5638
5696
|
/**
|
|
@@ -8548,8 +8606,6 @@ type MorphInfo = {
|
|
|
8548
8606
|
* @public
|
|
8549
8607
|
*/
|
|
8550
8608
|
interface Drawable {
|
|
8551
|
-
/** Gets the display name of the drawable object (for debugging/UI). */
|
|
8552
|
-
getName(): string;
|
|
8553
8609
|
/** Unique, stable identifier for the drawable, used in caches and picking. */
|
|
8554
8610
|
getDrawableId(): number;
|
|
8555
8611
|
/** Returns the owning scene node (transform and hierarchy). */
|
|
@@ -12776,23 +12832,24 @@ declare class JointDynamicsModifier extends SkeletonModifier {
|
|
|
12776
12832
|
* @public
|
|
12777
12833
|
*/
|
|
12778
12834
|
type MeshUpdateCallback = (frameId: number, elapsedInSeconds: number, deltaInSeconds: number) => void;
|
|
12779
|
-
declare const
|
|
12835
|
+
declare const MeshBase: typeof GraphNode & _zephyr3d_base.GenericConstructor<{
|
|
12780
12836
|
getNode(): SceneNode;
|
|
12781
|
-
} & _zephyr3d_base.Disposable> & (new (...args: any[]) => IMixinDrawable)
|
|
12837
|
+
} & _zephyr3d_base.Disposable> & (new (...args: any[]) => IMixinDrawable) & (new (...args: any[]) => _zephyr3d_base.IEventTarget<{
|
|
12838
|
+
primitive_changed: [primitive: Nullable<Primitive>];
|
|
12839
|
+
material_changed: [material: Nullable<MeshMaterial>];
|
|
12840
|
+
} & {
|
|
12841
|
+
dispose: [];
|
|
12842
|
+
}>);
|
|
12782
12843
|
/**
|
|
12783
12844
|
* Mesh node
|
|
12784
12845
|
* @public
|
|
12785
12846
|
*/
|
|
12786
|
-
declare class Mesh extends
|
|
12847
|
+
declare class Mesh extends MeshBase implements BatchDrawable {
|
|
12787
12848
|
/**
|
|
12788
12849
|
* Creates an instance of mesh node
|
|
12789
12850
|
* @param scene - The scene to which the mesh node belongs
|
|
12790
12851
|
*/
|
|
12791
12852
|
constructor(scene: Scene, primitive?: Primitive, material?: MeshMaterial);
|
|
12792
|
-
/**
|
|
12793
|
-
* {@inheritDoc Drawable.getName}
|
|
12794
|
-
*/
|
|
12795
|
-
getName(): string;
|
|
12796
12853
|
/**
|
|
12797
12854
|
* Returns the batch instance ID for the current render pass.
|
|
12798
12855
|
*/
|
|
@@ -12812,11 +12869,11 @@ declare class Mesh extends Mesh_base implements BatchDrawable {
|
|
|
12812
12869
|
get castShadow(): boolean;
|
|
12813
12870
|
set castShadow(b: boolean);
|
|
12814
12871
|
/** Primitive of the mesh */
|
|
12815
|
-
get primitive():
|
|
12816
|
-
set primitive(prim:
|
|
12872
|
+
get primitive(): Primitive | null;
|
|
12873
|
+
set primitive(prim: Primitive | null);
|
|
12817
12874
|
/** Material of the mesh */
|
|
12818
|
-
get material():
|
|
12819
|
-
set material(m:
|
|
12875
|
+
get material(): MeshMaterial | null;
|
|
12876
|
+
set material(m: MeshMaterial | null);
|
|
12820
12877
|
/**
|
|
12821
12878
|
* {@inheritDoc SceneNode.isMesh}
|
|
12822
12879
|
*/
|
|
@@ -12920,11 +12977,11 @@ declare class Mesh extends Mesh_base implements BatchDrawable {
|
|
|
12920
12977
|
/**
|
|
12921
12978
|
* {@inheritDoc Drawable.getMaterial}
|
|
12922
12979
|
*/
|
|
12923
|
-
getMaterial():
|
|
12980
|
+
getMaterial(): MeshMaterial | null;
|
|
12924
12981
|
/**
|
|
12925
12982
|
* {@inheritDoc Drawable.getPrimitive}
|
|
12926
12983
|
*/
|
|
12927
|
-
getPrimitive():
|
|
12984
|
+
getPrimitive(): Primitive | null;
|
|
12928
12985
|
/**
|
|
12929
12986
|
* {@inheritDoc Drawable.getBoneMatrices}
|
|
12930
12987
|
*/
|
|
@@ -13675,6 +13732,202 @@ declare abstract class AbstractModelLoader extends LoaderBase {
|
|
|
13675
13732
|
abstract load(assetManager: AssetManager, url: string, mimeType: string, data: Blob, dracoDecoderModule?: DecoderModule, VFSs?: VFS[]): Promise<Nullable<SharedModel>>;
|
|
13676
13733
|
}
|
|
13677
13734
|
|
|
13735
|
+
/**
|
|
13736
|
+
* Font outline point.
|
|
13737
|
+
*
|
|
13738
|
+
* @public
|
|
13739
|
+
*/
|
|
13740
|
+
type GlyphPoint = {
|
|
13741
|
+
x: number;
|
|
13742
|
+
y: number;
|
|
13743
|
+
onCurve: boolean;
|
|
13744
|
+
};
|
|
13745
|
+
/**
|
|
13746
|
+
* Glyph contour represented by ordered quadratic points.
|
|
13747
|
+
*
|
|
13748
|
+
* @public
|
|
13749
|
+
*/
|
|
13750
|
+
type GlyphContour = GlyphPoint[];
|
|
13751
|
+
/**
|
|
13752
|
+
* Parsed glyph outline and metrics.
|
|
13753
|
+
*
|
|
13754
|
+
* @public
|
|
13755
|
+
*/
|
|
13756
|
+
type GlyphData = {
|
|
13757
|
+
glyphIndex: number;
|
|
13758
|
+
advanceWidth: number;
|
|
13759
|
+
leftSideBearing: number;
|
|
13760
|
+
xMin: number;
|
|
13761
|
+
yMin: number;
|
|
13762
|
+
xMax: number;
|
|
13763
|
+
yMax: number;
|
|
13764
|
+
contours: GlyphContour[];
|
|
13765
|
+
};
|
|
13766
|
+
/**
|
|
13767
|
+
* Minimal font metrics required by runtime text layout.
|
|
13768
|
+
*
|
|
13769
|
+
* @public
|
|
13770
|
+
*/
|
|
13771
|
+
type FontMetrics = {
|
|
13772
|
+
unitsPerEm: number;
|
|
13773
|
+
ascent: number;
|
|
13774
|
+
descent: number;
|
|
13775
|
+
lineGap: number;
|
|
13776
|
+
glyphCount: number;
|
|
13777
|
+
};
|
|
13778
|
+
|
|
13779
|
+
type FontAssetFetchOptions = {
|
|
13780
|
+
pageSize?: number;
|
|
13781
|
+
glyphSize?: number;
|
|
13782
|
+
};
|
|
13783
|
+
type FontAssetMSDFAtlasSettings = Readonly<{
|
|
13784
|
+
pageSize: number;
|
|
13785
|
+
glyphSize: number;
|
|
13786
|
+
}>;
|
|
13787
|
+
/**
|
|
13788
|
+
* Minimal horizontal pair adjustment extracted from GPOS.
|
|
13789
|
+
*
|
|
13790
|
+
* @public
|
|
13791
|
+
*/
|
|
13792
|
+
type PairAdjustment = {
|
|
13793
|
+
firstXPlacement: number;
|
|
13794
|
+
firstXAdvance: number;
|
|
13795
|
+
secondXPlacement: number;
|
|
13796
|
+
secondXAdvance: number;
|
|
13797
|
+
};
|
|
13798
|
+
/**
|
|
13799
|
+
* Minimal runtime font asset for TrueType outlines.
|
|
13800
|
+
*
|
|
13801
|
+
* @public
|
|
13802
|
+
*/
|
|
13803
|
+
declare class FontAsset {
|
|
13804
|
+
private readonly _reader;
|
|
13805
|
+
private readonly _tables;
|
|
13806
|
+
private readonly _glyphOffsets;
|
|
13807
|
+
private readonly _advanceWidths;
|
|
13808
|
+
private readonly _leftSideBearings;
|
|
13809
|
+
private readonly _glyphCache;
|
|
13810
|
+
private readonly _cmapFormat4;
|
|
13811
|
+
private readonly _cmapFormat12;
|
|
13812
|
+
private readonly _kernPairs;
|
|
13813
|
+
private readonly _gposPairs;
|
|
13814
|
+
private readonly _metrics;
|
|
13815
|
+
private readonly _numberOfHMetrics;
|
|
13816
|
+
private readonly _msdfAtlasSettings;
|
|
13817
|
+
private constructor();
|
|
13818
|
+
static fromBuffer(buffer: ArrayBuffer, options?: FontAssetFetchOptions): FontAsset;
|
|
13819
|
+
get metrics(): FontMetrics;
|
|
13820
|
+
get msdfAtlasSettings(): FontAssetMSDFAtlasSettings;
|
|
13821
|
+
get msdfAtlasPageSize(): number;
|
|
13822
|
+
get msdfGlyphSize(): number;
|
|
13823
|
+
getGlyphIndex(codePoint: number): number;
|
|
13824
|
+
getKerning(leftGlyphIndex: number, rightGlyphIndex: number): number;
|
|
13825
|
+
getPairAdjustment(leftGlyphIndex: number, rightGlyphIndex: number): PairAdjustment | null;
|
|
13826
|
+
getGlyph(glyphIndex: number): GlyphData | null;
|
|
13827
|
+
private getTable;
|
|
13828
|
+
private requireTable;
|
|
13829
|
+
private loadGlyph;
|
|
13830
|
+
}
|
|
13831
|
+
|
|
13832
|
+
/**
|
|
13833
|
+
* Signed distance field generation options.
|
|
13834
|
+
*
|
|
13835
|
+
* @public
|
|
13836
|
+
*/
|
|
13837
|
+
type MSDFOptions = {
|
|
13838
|
+
width: number;
|
|
13839
|
+
height: number;
|
|
13840
|
+
range: number;
|
|
13841
|
+
padding?: number;
|
|
13842
|
+
};
|
|
13843
|
+
/**
|
|
13844
|
+
* RGB MSDF bitmap and placement information.
|
|
13845
|
+
*
|
|
13846
|
+
* @public
|
|
13847
|
+
*/
|
|
13848
|
+
type MSDFBitmap = {
|
|
13849
|
+
width: number;
|
|
13850
|
+
height: number;
|
|
13851
|
+
pixels: Uint8Array<ArrayBuffer>;
|
|
13852
|
+
scale: number;
|
|
13853
|
+
translateX: number;
|
|
13854
|
+
translateY: number;
|
|
13855
|
+
};
|
|
13856
|
+
/**
|
|
13857
|
+
* Edge color mask used by MSDF generation.
|
|
13858
|
+
*
|
|
13859
|
+
* Colors are stored as RGB bit masks, allowing an edge to contribute to
|
|
13860
|
+
* multiple channels (for example cyan = green | blue).
|
|
13861
|
+
*
|
|
13862
|
+
* @public
|
|
13863
|
+
*/
|
|
13864
|
+
type EdgeColor = 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
|
13865
|
+
/**
|
|
13866
|
+
* Colored line edge used for MSDF generation.
|
|
13867
|
+
*
|
|
13868
|
+
* @public
|
|
13869
|
+
*/
|
|
13870
|
+
type ColoredLineEdge = {
|
|
13871
|
+
kind: 'line';
|
|
13872
|
+
color: EdgeColor;
|
|
13873
|
+
p0: {
|
|
13874
|
+
x: number;
|
|
13875
|
+
y: number;
|
|
13876
|
+
};
|
|
13877
|
+
p1: {
|
|
13878
|
+
x: number;
|
|
13879
|
+
y: number;
|
|
13880
|
+
};
|
|
13881
|
+
};
|
|
13882
|
+
/**
|
|
13883
|
+
* Colored quadratic edge used for MSDF generation.
|
|
13884
|
+
*
|
|
13885
|
+
* @public
|
|
13886
|
+
*/
|
|
13887
|
+
type ColoredQuadraticEdge = {
|
|
13888
|
+
kind: 'quadratic';
|
|
13889
|
+
color: EdgeColor;
|
|
13890
|
+
p0: {
|
|
13891
|
+
x: number;
|
|
13892
|
+
y: number;
|
|
13893
|
+
};
|
|
13894
|
+
p1: {
|
|
13895
|
+
x: number;
|
|
13896
|
+
y: number;
|
|
13897
|
+
};
|
|
13898
|
+
p2: {
|
|
13899
|
+
x: number;
|
|
13900
|
+
y: number;
|
|
13901
|
+
};
|
|
13902
|
+
};
|
|
13903
|
+
/**
|
|
13904
|
+
* Colored edge used for MSDF generation.
|
|
13905
|
+
*
|
|
13906
|
+
* @public
|
|
13907
|
+
*/
|
|
13908
|
+
type ColoredEdge = ColoredLineEdge | ColoredQuadraticEdge;
|
|
13909
|
+
/**
|
|
13910
|
+
* Converted glyph shape ready for MSDF sampling.
|
|
13911
|
+
*
|
|
13912
|
+
* @public
|
|
13913
|
+
*/
|
|
13914
|
+
type MSDFShape = {
|
|
13915
|
+
contours: ColoredEdge[][];
|
|
13916
|
+
sourceContours: GlyphContour[];
|
|
13917
|
+
};
|
|
13918
|
+
|
|
13919
|
+
declare function buildMSDFShape(contours: GlyphContour[]): MSDFShape;
|
|
13920
|
+
|
|
13921
|
+
/**
|
|
13922
|
+
* Generate a runtime RGB(A) distance field bitmap from a parsed glyph.
|
|
13923
|
+
*
|
|
13924
|
+
* Distances are encoded in output texel units, which matches the shader-side
|
|
13925
|
+
* `distanceRange` logic and keeps the field scale-invariant across font sizes.
|
|
13926
|
+
*
|
|
13927
|
+
* @public
|
|
13928
|
+
*/
|
|
13929
|
+
declare function generateMSDF(glyph: GlyphData, options: MSDFOptions): MSDFBitmap;
|
|
13930
|
+
|
|
13678
13931
|
/**
|
|
13679
13932
|
* Options for texture fetching.
|
|
13680
13933
|
*
|
|
@@ -13780,6 +14033,15 @@ declare class AssetManager {
|
|
|
13780
14033
|
* if no other owners are holding them.
|
|
13781
14034
|
*/
|
|
13782
14035
|
clearCache(): void;
|
|
14036
|
+
/**
|
|
14037
|
+
* Removes a cached font asset entry by URL.
|
|
14038
|
+
*
|
|
14039
|
+
* This only evicts the cache entry. It does not dispose any external references to the FontAsset.
|
|
14040
|
+
*
|
|
14041
|
+
* @param url - Resource URL or VFS path.
|
|
14042
|
+
* @returns `true` if a cache entry existed and was removed.
|
|
14043
|
+
*/
|
|
14044
|
+
releaseFontAsset(url: string): boolean;
|
|
13783
14045
|
/**
|
|
13784
14046
|
* Register a texture loader (highest priority first).
|
|
13785
14047
|
*
|
|
@@ -13832,6 +14094,24 @@ declare class AssetManager {
|
|
|
13832
14094
|
* @returns A promise that resolves to the loaded (and optionally processed) ArrayBuffer.
|
|
13833
14095
|
*/
|
|
13834
14096
|
fetchBinaryData(url: string, postProcess?: Nullable<(data: ArrayBuffer) => ArrayBuffer>, httpRequest?: Nullable<HttpRequest>, VFSs?: VFS[]): Promise<Nullable<ArrayBuffer>>;
|
|
14097
|
+
/**
|
|
14098
|
+
* Fetch a font asset via VFS.
|
|
14099
|
+
*
|
|
14100
|
+
* - Cached per URL only.
|
|
14101
|
+
* - `options` are applied only when the font is first loaded for that URL.
|
|
14102
|
+
* - If the URL is already cached, later calls ignore `options` and reuse the cached FontAsset.
|
|
14103
|
+
*
|
|
14104
|
+
* @param url - Resource URL or VFS path.
|
|
14105
|
+
* @param options - Optional MSDF atlas settings bound to the loaded FontAsset.
|
|
14106
|
+
* @returns A promise that resolves to the loaded (and optionally processed) font asset.
|
|
14107
|
+
*/
|
|
14108
|
+
fetchFontAsset(url: string, options?: FontAssetFetchOptions, VFSs?: VFS[]): Promise<Nullable<FontAsset>>;
|
|
14109
|
+
/**
|
|
14110
|
+
* Fetch a font asset via VFS if already cached.
|
|
14111
|
+
* @param url - Resource URL or VFS path.
|
|
14112
|
+
* @returns The cached FontAsset if it exists and is loaded, or null if not cached or still loading.
|
|
14113
|
+
*/
|
|
14114
|
+
getFontAsset(url: string): Nullable<FontAsset>;
|
|
13835
14115
|
fetchBluePrint(url: string, VFSs?: VFS[]): Promise<Nullable<Record<string, MaterialBlueprintIR>>>;
|
|
13836
14116
|
/**
|
|
13837
14117
|
* Fetch a material resource.
|
|
@@ -14752,10 +15032,6 @@ declare class BaseSprite<M extends SpriteMaterial> extends BaseSprite_base imple
|
|
|
14752
15032
|
* @param scene - The scene to which the mesh node belongs
|
|
14753
15033
|
*/
|
|
14754
15034
|
constructor(scene: Scene);
|
|
14755
|
-
/**
|
|
14756
|
-
* {@inheritDoc Drawable.getName}
|
|
14757
|
-
*/
|
|
14758
|
-
getName(): string;
|
|
14759
15035
|
/**
|
|
14760
15036
|
* Returns the batch instance ID for the current render pass.
|
|
14761
15037
|
*/
|
|
@@ -14882,6 +15158,189 @@ declare class ScriptAttachment {
|
|
|
14882
15158
|
*/
|
|
14883
15159
|
declare function normalizeScriptAttachments(value: unknown): ScriptAttachment[];
|
|
14884
15160
|
|
|
15161
|
+
type MSDFGlyphInfo = {
|
|
15162
|
+
glyphIndex: number;
|
|
15163
|
+
advanceWidth: number;
|
|
15164
|
+
leftSideBearing: number;
|
|
15165
|
+
atlasIndex: number;
|
|
15166
|
+
width: number;
|
|
15167
|
+
height: number;
|
|
15168
|
+
uMin: number;
|
|
15169
|
+
vMin: number;
|
|
15170
|
+
uMax: number;
|
|
15171
|
+
vMax: number;
|
|
15172
|
+
planeLeft: number;
|
|
15173
|
+
planeBottom: number;
|
|
15174
|
+
planeRight: number;
|
|
15175
|
+
planeTop: number;
|
|
15176
|
+
};
|
|
15177
|
+
/**
|
|
15178
|
+
* Runtime dynamic MSDF glyph atlas.
|
|
15179
|
+
*
|
|
15180
|
+
* @public
|
|
15181
|
+
*/
|
|
15182
|
+
declare class MSDFGlyphAtlas extends TextureAtlasManager {
|
|
15183
|
+
private readonly _font;
|
|
15184
|
+
private readonly _glyphs;
|
|
15185
|
+
private readonly _range;
|
|
15186
|
+
private readonly _glyphSize;
|
|
15187
|
+
private readonly _padding;
|
|
15188
|
+
constructor(device: AbstractDevice, font: FontAsset, glyphSize?: number, atlasSize?: number, range?: number, padding?: number);
|
|
15189
|
+
get font(): FontAsset;
|
|
15190
|
+
get glyphSize(): number;
|
|
15191
|
+
get distanceRange(): number;
|
|
15192
|
+
getAtlasTexture(index: number): Texture2D | undefined;
|
|
15193
|
+
ensureGlyph(glyphIndex: number): MSDFGlyphInfo | null;
|
|
15194
|
+
private createGlyph;
|
|
15195
|
+
}
|
|
15196
|
+
|
|
15197
|
+
declare class MSDFTextAtlasManager {
|
|
15198
|
+
private readonly _atlases;
|
|
15199
|
+
constructor();
|
|
15200
|
+
getAtlas(font: FontAsset): MSDFGlyphAtlas;
|
|
15201
|
+
configureAtlas(font: FontAsset, glyphSize: number, atlasSize: number, distanceRange?: number, padding?: number): MSDFGlyphAtlas;
|
|
15202
|
+
releaseAtlas(font: FontAsset): boolean;
|
|
15203
|
+
clear(): void;
|
|
15204
|
+
}
|
|
15205
|
+
|
|
15206
|
+
type TextAlign = 'left' | 'center' | 'right';
|
|
15207
|
+
|
|
15208
|
+
declare class MeshDrawableBase extends Disposable {
|
|
15209
|
+
private _node;
|
|
15210
|
+
constructor(node: SceneNode);
|
|
15211
|
+
getNode(): SceneNode;
|
|
15212
|
+
}
|
|
15213
|
+
declare const MeshDrawable_base: typeof MeshDrawableBase & _zephyr3d_base.GenericConstructor<{
|
|
15214
|
+
getNode(): SceneNode;
|
|
15215
|
+
} & Disposable> & (new (...args: any[]) => IMixinDrawable);
|
|
15216
|
+
declare class MeshDrawable<M extends MeshMaterial> extends MeshDrawable_base implements Drawable {
|
|
15217
|
+
private _material;
|
|
15218
|
+
private _primitive;
|
|
15219
|
+
constructor(node: SceneNode, material: M, primitive: Primitive);
|
|
15220
|
+
get material(): Nullable<M>;
|
|
15221
|
+
set material(mat: Nullable<M>);
|
|
15222
|
+
getMaterial(): Nullable<MeshMaterial>;
|
|
15223
|
+
get primitive(): Nullable<Primitive>;
|
|
15224
|
+
set primitive(prim: Nullable<Primitive>);
|
|
15225
|
+
getPrimitive(): Nullable<Primitive>;
|
|
15226
|
+
getPickTarget(): PickTarget;
|
|
15227
|
+
getBoneMatrices(): Nullable<Texture2D>;
|
|
15228
|
+
getMorphData(): Nullable<MorphData>;
|
|
15229
|
+
getMorphInfo(): Nullable<MorphInfo>;
|
|
15230
|
+
/**
|
|
15231
|
+
* {@inheritDoc Drawable.getSortDistance}
|
|
15232
|
+
*/
|
|
15233
|
+
getSortDistance(camera: Camera): number;
|
|
15234
|
+
getQueueType(): number;
|
|
15235
|
+
needSceneColor(): boolean;
|
|
15236
|
+
needSceneDepth(): boolean;
|
|
15237
|
+
isUnlit(): boolean;
|
|
15238
|
+
isBatchable(): this is BatchDrawable;
|
|
15239
|
+
draw(ctx: DrawContext, renderQueue: Nullable<RenderQueue>): void;
|
|
15240
|
+
protected onDispose(): void;
|
|
15241
|
+
}
|
|
15242
|
+
|
|
15243
|
+
/**
|
|
15244
|
+
* Billboard MSDF text node.
|
|
15245
|
+
*
|
|
15246
|
+
* @public
|
|
15247
|
+
*/
|
|
15248
|
+
declare class MSDFTextSprite extends GraphNode {
|
|
15249
|
+
private _fontAsset;
|
|
15250
|
+
private _atlas;
|
|
15251
|
+
private _text;
|
|
15252
|
+
private _fontSize;
|
|
15253
|
+
private _maxWidth;
|
|
15254
|
+
private _textAlign;
|
|
15255
|
+
private _anchor;
|
|
15256
|
+
private _color;
|
|
15257
|
+
private _outlineWidth;
|
|
15258
|
+
private _outlineColor;
|
|
15259
|
+
private _pageBatches;
|
|
15260
|
+
constructor(scene: Scene);
|
|
15261
|
+
get fontAsset(): FontAsset | null;
|
|
15262
|
+
set fontAsset(font: FontAsset | null);
|
|
15263
|
+
get text(): string;
|
|
15264
|
+
set text(value: string);
|
|
15265
|
+
get fontSize(): number;
|
|
15266
|
+
set fontSize(value: number);
|
|
15267
|
+
get maxWidth(): number;
|
|
15268
|
+
set maxWidth(value: number);
|
|
15269
|
+
get textAlign(): TextAlign;
|
|
15270
|
+
set textAlign(value: TextAlign);
|
|
15271
|
+
get anchorX(): number;
|
|
15272
|
+
set anchorX(value: number);
|
|
15273
|
+
get anchorY(): number;
|
|
15274
|
+
set anchorY(value: number);
|
|
15275
|
+
get anchor(): Immutable<Vector2>;
|
|
15276
|
+
set anchor(value: Immutable<Vector2>);
|
|
15277
|
+
get textColor(): Immutable<Vector3>;
|
|
15278
|
+
set textColor(value: Immutable<Vector3>);
|
|
15279
|
+
get outlineWidth(): number;
|
|
15280
|
+
set outlineWidth(value: number);
|
|
15281
|
+
get outlineColor(): Immutable<Vector3>;
|
|
15282
|
+
set outlineColor(value: Immutable<Vector3>);
|
|
15283
|
+
get batches(): MeshDrawable<MSDFTextSpriteMaterial>[];
|
|
15284
|
+
update(): void;
|
|
15285
|
+
calculateLocalTransform(outMatrix: Matrix4x4): void;
|
|
15286
|
+
computeWorldBoundingVolume(localBV: Nullable<BoundingVolume>): BoundingBox | null;
|
|
15287
|
+
isMSDFTextSprite(): this is MSDFTextSprite;
|
|
15288
|
+
protected onDispose(): void;
|
|
15289
|
+
private ensurePageBatch;
|
|
15290
|
+
private disposePageBatches;
|
|
15291
|
+
}
|
|
15292
|
+
|
|
15293
|
+
/**
|
|
15294
|
+
* Billboard MSDF text node.
|
|
15295
|
+
*
|
|
15296
|
+
* @public
|
|
15297
|
+
*/
|
|
15298
|
+
declare class MSDFText extends GraphNode {
|
|
15299
|
+
private _fontAsset;
|
|
15300
|
+
private _atlas;
|
|
15301
|
+
private _castShadow;
|
|
15302
|
+
private _text;
|
|
15303
|
+
private _fontSize;
|
|
15304
|
+
private _maxWidth;
|
|
15305
|
+
private _textAlign;
|
|
15306
|
+
private _anchor;
|
|
15307
|
+
private _color;
|
|
15308
|
+
private _outlineWidth;
|
|
15309
|
+
private _outlineColor;
|
|
15310
|
+
private _pageBatches;
|
|
15311
|
+
constructor(scene: Scene);
|
|
15312
|
+
get castShadow(): boolean;
|
|
15313
|
+
set castShadow(value: boolean);
|
|
15314
|
+
get fontAsset(): FontAsset | null;
|
|
15315
|
+
set fontAsset(font: FontAsset | null);
|
|
15316
|
+
get text(): string;
|
|
15317
|
+
set text(value: string);
|
|
15318
|
+
get fontSize(): number;
|
|
15319
|
+
set fontSize(value: number);
|
|
15320
|
+
get maxWidth(): number;
|
|
15321
|
+
set maxWidth(value: number);
|
|
15322
|
+
get textAlign(): TextAlign;
|
|
15323
|
+
set textAlign(value: TextAlign);
|
|
15324
|
+
get anchorX(): number;
|
|
15325
|
+
set anchorX(value: number);
|
|
15326
|
+
get anchorY(): number;
|
|
15327
|
+
set anchorY(value: number);
|
|
15328
|
+
get anchor(): Immutable<Vector2>;
|
|
15329
|
+
set anchor(value: Immutable<Vector2>);
|
|
15330
|
+
get textColor(): Immutable<Vector3>;
|
|
15331
|
+
set textColor(value: Immutable<Vector3>);
|
|
15332
|
+
get outlineWidth(): number;
|
|
15333
|
+
set outlineWidth(value: number);
|
|
15334
|
+
get outlineColor(): Immutable<Vector3>;
|
|
15335
|
+
set outlineColor(value: Immutable<Vector3>);
|
|
15336
|
+
get batches(): MeshDrawable<MSDFTextMaterial>[];
|
|
15337
|
+
update(): void;
|
|
15338
|
+
isMSDFText(): this is MSDFText;
|
|
15339
|
+
protected onDispose(): void;
|
|
15340
|
+
private ensurePageBatch;
|
|
15341
|
+
private disposePageBatches;
|
|
15342
|
+
}
|
|
15343
|
+
|
|
14885
15344
|
/**
|
|
14886
15345
|
* Iteration callback used by traversal helpers.
|
|
14887
15346
|
*
|
|
@@ -15722,6 +16181,10 @@ declare class SceneNode extends SceneNode_base implements IDisposable {
|
|
|
15722
16181
|
isMesh(): this is Mesh;
|
|
15723
16182
|
/** Type guard: true if this node is a sprite */
|
|
15724
16183
|
isSprite(): this is Sprite;
|
|
16184
|
+
/** Type guard: true if this node is a MSDF text sprite */
|
|
16185
|
+
isMSDFTextSprite(): this is MSDFTextSprite;
|
|
16186
|
+
/** Type guard: true if this node is a MSDF text sprite */
|
|
16187
|
+
isMSDFText(): this is MSDFText;
|
|
15725
16188
|
/** Type guard: true if this node is a water node. */
|
|
15726
16189
|
isWater(): this is Water;
|
|
15727
16190
|
/** Type guard: true if this node is a particle system. */
|
|
@@ -16653,6 +17116,7 @@ declare class Engine {
|
|
|
16653
17116
|
private _builtinsVFS;
|
|
16654
17117
|
private _scriptingSystem;
|
|
16655
17118
|
private _resourceManager;
|
|
17119
|
+
private _msdfTextAtlasManager;
|
|
16656
17120
|
private _enabled;
|
|
16657
17121
|
private _screen;
|
|
16658
17122
|
protected _activeRenderables: {
|
|
@@ -16681,6 +17145,37 @@ declare class Engine {
|
|
|
16681
17145
|
* Exposes the instance of {@link ResourceManager}.
|
|
16682
17146
|
*/
|
|
16683
17147
|
get resourceManager(): ResourceManager;
|
|
17148
|
+
/**
|
|
17149
|
+
* Exposes the shared runtime MSDF text atlas manager.
|
|
17150
|
+
*/
|
|
17151
|
+
get msdfTextAtlasManager(): MSDFTextAtlasManager;
|
|
17152
|
+
/**
|
|
17153
|
+
* Releases a loaded font asset from the resource cache and disposes its shared MSDF atlas textures.
|
|
17154
|
+
*
|
|
17155
|
+
* Existing scene nodes that still reference this font asset are not updated automatically.
|
|
17156
|
+
* Call this only after you have stopped using the font, or when you intentionally want it to rebuild later.
|
|
17157
|
+
*
|
|
17158
|
+
* @param fontAsset - The loaded font asset to release.
|
|
17159
|
+
* @returns `true` if either the atlas cache or the font cache had an entry to remove.
|
|
17160
|
+
*/
|
|
17161
|
+
releaseFontAsset(font: string): boolean;
|
|
17162
|
+
/**
|
|
17163
|
+
* Configures the MSDF atlas for a given font asset, creating or replacing the atlas as needed.
|
|
17164
|
+
*
|
|
17165
|
+
* This is useful to customize the glyph size, atlas page size, distance range, and padding for MSDF text rendering.
|
|
17166
|
+
* Existing scene nodes that reference this font asset will use the updated atlas automatically.
|
|
17167
|
+
*
|
|
17168
|
+
* @param font - The font asset path to configure the MSDF atlas for.
|
|
17169
|
+
* @param pageSize - The size of each atlas page in pixels (e.g., 512, 1024).
|
|
17170
|
+
* @param glyphSize - The size of each glyph in pixels (e.g., 32, 64).
|
|
17171
|
+
* @param distanceRange - The distance range for MSDF generation. Defaults to 4.
|
|
17172
|
+
* @param padding - The padding between glyphs in the atlas in pixels. Defaults to 2.
|
|
17173
|
+
* @returns `true` if the atlas was successfully configured, or `false` if the font asset was not found.
|
|
17174
|
+
*
|
|
17175
|
+
* @remarks
|
|
17176
|
+
* The font asset must be loaded and available in the resource manager for the atlas to be configured.
|
|
17177
|
+
*/
|
|
17178
|
+
configureMSDFAtlas(font: string, pageSize: number, glyphSize: number, distanceRange?: number, padding?: number): boolean;
|
|
16684
17179
|
/**
|
|
16685
17180
|
* Exposes the active {@link ScreenAdapter}.
|
|
16686
17181
|
*/
|
|
@@ -16734,8 +17229,6 @@ declare class Engine {
|
|
|
16734
17229
|
/**
|
|
16735
17230
|
* Ticks all attached scripts by calling their `onUpdate` hooks, if enabled.
|
|
16736
17231
|
*
|
|
16737
|
-
* Delegates to {@link ScriptingSystem.update}. No-op when disabled.
|
|
16738
|
-
*
|
|
16739
17232
|
* @param deltaTime - Time since last update in Seconds.
|
|
16740
17233
|
* @param elapsedTime - Total elapsed time in Seconds.
|
|
16741
17234
|
*/
|
|
@@ -17532,6 +18025,32 @@ declare class Scene extends Scene_base implements IRenderable {
|
|
|
17532
18025
|
protected onDispose(): void;
|
|
17533
18026
|
}
|
|
17534
18027
|
|
|
18028
|
+
/**
|
|
18029
|
+
* 3D Text Sprite node
|
|
18030
|
+
* @public
|
|
18031
|
+
*/
|
|
18032
|
+
declare class TextSprite extends BaseSprite<StandardSpriteMaterial> {
|
|
18033
|
+
private _resolutionX;
|
|
18034
|
+
private _resolutionY;
|
|
18035
|
+
private _text;
|
|
18036
|
+
private _font;
|
|
18037
|
+
private _color;
|
|
18038
|
+
private static _textRenderState;
|
|
18039
|
+
constructor(scene: Scene);
|
|
18040
|
+
isSprite(): this is Sprite;
|
|
18041
|
+
get resolutionX(): number;
|
|
18042
|
+
set resolutionX(value: number);
|
|
18043
|
+
get resolutionY(): number;
|
|
18044
|
+
set resolutionY(value: number);
|
|
18045
|
+
get text(): string;
|
|
18046
|
+
set text(value: string);
|
|
18047
|
+
get textColor(): Immutable<Vector3>;
|
|
18048
|
+
set textColor(value: Immutable<Vector3>);
|
|
18049
|
+
get font(): string;
|
|
18050
|
+
set font(value: string);
|
|
18051
|
+
update(): void;
|
|
18052
|
+
}
|
|
18053
|
+
|
|
17535
18054
|
/**
|
|
17536
18055
|
* Visitor for raycasting in the scene. It can be used for picking or other raycast-based queries.
|
|
17537
18056
|
* @public
|
|
@@ -17735,11 +18254,32 @@ declare class ResourceManager {
|
|
|
17735
18254
|
* - Associates the returned data with the given ID for future reverse lookup.
|
|
17736
18255
|
* - The ID is typically a VFS path or locator.
|
|
17737
18256
|
*
|
|
17738
|
-
* @param
|
|
18257
|
+
* @param path - VFS path of the binary asset.
|
|
17739
18258
|
*
|
|
17740
18259
|
* @returns A Promise that resolves to the binary content, or `null` if not found.
|
|
17741
18260
|
*/
|
|
17742
|
-
fetchBinary(
|
|
18261
|
+
fetchBinary(path: string): Promise<Nullable<ArrayBuffer>>;
|
|
18262
|
+
/**
|
|
18263
|
+
* Fetch a text asset by ID via the asset manager.
|
|
18264
|
+
*
|
|
18265
|
+
* @param path - VFS path of TTF/OTF file.
|
|
18266
|
+
* @returns A Promise that resolves to the font asset, or `null` if not found.
|
|
18267
|
+
*/
|
|
18268
|
+
fetchFontAsset(path: string, options?: FontAssetFetchOptions): Promise<Nullable<FontAsset>>;
|
|
18269
|
+
/**
|
|
18270
|
+
* Get a cached font asset by ID if already loaded.
|
|
18271
|
+
*
|
|
18272
|
+
* @param path - VFS path of TTF/OTF file.
|
|
18273
|
+
* @returns The cached FontAsset if it exists and is loaded, or null if not cached or still loading.
|
|
18274
|
+
*/
|
|
18275
|
+
getFontAsset(path: string): Nullable<FontAsset>;
|
|
18276
|
+
/**
|
|
18277
|
+
* Removes a cached font asset entry by asset instance or asset ID.
|
|
18278
|
+
*
|
|
18279
|
+
* @param asset - Loaded font asset instance or its asset ID/path.
|
|
18280
|
+
* @returns `true` if a cache entry existed and was removed.
|
|
18281
|
+
*/
|
|
18282
|
+
releaseFontAsset(asset: FontAsset | string): boolean;
|
|
17743
18283
|
/**
|
|
17744
18284
|
* Serialize an object to a JSON structure using registered class metadata.
|
|
17745
18285
|
*
|
|
@@ -17788,13 +18328,13 @@ declare class ResourceManager {
|
|
|
17788
18328
|
/**
|
|
17789
18329
|
* Load a model by ID and track the allocation for reverse lookup.
|
|
17790
18330
|
*
|
|
17791
|
-
* @param
|
|
18331
|
+
* @param path - VFS path of the model file.
|
|
17792
18332
|
* @param scene - Scene into which the model is loaded.
|
|
17793
18333
|
* @param options - Optional model fetch options.
|
|
17794
18334
|
*
|
|
17795
18335
|
* @returns A Promise resolving to the loaded model object, or `null` if failed.
|
|
17796
18336
|
*/
|
|
17797
|
-
fetchModel(
|
|
18337
|
+
fetchModel(path: string, scene: Scene, options?: ModelFetchOptions): Promise<{
|
|
17798
18338
|
group: SceneNode;
|
|
17799
18339
|
animationSet: AnimationSet;
|
|
17800
18340
|
}>;
|
|
@@ -17816,20 +18356,20 @@ declare class ResourceManager {
|
|
|
17816
18356
|
/**
|
|
17817
18357
|
* Load a texture by ID and track the allocation for reverse lookup.
|
|
17818
18358
|
*
|
|
17819
|
-
* @param
|
|
18359
|
+
* @param path - VFS path of the texture file.
|
|
17820
18360
|
* @param options - Optional texture fetch options.
|
|
17821
18361
|
*
|
|
17822
18362
|
* @returns A Promise resolving to the loaded texture, or `null` if failed.
|
|
17823
18363
|
*/
|
|
17824
|
-
fetchTexture<T extends Texture2D | TextureCube | Texture2DArray>(
|
|
18364
|
+
fetchTexture<T extends Texture2D | TextureCube | Texture2DArray>(path: string, options?: TextureFetchOptions<T>): Promise<T>;
|
|
17825
18365
|
/**
|
|
17826
18366
|
* Load a material by ID and track the allocation for reverse lookup.
|
|
17827
18367
|
*
|
|
17828
|
-
* @param
|
|
18368
|
+
* @param path - VFS path of the material file.
|
|
17829
18369
|
*
|
|
17830
18370
|
* @returns A Promise resolving to the loaded material, or `null` if failed.
|
|
17831
18371
|
*/
|
|
17832
|
-
fetchMaterial<T extends Material = MeshMaterial>(
|
|
18372
|
+
fetchMaterial<T extends Material = MeshMaterial>(path: string): Promise<Nullable<T>>;
|
|
17833
18373
|
/**
|
|
17834
18374
|
* Reload specific blue print materials
|
|
17835
18375
|
*
|
|
@@ -17845,11 +18385,11 @@ declare class ResourceManager {
|
|
|
17845
18385
|
/**
|
|
17846
18386
|
* Load a primitive by ID and track the allocation for reverse lookup.
|
|
17847
18387
|
*
|
|
17848
|
-
* @param
|
|
18388
|
+
* @param path - VFS path of the primitive file.
|
|
17849
18389
|
*
|
|
17850
18390
|
* @returns A Promise resolving to the loaded primitive, or `null` if failed.
|
|
17851
18391
|
*/
|
|
17852
|
-
fetchPrimitive<T extends Primitive = Primitive>(
|
|
18392
|
+
fetchPrimitive<T extends Primitive = Primitive>(path: string): Promise<Nullable<T>>;
|
|
17853
18393
|
/**
|
|
17854
18394
|
* Load a prefab content.
|
|
17855
18395
|
* @param path - Path to the prefab JSON file in VFS.
|
|
@@ -21115,6 +21655,117 @@ declare class TextureSampleGrad extends BaseGraphNode {
|
|
|
21115
21655
|
protected getType(): string;
|
|
21116
21656
|
}
|
|
21117
21657
|
|
|
21658
|
+
/**
|
|
21659
|
+
* Vertex output node
|
|
21660
|
+
*/
|
|
21661
|
+
declare class VertexOutputNode extends BaseGraphNode {
|
|
21662
|
+
private _index;
|
|
21663
|
+
constructor(index: number);
|
|
21664
|
+
get index(): number;
|
|
21665
|
+
static getSerializationCls(): SerializableClass;
|
|
21666
|
+
/**
|
|
21667
|
+
* Generates a string representation of this node
|
|
21668
|
+
*
|
|
21669
|
+
* @returns 'vertex index'
|
|
21670
|
+
*/
|
|
21671
|
+
toString(): string;
|
|
21672
|
+
/**
|
|
21673
|
+
* Validates the node state
|
|
21674
|
+
*
|
|
21675
|
+
* @returns Empty string (always valid)
|
|
21676
|
+
*
|
|
21677
|
+
* @remarks
|
|
21678
|
+
* Vertex index nodes are always valid as they have no inputs.
|
|
21679
|
+
*/
|
|
21680
|
+
protected validate(): string;
|
|
21681
|
+
/**
|
|
21682
|
+
* Gets the output type for a specific output slot
|
|
21683
|
+
*
|
|
21684
|
+
* @param id - The output slot ID
|
|
21685
|
+
* @returns 'float' for individual channel outputs (id \> 1), 'vec4' for full color
|
|
21686
|
+
*/
|
|
21687
|
+
protected getType(id: number): "float" | "vec4";
|
|
21688
|
+
}
|
|
21689
|
+
/**
|
|
21690
|
+
* Vertex index input node
|
|
21691
|
+
*/
|
|
21692
|
+
declare class VertexIndexNode extends BaseGraphNode {
|
|
21693
|
+
/**
|
|
21694
|
+
* Creates a new vertex index node
|
|
21695
|
+
*/
|
|
21696
|
+
constructor();
|
|
21697
|
+
/**
|
|
21698
|
+
* Gets the serialization descriptor for this node type
|
|
21699
|
+
*
|
|
21700
|
+
* @returns Serialization class descriptor
|
|
21701
|
+
*/
|
|
21702
|
+
static getSerializationCls(): {
|
|
21703
|
+
ctor: typeof VertexIndexNode;
|
|
21704
|
+
name: string;
|
|
21705
|
+
getProps(): never[];
|
|
21706
|
+
};
|
|
21707
|
+
/**
|
|
21708
|
+
* Generates a string representation of this node
|
|
21709
|
+
*
|
|
21710
|
+
* @returns 'vertex index'
|
|
21711
|
+
*/
|
|
21712
|
+
toString(): string;
|
|
21713
|
+
/**
|
|
21714
|
+
* Validates the node state
|
|
21715
|
+
*
|
|
21716
|
+
* @returns Empty string (always valid)
|
|
21717
|
+
*
|
|
21718
|
+
* @remarks
|
|
21719
|
+
* Vertex index nodes are always valid as they have no inputs.
|
|
21720
|
+
*/
|
|
21721
|
+
protected validate(): string;
|
|
21722
|
+
/**
|
|
21723
|
+
* Gets the output type for a specific output slot
|
|
21724
|
+
*
|
|
21725
|
+
* @returns 'float'
|
|
21726
|
+
*/
|
|
21727
|
+
protected getType(): string;
|
|
21728
|
+
}
|
|
21729
|
+
/**
|
|
21730
|
+
* Instance index input node
|
|
21731
|
+
*/
|
|
21732
|
+
declare class InstanceIndexNode extends BaseGraphNode {
|
|
21733
|
+
/**
|
|
21734
|
+
* Creates a new instance index node
|
|
21735
|
+
*/
|
|
21736
|
+
constructor();
|
|
21737
|
+
/**
|
|
21738
|
+
* Gets the serialization descriptor for this node type
|
|
21739
|
+
*
|
|
21740
|
+
* @returns Serialization class descriptor
|
|
21741
|
+
*/
|
|
21742
|
+
static getSerializationCls(): {
|
|
21743
|
+
ctor: typeof InstanceIndexNode;
|
|
21744
|
+
name: string;
|
|
21745
|
+
getProps(): never[];
|
|
21746
|
+
};
|
|
21747
|
+
/**
|
|
21748
|
+
* Generates a string representation of this node
|
|
21749
|
+
*
|
|
21750
|
+
* @returns 'instance index'
|
|
21751
|
+
*/
|
|
21752
|
+
toString(): string;
|
|
21753
|
+
/**
|
|
21754
|
+
* Validates the node state
|
|
21755
|
+
*
|
|
21756
|
+
* @returns Empty string (always valid)
|
|
21757
|
+
*
|
|
21758
|
+
* @remarks
|
|
21759
|
+
* Instance index nodes are always valid as they have no inputs.
|
|
21760
|
+
*/
|
|
21761
|
+
protected validate(): string;
|
|
21762
|
+
/**
|
|
21763
|
+
* Gets the output type for a specific output slot
|
|
21764
|
+
*
|
|
21765
|
+
* @returns 'float'
|
|
21766
|
+
*/
|
|
21767
|
+
protected getType(): string;
|
|
21768
|
+
}
|
|
21118
21769
|
/**
|
|
21119
21770
|
* Vertex color input node
|
|
21120
21771
|
*
|
|
@@ -24081,4 +24732,4 @@ declare const ATMOSPHERIC_FOG_BIT: number;
|
|
|
24081
24732
|
*/
|
|
24082
24733
|
declare const HEIGHT_FOG_BIT: number;
|
|
24083
24734
|
|
|
24084
|
-
export { AABBTree, ABufferOIT, ATMOSPHERIC_FOG_BIT, AbsNode, AbstractPostEffect, AllConditionNode, type AngleLimitConfig, AnimationClip, AnimationSet, AnimationTrack, AnyConditionNode, type AppCreationOptions, type AppOptions, Application, type ApplyResultOutput, ArcCosNode, ArcSinNode, ArcTan2Node, ArcTanNode, ArccosineHNode, ArcsineHNode, ArctangentHNode, type AssetAnimationData, type AssetAnimationTrack, type AssetFixedGeometryCacheAnimationTrack, type AssetGeometryCacheAnimationTrack, AssetHierarchyNode, AssetManager, type AssetMaterial, type AssetMaterialClearcoat, type AssetMaterialCommon, type AssetMaterialIridescence, type AssetMaterialSheen, type AssetMaterialTransmission, type AssetMeshData, type AssetPBRMaterialCommon, type AssetPBRMaterialMR, type AssetPBRMaterialSG, type AssetPCAGeometryCacheAnimationTrack, type AssetRotationTrack, type AssetScaleTrack, AssetScene, type AssetSkeletalAnimationTrack, AssetSkeleton, type AssetSubMeshData, type AssetTranslationTrack, type AssetUnlitMaterial, BUILTIN_ASSET_TEST_CUBEMAP, BUILTIN_ASSET_TEXTURE_SHEEN_LUT, BaseCameraController, BaseGraphNode, BaseLight, BaseSprite, BaseTextureNode, type BatchDrawable, BatchGroup, BillboardMatrixNode, type BlendMode, BlinnMaterial, type BlitType, Blitter, Bloom, type BluePrintEditorState, type BluePrintUniformTexture, type BluePrintUniformValue, type BlueprintDAG, type BoneNode, BoundingBox, type BoundingVolume, type BoxCreationOptions, BoxFilterBlitter, BoxFrameShape, BoxShape, CCDSolver, type CachedBindGroup, Camera, CameraNearFarNode, type CameraOITMode, CameraPositionNode, CameraVectorNode, type CapsuleCollider, type CapsuleCreationOptions, CapsuleShape, CeilNode, ClampNode, ClipmapTerrain, ClipmapTerrainMaterial, ColliderForce, type ColliderR, type ColliderRW, type CollisionResult, ColorAdjust, CompAddNode, CompComparisonNode, CompDivNode, CompMulNode, CompSubNode, type ComparisonMode, type CompiledRenderGraph, Compositor, type CompositorContext, ConstantBVec2Node, ConstantBVec3Node, ConstantBVec4Node, ConstantBooleanNode, ConstantScalarNode, ConstantTexture2DArrayNode, ConstantTexture2DNode, ConstantTextureCubeNode, ConstantVec2Node, ConstantVec3Node, ConstantVec4Node, type Constraint, type ConstraintBuildOptions, ConstraintType, type ControllerConfig, CopyBlitter, CosHNode, CosNode, CrossProductNode, CubemapSHProjector, CullVisitor, type CylinderCreationOptions, CylinderShape, DDXNode, DDYNode, Degrees2RadiansNode, DepthPass, DevicePoolAllocator, DirectionalLight, DistanceNode, DotProductNode, DracoMeshDecoder, type DrawContext, type Drawable, type DrawableInstanceInfo, EPSILON, type EditorMode, ElapsedTimeNode, type EmitterBehavior, type EmitterShape, Engine, EnvConstantAmbient, EnvHemisphericAmbient, type EnvLightType, EnvLightWrapper, EnvShIBL, Environment, EnvironmentLighting, EqualNode, Exp2Node, ExpNode, type ExtractMixinReturnType, type ExtractMixinType, FABRIKSolver, FBMWaveGenerator, FFTWaveGenerator, FPSCameraController, type FPSCameraControllerOptions, FWidthNode, FXAA, FaceForwardNode, type FixedGeometryCacheFrame, type FixedGeometryCacheState, FixedGeometryCacheTrack, type FlatPlane, FloorNode, FmaNode, type FogType, type ForwardPlusOptions, FractNode, FunctionCallNode, FunctionInputNode, FunctionOutputNode, GPUClothSystem, type GPUClothSystemOptions, type GPUClothWrapBindingData, type GPUClothWrapBindingTarget, GaussianBlurBlitter, GenericMathNode, type GeometryCacheFrame, type GeometryCacheMeshBinding, type GeometryCacheState, GerstnerWaveGenerator, type GrabberR, type GrabberRW, GraphNode, type GraphNodeInput, type GraphNodeOutput, type GraphStructure, type GrassInstanceInfo, GrassLayer, GrassMaterial, GrassRenderer, Grayscale, HEIGHT_FOG_BIT, Hash1Node, Hash2Node, Hash3Node, HistoryResourceManager, type Host, HumanoidBodyRig, HumanoidHandRig, type HumanoidJointMapping, type IAttachedScript, type IBaseEvent, type IControllerKeyboardEvent, type IControllerKeydownEvent, type IControllerKeypressEvent, type IControllerKeyupEvent, type IControllerMouseEvent, type IControllerPointerCancelEvent, type IControllerPointerDownEvent, type IControllerPointerMoveEvent, type IControllerPointerUpEvent, type IControllerWheelEvent, type IGraphNode, IKAngleConstraint, IKChain, IKConstraint, type IKJoint, IKModifier, IKSolver, type IMixinAlbedoColor, type IMixinBlinnPhong, type IMixinFoliage, type IMixinLambert, type IMixinLight, type IMixinPBRBluePrint, type IMixinPBRCommon, type IMixinPBRMetallicRoughness, type IMixinPBRSpecularGlossiness, type IMixinVertexColor, type IModKey, type IRUniformTexture, type IRUniformValue, type IRenderHook, type IRenderable, type InputEventHandler, InputManager, InstanceBindGroupAllocator, type InstanceData, type InstanceUniformType, type InterChainConstraint, InvProjMatrixNode, InvSqrtNode, InvViewProjMatrixNode, type JointChainConfig, type JointDynamicSystemConfig, type JointDynamicsColliderHandle, type JointDynamicsFlatPlaneHandle, type JointDynamicsGrabberHandle, JointDynamicsModifier, JointDynamicsSystem, JointDynamicsSystemController, LIGHT_TYPE_DIRECTIONAL, LIGHT_TYPE_NONE, LIGHT_TYPE_POINT, LIGHT_TYPE_RECT, LIGHT_TYPE_SPOT, LambertMaterial, LengthNode, type LineCollisionResult, Log2Node, type LogMode, LogNode, LogicallyAndNode, LogicallyOrNode, MAX_GERSTNER_WAVE_COUNT, MAX_MORPH_ATTRIBUTES, MAX_MORPH_TARGETS, MAX_TERRAIN_MIPMAP_LEVELS, MORPH_ATTRIBUTE_VECTOR_COUNT, MORPH_TARGET_COLOR, MORPH_TARGET_NORMAL, MORPH_TARGET_POSITION, MORPH_TARGET_TANGENT, MORPH_TARGET_TEX0, MORPH_TARGET_TEX1, MORPH_TARGET_TEX2, MORPH_TARGET_TEX3, MORPH_WEIGHTS_VECTOR_COUNT, MakeVectorNode, Material, MaterialBlueprintIR, type MaterialBlueprintIRBehaviors, type MaterialTextureInfo, MaterialVaryingFlags, MaxNode, Mesh, MeshMaterial, type MeshUpdateCallback, type Metadata, MinNode, MixNode, ModNode, type ModelFetchOptions, type ModelInfo, type MorphData, type MorphInfo, type MorphState, MorphTargetTrack, MultiChainSpringSystem, type MultiChainSpringSystemOptions, NamedObject, type NearestPointsResult, type NodeConnection, NodeEulerRotationTrack, type NodeIterateFunc, NodeRotationTrack, NodeScaleTrack, NodeTranslationTrack, NormalizeNode, NotEqualNode, type OIT, Octree, OctreeNode, OctreeNodeChunk, OctreePlacement, OrbitCameraController, type OrbitCameraControllerOptions, OrthoCamera, PBRBlockNode, PBRBluePrintMaterial, PBRMetallicRoughnessMaterial, type PBRReflectionMode, PBRSpecularGlossinessMaterial, type PCAGeometryCacheState, PCAGeometryCacheTrack, type PCAGeometryCacheTrackData, PannerNode, ParticleMaterial, ParticleSystem, PerlinNoise2DNode, PerspectiveCamera, type PhysicsCurves, type PickResult, type PickTarget, PixelNormalNode, PixelWorldPositionNode, type PlaneCollider, type PlaneCreationOptions, PlaneShape, type PlayAnimationOptions, type PointInit, PointLight, type PointR, type PointRW, type PointTransform, PostEffectLayer, PowNode, Primitive, ProjectionMatrixNode, type PropEdit, type PropertyAccessor, type PropertyAccessorOptions, type PropertySceneNodeOptions, type PropertyToType, PropertyTrack, type PropertyType, type PropertyValue, PunctualLight, QUEUE_OPAQUE, QUEUE_TRANSPARENT, RENDER_PASS_TYPE_DEPTH, RENDER_PASS_TYPE_LIGHT, RENDER_PASS_TYPE_OBJECT_COLOR, RENDER_PASS_TYPE_SHADOWMAP, type RGExecuteContext, type RGExecuteFn, type RGFramebufferDesc, RGHandle, RGHistoryResources, type RGPassBuilder, type RGResolvedSize, type RGResourceLifetime, type RGSizeMode, RGSubpass, type RGTextureAllocator, type RGTextureDesc, Radians2DegreesNode, RaycastVisitor, RectLight, ReflectNode, RefractNode, RenderContext, RenderGraph, RenderGraphExecutor, type RenderItemList, type RenderItemListBundle, type RenderItemListInfo, RenderPass, RenderQueue, type RenderQueueItem, type RenderQueueRef, RenderTarget, type ResolutionTransform, ResolveVertexNormalNode, ResolveVertexPositionNode, ResolveVertexTangentNode, ResourceManager, RotateAboutAxisNode, RuntimeScript, type RuntimeScriptArrayDeclaration, type RuntimeScriptArrayElementDeclaration, type RuntimeScriptConfig, type RuntimeScriptObjectDeclaration, type RuntimeScriptObjectFieldDeclaration, type RuntimeScriptPropertyDeclaration, type RuntimeScriptPropertyInfo, type RuntimeScriptPropertyOptions, type RuntimeScriptPropertyType, type RuntimeScriptValueDeclaration, type RuntimeScriptValueType, SAO, type SamplerType, SaturateNode, Scene, SceneNode, type SceneNodeVisible, ScreenAdapter, type ScreenConfig, ScreenRenderTarget, type ScreenScaleMode, ScriptAttachment, type ScriptAttachmentConfig, ScriptRegistry, ScriptingSystem, type ScriptingSystemOptions, SelectionNode, type SerializableClass, ShaderHelper, ShadowMapPass, ShadowMapper, type ShadowMode, type ShadowQualityPreset, Shape, type ShapeCreationOptions, type ShapeOptionType, type ShapeType, SharedModel, SignNode, SimplexNoise2DNode, type SimulationParams, SinHNode, SinNode, Skeleton, SkeletonModifier, type SkinnedBoundingBox, SkyEnvTextureNode, SkyRenderer, type SkyType, SmoothStepNode, type SphereCollider, type SphereCreationOptions, SphereShape, SpotLight, SpringChain, type SpringCollider, type SpringConstraint, SpringModifier, type SpringParticle, SpringSystem, type SpringSystemOptions, Sprite, SpriteBlockNode, SpriteBlueprintMaterial, SpriteMaterial, SqrtNode, StandardSpriteMaterial, StepNode, type StopAnimationOptions, type SurfaceCheckResult, SwizzleNode, TanHNode, TanNode, type TerrainDebugMode, type TetrahedronCreationOptions, TetrahedronFrameShape, TetrahedronShape, type TextureFetchOptions, type TextureMixinInstanceTypes, type TextureMixinTypes, type TextureProp, type TexturePropUniforms, TextureSampleGrad, TextureSampleNode, type ToMixedTextureType, Tonemap, type TorusCreationOptions, TorusShape, type TransformAccess, TransformNode, type TwistConstraint, TwoBoneIKSolver, UnlitMaterial, VertexBinormalNode, VertexBlockNode, VertexColorNode, VertexNormalNode, VertexPositionNode, VertexTangentNode, VertexUVNode, ViewMatrixNode, ViewProjMatrixNode, type Visitor, Water, type WaveGenerator, WeightedBlendedOIT, applyAngleLimits, applyMaterialMixins, applyResult, applyRuntimeScriptConfig, buildConstraints, buildForwardPlusGraph, buildSurfaceFaces, checkSurfaceCollision, collisionDetection, collisionDetectionCapsule, collisionDetectionSphere, computeMaxDepth, computeNearestPoints, createCapsuleCollider, createGPUClothWrapBindingData, createGeometryCacheState, createPlaneCollider, createSphereCollider, createSpringConstraint, createSpringParticle, createTransformAccess, decode2HalfFromRGBA, decodeFloatFromRGBA, decodeNormalizedFloatFromRGBA, decodeRGBM, defineProps, encode2HalfToRGBA, encodeFloatToRGBA, encodeNormalizedFloatToRGBA, encodeRGBM, ensureGeometryCacheMeshBinding, executeForwardPlusGraph, fetchSampler, gammaToLinear, getApp, getDevice, getEngine, getInput, getRuntimeScriptProperties, gradient, hash11, hash12, hash13, hash21, hash22, hash23, hash31, hash32, hash33, interleavedGradientNoise, isGPUClothSupported, linearToGamma, mixGeometryCacheBoundingBox, mixinAlbedoColor, mixinBlinnPhong, mixinFoliage, mixinLambert, mixinLight, mixinPBRBluePrint, mixinPBRCommon, mixinPBRMetallicRoughness, mixinPBRSpecularGlossness, mixinTextureProps, mixinVertexColor, noise3D, normalizeRuntimeScriptConfig, normalizeScriptAttachmentConfig, normalizeScriptAttachments, panoramaToCubemap, perlinNoise2D, perlinNoise3D, prefilterCubemap, pushInCollisionDetection, pushInFromCapsule, pushInFromCollider, pushInFromSphere, pushoutFromCapsule, pushoutFromCollider, pushoutFromSphere, resolveCapsuleCollision, resolvePlaneCollision, resolveSphereCollision, restoreGeometryCacheMeshBinding, scriptProp, simulate, smoothNoise3D, sortRootPointsByProximity, temporalResolve, tryGetApp, updateColliderFromNode, valueNoise, whiteNoise, worleyFBM, worleyNoise };
|
|
24735
|
+
export { AABBTree, ABufferOIT, ATMOSPHERIC_FOG_BIT, AbsNode, AbstractPostEffect, AllConditionNode, type AngleLimitConfig, AnimationClip, AnimationSet, AnimationTrack, AnyConditionNode, type AppCreationOptions, type AppOptions, Application, type ApplyResultOutput, ArcCosNode, ArcSinNode, ArcTan2Node, ArcTanNode, ArccosineHNode, ArcsineHNode, ArctangentHNode, type AssetAnimationData, type AssetAnimationTrack, type AssetFixedGeometryCacheAnimationTrack, type AssetGeometryCacheAnimationTrack, AssetHierarchyNode, AssetManager, type AssetMaterial, type AssetMaterialClearcoat, type AssetMaterialCommon, type AssetMaterialIridescence, type AssetMaterialSheen, type AssetMaterialTransmission, type AssetMeshData, type AssetPBRMaterialCommon, type AssetPBRMaterialMR, type AssetPBRMaterialSG, type AssetPCAGeometryCacheAnimationTrack, type AssetRotationTrack, type AssetScaleTrack, AssetScene, type AssetSkeletalAnimationTrack, AssetSkeleton, type AssetSubMeshData, type AssetTranslationTrack, type AssetUnlitMaterial, BUILTIN_ASSET_TEST_CUBEMAP, BUILTIN_ASSET_TEXTURE_SHEEN_LUT, BaseCameraController, BaseGraphNode, BaseLight, BaseSprite, BaseTextureNode, type BatchDrawable, BatchGroup, BillboardMatrixNode, type BlendMode, BlinnMaterial, type BlitType, Blitter, Bloom, type BluePrintEditorState, type BluePrintUniformTexture, type BluePrintUniformValue, type BlueprintDAG, type BoneNode, BoundingBox, type BoundingVolume, type BoxCreationOptions, BoxFilterBlitter, BoxFrameShape, BoxShape, CCDSolver, type CachedBindGroup, Camera, CameraNearFarNode, type CameraOITMode, CameraPositionNode, CameraVectorNode, type CapsuleCollider, type CapsuleCreationOptions, CapsuleShape, CeilNode, ClampNode, ClipmapTerrain, ClipmapTerrainMaterial, ColliderForce, type ColliderR, type ColliderRW, type CollisionResult, ColorAdjust, type ColoredEdge, type ColoredLineEdge, type ColoredQuadraticEdge, CompAddNode, CompComparisonNode, CompDivNode, CompMulNode, CompSubNode, type ComparisonMode, type CompiledRenderGraph, Compositor, type CompositorContext, ConstantBVec2Node, ConstantBVec3Node, ConstantBVec4Node, ConstantBooleanNode, ConstantScalarNode, ConstantTexture2DArrayNode, ConstantTexture2DNode, ConstantTextureCubeNode, ConstantVec2Node, ConstantVec3Node, ConstantVec4Node, type Constraint, type ConstraintBuildOptions, ConstraintType, type ControllerConfig, CopyBlitter, CosHNode, CosNode, CrossProductNode, CubemapSHProjector, CullVisitor, type CylinderCreationOptions, CylinderShape, DDXNode, DDYNode, Degrees2RadiansNode, DepthPass, DevicePoolAllocator, DirectionalLight, DistanceNode, DotProductNode, DracoMeshDecoder, type DrawContext, type Drawable, type DrawableInstanceInfo, EPSILON, type EdgeColor, type EditorMode, ElapsedTimeNode, type EmitterBehavior, type EmitterShape, Engine, EnvConstantAmbient, EnvHemisphericAmbient, type EnvLightType, EnvLightWrapper, EnvShIBL, Environment, EnvironmentLighting, EqualNode, Exp2Node, ExpNode, type ExtractMixinReturnType, type ExtractMixinType, FABRIKSolver, FBMWaveGenerator, FFTWaveGenerator, FPSCameraController, type FPSCameraControllerOptions, FWidthNode, FXAA, FaceForwardNode, type FixedGeometryCacheFrame, type FixedGeometryCacheState, FixedGeometryCacheTrack, type FlatPlane, FloorNode, FmaNode, type FogType, FontAsset, type FontAssetFetchOptions, type FontAssetMSDFAtlasSettings, type FontMetrics, type ForwardPlusOptions, FractNode, FunctionCallNode, FunctionInputNode, FunctionOutputNode, GPUClothSystem, type GPUClothSystemOptions, type GPUClothWrapBindingData, type GPUClothWrapBindingTarget, GaussianBlurBlitter, GenericMathNode, type GeometryCacheFrame, type GeometryCacheMeshBinding, type GeometryCacheState, GerstnerWaveGenerator, type GlyphContour, type GlyphData, type GlyphPoint, type GrabberR, type GrabberRW, GraphNode, type GraphNodeInput, type GraphNodeOutput, type GraphStructure, type GrassInstanceInfo, GrassLayer, GrassMaterial, GrassRenderer, Grayscale, HEIGHT_FOG_BIT, Hash1Node, Hash2Node, Hash3Node, HistoryResourceManager, type Host, HumanoidBodyRig, HumanoidHandRig, type HumanoidJointMapping, type IAttachedScript, type IBaseEvent, type IControllerKeyboardEvent, type IControllerKeydownEvent, type IControllerKeypressEvent, type IControllerKeyupEvent, type IControllerMouseEvent, type IControllerPointerCancelEvent, type IControllerPointerDownEvent, type IControllerPointerMoveEvent, type IControllerPointerUpEvent, type IControllerWheelEvent, type IGraphNode, IKAngleConstraint, IKChain, IKConstraint, type IKJoint, IKModifier, IKSolver, type IMixinAlbedoColor, type IMixinBlinnPhong, type IMixinFoliage, type IMixinLambert, type IMixinLight, type IMixinPBRBluePrint, type IMixinPBRCommon, type IMixinPBRMetallicRoughness, type IMixinPBRSpecularGlossiness, type IMixinVertexColor, type IModKey, type IRUniformTexture, type IRUniformValue, type IRenderHook, type IRenderable, type InputEventHandler, InputManager, InstanceBindGroupAllocator, type InstanceData, InstanceIndexNode, type InstanceUniformType, type InterChainConstraint, InvProjMatrixNode, InvSqrtNode, InvViewProjMatrixNode, type JointChainConfig, type JointDynamicSystemConfig, type JointDynamicsColliderHandle, type JointDynamicsFlatPlaneHandle, type JointDynamicsGrabberHandle, JointDynamicsModifier, JointDynamicsSystem, JointDynamicsSystemController, LIGHT_TYPE_DIRECTIONAL, LIGHT_TYPE_NONE, LIGHT_TYPE_POINT, LIGHT_TYPE_RECT, LIGHT_TYPE_SPOT, LambertMaterial, LengthNode, type LineCollisionResult, Log2Node, type LogMode, LogNode, LogicallyAndNode, LogicallyOrNode, MAX_GERSTNER_WAVE_COUNT, MAX_MORPH_ATTRIBUTES, MAX_MORPH_TARGETS, MAX_TERRAIN_MIPMAP_LEVELS, MORPH_ATTRIBUTE_VECTOR_COUNT, MORPH_TARGET_COLOR, MORPH_TARGET_NORMAL, MORPH_TARGET_POSITION, MORPH_TARGET_TANGENT, MORPH_TARGET_TEX0, MORPH_TARGET_TEX1, MORPH_TARGET_TEX2, MORPH_TARGET_TEX3, MORPH_WEIGHTS_VECTOR_COUNT, type MSDFBitmap, type MSDFOptions, type MSDFShape, MSDFText, MSDFTextAtlasManager, MSDFTextMaterial, MSDFTextSprite, MSDFTextSpriteMaterial, MakeVectorNode, Material, MaterialBlueprintIR, type MaterialBlueprintIRBehaviors, type MaterialTextureInfo, MaterialVaryingFlags, MaxNode, Mesh, MeshMaterial, type MeshUpdateCallback, type Metadata, MinNode, MixNode, ModNode, type ModelFetchOptions, type ModelInfo, type MorphData, type MorphInfo, type MorphState, MorphTargetTrack, MultiChainSpringSystem, type MultiChainSpringSystemOptions, NamedObject, type NearestPointsResult, type NodeConnection, NodeEulerRotationTrack, type NodeIterateFunc, NodeRotationTrack, NodeScaleTrack, NodeTranslationTrack, NormalizeNode, NotEqualNode, type OIT, Octree, OctreeNode, OctreeNodeChunk, OctreePlacement, OrbitCameraController, type OrbitCameraControllerOptions, OrthoCamera, PBRBlockNode, PBRBluePrintMaterial, PBRMetallicRoughnessMaterial, type PBRReflectionMode, PBRSpecularGlossinessMaterial, type PCAGeometryCacheState, PCAGeometryCacheTrack, type PCAGeometryCacheTrackData, type PairAdjustment, PannerNode, ParticleMaterial, ParticleSystem, PerlinNoise2DNode, PerspectiveCamera, type PhysicsCurves, type PickResult, type PickTarget, PixelNormalNode, PixelWorldPositionNode, type PlaneCollider, type PlaneCreationOptions, PlaneShape, type PlayAnimationOptions, type PointInit, PointLight, type PointR, type PointRW, type PointTransform, PostEffectLayer, PowNode, Primitive, ProjectionMatrixNode, type PropEdit, type PropertyAccessor, type PropertyAccessorOptions, type PropertySceneNodeOptions, type PropertyToType, PropertyTrack, type PropertyType, type PropertyValue, PunctualLight, QUEUE_OPAQUE, QUEUE_TRANSPARENT, RENDER_PASS_TYPE_DEPTH, RENDER_PASS_TYPE_LIGHT, RENDER_PASS_TYPE_OBJECT_COLOR, RENDER_PASS_TYPE_SHADOWMAP, type RGExecuteContext, type RGExecuteFn, type RGFramebufferDesc, RGHandle, RGHistoryResources, type RGPassBuilder, type RGResolvedSize, type RGResourceLifetime, type RGSizeMode, RGSubpass, type RGTextureAllocator, type RGTextureDesc, Radians2DegreesNode, RaycastVisitor, RectLight, ReflectNode, RefractNode, RenderContext, RenderGraph, RenderGraphExecutor, type RenderItemList, type RenderItemListBundle, type RenderItemListInfo, RenderPass, RenderQueue, type RenderQueueItem, type RenderQueueRef, RenderTarget, type ResolutionTransform, ResolveVertexNormalNode, ResolveVertexPositionNode, ResolveVertexTangentNode, ResourceManager, RotateAboutAxisNode, RuntimeScript, type RuntimeScriptArrayDeclaration, type RuntimeScriptArrayElementDeclaration, type RuntimeScriptConfig, type RuntimeScriptObjectDeclaration, type RuntimeScriptObjectFieldDeclaration, type RuntimeScriptPropertyDeclaration, type RuntimeScriptPropertyInfo, type RuntimeScriptPropertyOptions, type RuntimeScriptPropertyType, type RuntimeScriptValueDeclaration, type RuntimeScriptValueType, SAO, type SamplerType, SaturateNode, Scene, SceneNode, type SceneNodeVisible, ScreenAdapter, type ScreenConfig, ScreenRenderTarget, type ScreenScaleMode, ScriptAttachment, type ScriptAttachmentConfig, ScriptRegistry, ScriptingSystem, type ScriptingSystemOptions, SelectionNode, type SerializableClass, ShaderHelper, ShadowMapPass, ShadowMapper, type ShadowMode, type ShadowQualityPreset, Shape, type ShapeCreationOptions, type ShapeOptionType, type ShapeType, SharedModel, SignNode, SimplexNoise2DNode, type SimulationParams, SinHNode, SinNode, Skeleton, SkeletonModifier, type SkinnedBoundingBox, SkyEnvTextureNode, SkyRenderer, type SkyType, SmoothStepNode, type SphereCollider, type SphereCreationOptions, SphereShape, SpotLight, SpringChain, type SpringCollider, type SpringConstraint, SpringModifier, type SpringParticle, SpringSystem, type SpringSystemOptions, Sprite, SpriteBlockNode, SpriteBlueprintMaterial, SpriteMaterial, SqrtNode, StandardSpriteMaterial, StepNode, type StopAnimationOptions, type SurfaceCheckResult, SwizzleNode, TanHNode, TanNode, type TerrainDebugMode, type TetrahedronCreationOptions, TetrahedronFrameShape, TetrahedronShape, TextSprite, type TextureFetchOptions, type TextureMixinInstanceTypes, type TextureMixinTypes, type TextureProp, type TexturePropUniforms, TextureSampleGrad, TextureSampleNode, type ToMixedTextureType, Tonemap, type TorusCreationOptions, TorusShape, type TransformAccess, TransformNode, type TwistConstraint, TwoBoneIKSolver, UnlitMaterial, VertexBinormalNode, VertexBlockNode, VertexColorNode, VertexIndexNode, VertexNormalNode, VertexOutputNode, VertexPositionNode, VertexTangentNode, VertexUVNode, ViewMatrixNode, ViewProjMatrixNode, type Visitor, Water, type WaveGenerator, WeightedBlendedOIT, applyAngleLimits, applyMaterialMixins, applyResult, applyRuntimeScriptConfig, buildConstraints, buildForwardPlusGraph, buildMSDFShape, buildSurfaceFaces, checkSurfaceCollision, collisionDetection, collisionDetectionCapsule, collisionDetectionSphere, computeMaxDepth, computeNearestPoints, createCapsuleCollider, createGPUClothWrapBindingData, createGeometryCacheState, createPlaneCollider, createSphereCollider, createSpringConstraint, createSpringParticle, createTransformAccess, decode2HalfFromRGBA, decodeFloatFromRGBA, decodeNormalizedFloatFromRGBA, decodeRGBM, defineProps, encode2HalfToRGBA, encodeFloatToRGBA, encodeNormalizedFloatToRGBA, encodeRGBM, ensureGeometryCacheMeshBinding, executeForwardPlusGraph, fetchSampler, gammaToLinear, generateMSDF, getApp, getDevice, getEngine, getInput, getRuntimeScriptProperties, gradient, hash11, hash12, hash13, hash21, hash22, hash23, hash31, hash32, hash33, interleavedGradientNoise, isGPUClothSupported, linearToGamma, mixGeometryCacheBoundingBox, mixinAlbedoColor, mixinBlinnPhong, mixinFoliage, mixinLambert, mixinLight, mixinPBRBluePrint, mixinPBRCommon, mixinPBRMetallicRoughness, mixinPBRSpecularGlossness, mixinTextureProps, mixinVertexColor, noise3D, normalizeRuntimeScriptConfig, normalizeScriptAttachmentConfig, normalizeScriptAttachments, panoramaToCubemap, perlinNoise2D, perlinNoise3D, prefilterCubemap, pushInCollisionDetection, pushInFromCapsule, pushInFromCollider, pushInFromSphere, pushoutFromCapsule, pushoutFromCollider, pushoutFromSphere, resolveCapsuleCollision, resolvePlaneCollision, resolveSphereCollision, restoreGeometryCacheMeshBinding, scriptProp, simulate, smoothNoise3D, sortRootPointsByProximity, temporalResolve, tryGetApp, updateColliderFromNode, valueNoise, whiteNoise, worleyFBM, worleyNoise };
|