@zephyr3d/scene 0.9.14 → 0.9.16
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/animationset.js.map +1 -1
- package/dist/app/engine.js +3 -1
- package/dist/app/engine.js.map +1 -1
- package/dist/asset/assetmanager.js +1 -0
- package/dist/asset/assetmanager.js.map +1 -1
- package/dist/camera/camera.js +87 -0
- package/dist/camera/camera.js.map +1 -1
- package/dist/index.d.ts +380 -6
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/material/meshmaterial.js +8 -1
- package/dist/material/meshmaterial.js.map +1 -1
- package/dist/material/shader/helper.js +6 -0
- package/dist/material/shader/helper.js.map +1 -1
- package/dist/material/skin.js +263 -0
- package/dist/material/skin.js.map +1 -0
- package/dist/posteffect/compositor.js +3 -0
- package/dist/posteffect/compositor.js.map +1 -1
- package/dist/posteffect/sao.js +1 -1
- package/dist/posteffect/sao.js.map +1 -1
- package/dist/posteffect/skinsss.js +194 -0
- package/dist/posteffect/skinsss.js.map +1 -0
- package/dist/posteffect/ssr.js +26 -49
- package/dist/posteffect/ssr.js.map +1 -1
- package/dist/posteffect/sss.js +1 -0
- package/dist/posteffect/sss.js.map +1 -1
- package/dist/posteffect/taa.js +2 -40
- package/dist/posteffect/taa.js.map +1 -1
- package/dist/render/abuffer_oit.js +1 -0
- package/dist/render/abuffer_oit.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/lightpass.js +4 -1
- package/dist/render/lightpass.js.map +1 -1
- package/dist/render/render_queue.js +1 -0
- package/dist/render/render_queue.js.map +1 -1
- package/dist/render/renderer.js +1 -0
- package/dist/render/renderer.js.map +1 -1
- package/dist/render/rendergraph/device_pool_allocator.js +12 -5
- package/dist/render/rendergraph/device_pool_allocator.js.map +1 -1
- package/dist/render/rendergraph/executor.js +270 -1
- package/dist/render/rendergraph/executor.js.map +1 -1
- package/dist/render/rendergraph/forward_plus_builder.js +97 -9
- package/dist/render/rendergraph/forward_plus_builder.js.map +1 -1
- package/dist/render/rendergraph/types.js.map +1 -1
- package/dist/scene/basesprite.js +1 -0
- package/dist/scene/basesprite.js.map +1 -1
- package/dist/scene/batchgroup.js +1 -0
- 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/light.js +6 -4
- package/dist/scene/light.js.map +1 -1
- package/dist/scene/mesh.js +1 -0
- package/dist/scene/mesh.js.map +1 -1
- package/dist/scene/msdftext.js +1 -0
- package/dist/scene/msdftext.js.map +1 -1
- package/dist/scene/msdftextsprite.js +1 -0
- package/dist/scene/msdftextsprite.js.map +1 -1
- package/dist/scene/particlesys.js +1 -0
- package/dist/scene/particlesys.js.map +1 -1
- package/dist/scene/scene.js +2 -0
- package/dist/scene/scene.js.map +1 -1
- 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/water.js +1 -0
- package/dist/scene/water.js.map +1 -1
- package/dist/shaders/shadow.js +504 -1
- package/dist/shaders/shadow.js.map +1 -1
- package/dist/shadow/esm.js +1 -0
- package/dist/shadow/esm.js.map +1 -1
- package/dist/shadow/pcf_opt.js +1 -0
- package/dist/shadow/pcf_opt.js.map +1 -1
- package/dist/shadow/pcf_pd.js +1 -0
- package/dist/shadow/pcf_pd.js.map +1 -1
- package/dist/shadow/pcss.js +181 -0
- package/dist/shadow/pcss.js.map +1 -0
- package/dist/shadow/shader.js +1 -0
- package/dist/shadow/shader.js.map +1 -1
- package/dist/shadow/shadow_impl.js.map +1 -1
- package/dist/shadow/shadowmapper.js +86 -8
- package/dist/shadow/shadowmapper.js.map +1 -1
- package/dist/shadow/ssm.js +1 -0
- package/dist/shadow/ssm.js.map +1 -1
- package/dist/shadow/vsm.js +1 -0
- package/dist/shadow/vsm.js.map +1 -1
- package/dist/utility/serialization/manager.js +3 -1
- package/dist/utility/serialization/manager.js.map +1 -1
- package/dist/utility/serialization/scene/animation.js +1 -0
- package/dist/utility/serialization/scene/animation.js.map +1 -1
- package/dist/utility/serialization/scene/batch.js +1 -0
- package/dist/utility/serialization/scene/batch.js.map +1 -1
- package/dist/utility/serialization/scene/camera.js +122 -0
- package/dist/utility/serialization/scene/camera.js.map +1 -1
- package/dist/utility/serialization/scene/common.js +1 -0
- package/dist/utility/serialization/scene/common.js.map +1 -1
- package/dist/utility/serialization/scene/light.js +82 -21
- package/dist/utility/serialization/scene/light.js.map +1 -1
- package/dist/utility/serialization/scene/material.js +195 -3
- package/dist/utility/serialization/scene/material.js.map +1 -1
- package/dist/utility/serialization/scene/mesh.js +1 -0
- package/dist/utility/serialization/scene/mesh.js.map +1 -1
- package/dist/utility/serialization/scene/node.js +1 -0
- package/dist/utility/serialization/scene/node.js.map +1 -1
- package/dist/utility/serialization/scene/particle.js +1 -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 +1 -0
- package/dist/utility/serialization/scene/sprite.js.map +1 -1
- package/dist/utility/serialization/scene/terrain.js +1 -0
- package/dist/utility/serialization/scene/terrain.js.map +1 -1
- package/dist/utility/serialization/scene/text.js +1 -0
- package/dist/utility/serialization/scene/text.js.map +1 -1
- package/dist/utility/serialization/scene/water.js +1 -0
- package/dist/utility/serialization/scene/water.js.map +1 -1
- package/dist/values.js +1 -0
- package/dist/values.js.map +1 -1
- package/package.json +2 -2
- package/dist/animation/joint_dynamics/convex_collider.js +0 -320
- package/dist/animation/joint_dynamics/convex_collider.js.map +0 -1
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, TextureAddressMode, TextureFilterMode, SamplerOptions, TextureAtlasManager, DeviceBackend } 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, TimestampQueryStatus, ColorState, TextureAddressMode, TextureFilterMode, SamplerOptions, TextureAtlasManager, DeviceBackend } 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
|
|
|
@@ -607,7 +607,11 @@ declare class ShadowRegion extends Disposable {
|
|
|
607
607
|
* Shadow mapping mode
|
|
608
608
|
* @public
|
|
609
609
|
*/
|
|
610
|
-
type ShadowMode = 'hard' | 'vsm' | 'esm' | 'pcf
|
|
610
|
+
type ShadowMode = 'hard' | 'vsm' | 'esm' | 'pcf' | 'pcss'
|
|
611
|
+
/** @deprecated Use `pcf` instead. */
|
|
612
|
+
| 'pcf-pd'
|
|
613
|
+
/** @deprecated Use `pcf` instead. */
|
|
614
|
+
| 'pcf-opt';
|
|
611
615
|
/**
|
|
612
616
|
* Preset shadow quality profiles.
|
|
613
617
|
*
|
|
@@ -671,6 +675,21 @@ declare class ShadowMapper extends Disposable {
|
|
|
671
675
|
/** Kernel size for optimized PCF */
|
|
672
676
|
get pcfKernelSize(): number;
|
|
673
677
|
set pcfKernelSize(val: number);
|
|
678
|
+
/** Light radius for PCSS shadow, measured in shadow-map texels */
|
|
679
|
+
get pcssLightRadius(): number;
|
|
680
|
+
set pcssLightRadius(val: number);
|
|
681
|
+
/** Blocker search sample count for PCSS shadow */
|
|
682
|
+
get pcssBlockerSampleCount(): number;
|
|
683
|
+
set pcssBlockerSampleCount(val: number);
|
|
684
|
+
/** Filter sample count for PCSS shadow */
|
|
685
|
+
get pcssFilterSampleCount(): number;
|
|
686
|
+
set pcssFilterSampleCount(val: number);
|
|
687
|
+
/** Maximum PCSS filter radius, measured in shadow-map texels */
|
|
688
|
+
get pcssMaxFilterRadius(): number;
|
|
689
|
+
set pcssMaxFilterRadius(val: number);
|
|
690
|
+
/** If true, rotates PCSS sampling pattern over frames for TAA accumulation */
|
|
691
|
+
get pcssTemporalJitter(): boolean;
|
|
692
|
+
set pcssTemporalJitter(val: boolean);
|
|
674
693
|
/** Kernel size of VSM */
|
|
675
694
|
get vsmBlurKernelSize(): number;
|
|
676
695
|
set vsmBlurKernelSize(val: number);
|
|
@@ -2339,7 +2358,7 @@ declare class MeshMaterial extends Material implements Clonable<MeshMaterial> {
|
|
|
2339
2358
|
* @param sssTransmission - Optional thin-shell transmission lighting color for SSS composition.
|
|
2340
2359
|
* @returns void
|
|
2341
2360
|
*/
|
|
2342
|
-
outputFragmentColor(scope: PBInsideFunctionScope, worldPos: PBShaderExp, color: Nullable<PBShaderExp>, ssrRoughness?: PBShaderExp, ssrNormal?: PBShaderExp, sssProfile?: PBShaderExp, sssParams?: PBShaderExp, sssDiffuse?: PBShaderExp, sssTransmission?: PBShaderExp, sssProfileEnabled?: boolean): void;
|
|
2361
|
+
outputFragmentColor(scope: PBInsideFunctionScope, worldPos: PBShaderExp, color: Nullable<PBShaderExp>, ssrRoughness?: PBShaderExp, ssrNormal?: PBShaderExp, sssProfile?: PBShaderExp, sssParams?: PBShaderExp, sssDiffuse?: PBShaderExp, sssTransmission?: PBShaderExp, sssProfileEnabled?: boolean, skinSSS?: PBShaderExp): void;
|
|
2343
2362
|
}
|
|
2344
2363
|
|
|
2345
2364
|
declare const LambertMaterial_base: typeof MeshMaterial & (new (...args: any[]) => IMixinLight) & (new (...args: any[]) => IMixinVertexColor);
|
|
@@ -2795,6 +2814,72 @@ declare class SubsurfaceProfile {
|
|
|
2795
2814
|
private clamp01;
|
|
2796
2815
|
}
|
|
2797
2816
|
|
|
2817
|
+
declare const SkinMaterial_base: typeof MeshMaterial & (new (...args: any[]) => IMixinLight) & (new (...args: any[]) => IMixinVertexColor) & (new (...args: any[]) => TextureProp<"subsurface"> & {
|
|
2818
|
+
getSubsurfaceTextureUniform: (scope: _zephyr3d_device.PBInsideFunctionScope) => _zephyr3d_device.PBShaderExp;
|
|
2819
|
+
getSubsurfaceTexCoord: (scope: _zephyr3d_device.PBInsideFunctionScope) => _zephyr3d_device.PBShaderExp;
|
|
2820
|
+
} & {
|
|
2821
|
+
sampleSubsurfaceTexture: (scope: _zephyr3d_device.PBInsideFunctionScope, texCoord?: _zephyr3d_device.PBShaderExp) => _zephyr3d_device.PBShaderExp;
|
|
2822
|
+
});
|
|
2823
|
+
/**
|
|
2824
|
+
* Stylized realtime skin material.
|
|
2825
|
+
*
|
|
2826
|
+
* @remarks
|
|
2827
|
+
* This material is designed for the {@link SkinSSS} post effect. It renders a regular lit color,
|
|
2828
|
+
* and when `camera.skinSSS` is enabled it also writes a skin lighting multiplier into the
|
|
2829
|
+
* `SkinSSSTexture` MRT. The post effect blurs that side buffer in screen space to create a soft
|
|
2830
|
+
* character-skin look similar to simple game/anime skin renderers.
|
|
2831
|
+
*
|
|
2832
|
+
* The optional `subsurfaceTexture` uses R as skin mask and G as local softness.
|
|
2833
|
+
*
|
|
2834
|
+
* @public
|
|
2835
|
+
*/
|
|
2836
|
+
declare class SkinMaterial extends SkinMaterial_base implements Clonable<SkinMaterial> {
|
|
2837
|
+
private static readonly FEATURE_VERTEX_NORMAL;
|
|
2838
|
+
private static readonly FEATURE_VERTEX_TANGENT;
|
|
2839
|
+
private _shininess;
|
|
2840
|
+
private _specularStrength;
|
|
2841
|
+
private _diffuseWrap;
|
|
2842
|
+
private _diffuseSoftness;
|
|
2843
|
+
private _scatterWrap;
|
|
2844
|
+
private _scatterStrength;
|
|
2845
|
+
private readonly _scatterColor;
|
|
2846
|
+
constructor();
|
|
2847
|
+
/** Marker used by the forward render graph to allocate the SkinSSS MRT. */
|
|
2848
|
+
get skinSSS(): boolean;
|
|
2849
|
+
clone(): SkinMaterial;
|
|
2850
|
+
copyFrom(other: this): void;
|
|
2851
|
+
/** true if vertex normal attribute presents */
|
|
2852
|
+
get vertexNormal(): boolean;
|
|
2853
|
+
set vertexNormal(val: boolean);
|
|
2854
|
+
/** true if vertex tangent attribute presents */
|
|
2855
|
+
get vertexTangent(): boolean;
|
|
2856
|
+
set vertexTangent(val: boolean);
|
|
2857
|
+
/** Blinn specular exponent. Higher values produce smaller highlights. */
|
|
2858
|
+
get shininess(): number;
|
|
2859
|
+
set shininess(val: number);
|
|
2860
|
+
/** Direct specular strength. Keep this restrained for soft skin. */
|
|
2861
|
+
get specularStrength(): number;
|
|
2862
|
+
set specularStrength(val: number);
|
|
2863
|
+
/** Wrap amount for visible diffuse lighting. */
|
|
2864
|
+
get diffuseWrap(): number;
|
|
2865
|
+
set diffuseWrap(val: number);
|
|
2866
|
+
/** Blend from hard Lambert lighting to wrapped diffuse lighting. */
|
|
2867
|
+
get diffuseSoftness(): number;
|
|
2868
|
+
set diffuseSoftness(val: number);
|
|
2869
|
+
/** Wider wrap used only for the post-process scattering source. */
|
|
2870
|
+
get scatterWrap(): number;
|
|
2871
|
+
set scatterWrap(val: number);
|
|
2872
|
+
/** Strength of the multiplier written into the SkinSSS side buffer. */
|
|
2873
|
+
get scatterStrength(): number;
|
|
2874
|
+
set scatterStrength(val: number);
|
|
2875
|
+
/** Warm tint for the blurred skin lighting contribution. */
|
|
2876
|
+
get scatterColor(): Immutable<Vector4>;
|
|
2877
|
+
set scatterColor(val: Immutable<Vector4>);
|
|
2878
|
+
vertexShader(scope: PBFunctionScope): void;
|
|
2879
|
+
fragmentShader(scope: PBFunctionScope): void;
|
|
2880
|
+
applyUniformValues(bindGroup: BindGroup, ctx: DrawContext, pass: number): void;
|
|
2881
|
+
}
|
|
2882
|
+
|
|
2798
2883
|
declare const GrassMaterial_base: typeof MeshMaterial & (new (...args: any[]) => IMixinPBRMetallicRoughness) & (new (...args: any[]) => IMixinFoliage);
|
|
2799
2884
|
/**
|
|
2800
2885
|
* Terrain grass material
|
|
@@ -7313,6 +7398,79 @@ interface CompiledRenderGraph {
|
|
|
7313
7398
|
/** Resource lifetime information keyed by resource ID. */
|
|
7314
7399
|
readonly lifetimes: ReadonlyMap<number, RGResourceLifetime>;
|
|
7315
7400
|
}
|
|
7401
|
+
/**
|
|
7402
|
+
* Profiling scope type in a render graph timing tree.
|
|
7403
|
+
* @public
|
|
7404
|
+
*/
|
|
7405
|
+
type RGProfileScopeType = 'graph' | 'pass' | 'subpass';
|
|
7406
|
+
/**
|
|
7407
|
+
* Render graph GPU timestamp profiling options.
|
|
7408
|
+
* @public
|
|
7409
|
+
*/
|
|
7410
|
+
interface RGProfilingOptions {
|
|
7411
|
+
/** Enable render graph timestamp profiling. Default true when an options object is provided. */
|
|
7412
|
+
enabled?: boolean;
|
|
7413
|
+
/** Measure the whole graph execution. Default true. */
|
|
7414
|
+
graph?: boolean;
|
|
7415
|
+
/** Measure every render graph pass. Default true. */
|
|
7416
|
+
pass?: boolean;
|
|
7417
|
+
/** Measure every subpass and expose it as a child scope. Default true. */
|
|
7418
|
+
subpass?: boolean;
|
|
7419
|
+
/** Include pending upload/copy commands at timestamp boundaries. Default true. */
|
|
7420
|
+
includePendingUploads?: boolean;
|
|
7421
|
+
/** Allow graph profile scopes to remain open across frame boundaries. Default false. */
|
|
7422
|
+
allowCrossFrame?: boolean;
|
|
7423
|
+
/** Maximum unresolved profile frames kept by the executor. Default 3. */
|
|
7424
|
+
maxPendingFrames?: number;
|
|
7425
|
+
/** Root graph profile label. Default 'RenderGraph'. */
|
|
7426
|
+
label?: string;
|
|
7427
|
+
/** Device used for timestamp queries. If omitted, the scene global getDevice() is used. */
|
|
7428
|
+
device?: AbstractDevice;
|
|
7429
|
+
}
|
|
7430
|
+
/**
|
|
7431
|
+
* Render graph executor construction options.
|
|
7432
|
+
* @public
|
|
7433
|
+
*/
|
|
7434
|
+
interface RenderGraphExecutorOptions {
|
|
7435
|
+
/** Device used for timestamp queries. If omitted, the scene global getDevice() is used. */
|
|
7436
|
+
device?: AbstractDevice;
|
|
7437
|
+
/** Render graph timestamp profiling options. Default false. */
|
|
7438
|
+
profiling?: boolean | RGProfilingOptions;
|
|
7439
|
+
}
|
|
7440
|
+
/**
|
|
7441
|
+
* Resolved GPU timing for one graph/pass/subpass scope.
|
|
7442
|
+
* @public
|
|
7443
|
+
*/
|
|
7444
|
+
interface RGProfileScopeResult {
|
|
7445
|
+
/** Scope label. */
|
|
7446
|
+
name: string;
|
|
7447
|
+
/** Scope type. */
|
|
7448
|
+
type: RGProfileScopeType;
|
|
7449
|
+
/** Timestamp query id used by the device, or 0 for synthetic/unsupported scopes. */
|
|
7450
|
+
queryId: number;
|
|
7451
|
+
/** GPU duration in milliseconds. */
|
|
7452
|
+
durationMs: number;
|
|
7453
|
+
/** Timestamp result status. */
|
|
7454
|
+
status: TimestampQueryStatus;
|
|
7455
|
+
/** Child scopes. */
|
|
7456
|
+
children: RGProfileScopeResult[];
|
|
7457
|
+
/** Optional diagnostic message. */
|
|
7458
|
+
message?: string;
|
|
7459
|
+
}
|
|
7460
|
+
/**
|
|
7461
|
+
* Resolved GPU timing tree for one render graph execution.
|
|
7462
|
+
* @public
|
|
7463
|
+
*/
|
|
7464
|
+
interface RGProfileResult {
|
|
7465
|
+
/** Render frame id when profiling began. */
|
|
7466
|
+
frameId: number;
|
|
7467
|
+
/** Aggregate profile status. */
|
|
7468
|
+
status: TimestampQueryStatus;
|
|
7469
|
+
/** Root graph scope. */
|
|
7470
|
+
graph: RGProfileScopeResult;
|
|
7471
|
+
/** Top-level pass scopes. Same objects as graph.children. */
|
|
7472
|
+
passes: RGProfileScopeResult[];
|
|
7473
|
+
}
|
|
7316
7474
|
/**
|
|
7317
7475
|
* Resolved dimensions for a texture allocation.
|
|
7318
7476
|
* @public
|
|
@@ -7506,7 +7664,36 @@ declare class RenderGraph {
|
|
|
7506
7664
|
* @public
|
|
7507
7665
|
*/
|
|
7508
7666
|
declare class RenderGraphExecutor<TTexture = unknown, TFramebuffer = unknown> {
|
|
7509
|
-
|
|
7667
|
+
private static _defaultProfilingOptions;
|
|
7668
|
+
private static _latestProfileResult;
|
|
7669
|
+
private static _latestPendingProfileFrame;
|
|
7670
|
+
private static _latestResolvedProfileSerial;
|
|
7671
|
+
private static _nextProfileSerial;
|
|
7672
|
+
constructor(allocator: RGTextureAllocator<TTexture, TFramebuffer>, backbufferWidth: number, backbufferHeight: number, options?: RenderGraphExecutorOptions);
|
|
7673
|
+
/**
|
|
7674
|
+
* Set the default profiling options used by newly constructed render graph executors.
|
|
7675
|
+
*/
|
|
7676
|
+
static setDefaultProfilingOptions(options: boolean | RGProfilingOptions): void;
|
|
7677
|
+
/**
|
|
7678
|
+
* Get the latest resolved profile result from any render graph executor.
|
|
7679
|
+
*/
|
|
7680
|
+
static getLatestProfileResult(): RGProfileResult | null;
|
|
7681
|
+
/**
|
|
7682
|
+
* Resolve the latest pending render graph profile result from any executor.
|
|
7683
|
+
*/
|
|
7684
|
+
static resolveProfileResult(): Promise<RGProfileResult | null>;
|
|
7685
|
+
/**
|
|
7686
|
+
* Enable, disable, or update timestamp profiling for this executor.
|
|
7687
|
+
*/
|
|
7688
|
+
setProfilingOptions(options: boolean | RGProfilingOptions): void;
|
|
7689
|
+
/**
|
|
7690
|
+
* Get the latest resolved profile result produced by this executor.
|
|
7691
|
+
*/
|
|
7692
|
+
getLatestProfileResult(): RGProfileResult | null;
|
|
7693
|
+
/**
|
|
7694
|
+
* Resolve the latest pending profile result produced by this executor.
|
|
7695
|
+
*/
|
|
7696
|
+
resolveProfileResult(): Promise<RGProfileResult | null>;
|
|
7510
7697
|
/**
|
|
7511
7698
|
* Update the backbuffer dimensions used for 'backbuffer-relative' sizing.
|
|
7512
7699
|
*/
|
|
@@ -7536,6 +7723,64 @@ declare class RenderGraphExecutor<TTexture = unknown, TFramebuffer = unknown> {
|
|
|
7536
7723
|
reset(): void;
|
|
7537
7724
|
}
|
|
7538
7725
|
|
|
7726
|
+
/**
|
|
7727
|
+
* Bridges the render graph's {@link RGTextureAllocator} interface to the
|
|
7728
|
+
* engine's device resource pool (`device.pool`).
|
|
7729
|
+
*
|
|
7730
|
+
* Transient textures are fetched from the pool on `allocate()` and
|
|
7731
|
+
* returned to the pool on `release()`, enabling automatic reuse
|
|
7732
|
+
* across frames without manual lifecycle management.
|
|
7733
|
+
*
|
|
7734
|
+
* Usage:
|
|
7735
|
+
* ```ts
|
|
7736
|
+
* const allocator = new DevicePoolAllocator();
|
|
7737
|
+
* const executor = new RenderGraphExecutor(allocator, width, height);
|
|
7738
|
+
* ```
|
|
7739
|
+
*
|
|
7740
|
+
* @public
|
|
7741
|
+
*/
|
|
7742
|
+
declare class DevicePoolAllocator implements RGTextureAllocator<Texture2D, FrameBuffer> {
|
|
7743
|
+
private _device;
|
|
7744
|
+
/**
|
|
7745
|
+
* Creates a new instance of the DevicePoolAllocator.
|
|
7746
|
+
* @param device - Optional device instance to use for resource allocation. If not provided, the global device will be used.
|
|
7747
|
+
*/
|
|
7748
|
+
constructor(device?: AbstractDevice);
|
|
7749
|
+
/**
|
|
7750
|
+
* Allocate a transient texture from the device pool.
|
|
7751
|
+
*
|
|
7752
|
+
* @param desc - Texture descriptor from the render graph pass.
|
|
7753
|
+
* @param size - Resolved pixel dimensions.
|
|
7754
|
+
* @returns A pooled Texture2D instance.
|
|
7755
|
+
*/
|
|
7756
|
+
allocate(desc: RGTextureDesc, size: RGResolvedSize): Texture2D;
|
|
7757
|
+
/**
|
|
7758
|
+
* Release a transient texture back to the device pool.
|
|
7759
|
+
*
|
|
7760
|
+
* @param texture - The texture to release.
|
|
7761
|
+
*/
|
|
7762
|
+
release(texture: Texture2D): void;
|
|
7763
|
+
/**
|
|
7764
|
+
* Retain a pooled texture so it can be owned outside the graph lifetime.
|
|
7765
|
+
*
|
|
7766
|
+
* @param texture - The texture to retain.
|
|
7767
|
+
*/
|
|
7768
|
+
retain(texture: Texture2D): void;
|
|
7769
|
+
/**
|
|
7770
|
+
* Allocate a temporary framebuffer from the device pool.
|
|
7771
|
+
*
|
|
7772
|
+
* @param desc - Framebuffer descriptor from the render graph pass.
|
|
7773
|
+
* @returns A pooled FrameBuffer instance.
|
|
7774
|
+
*/
|
|
7775
|
+
allocateFramebuffer(desc: RGFramebufferDesc): FrameBuffer;
|
|
7776
|
+
/**
|
|
7777
|
+
* Release a temporary framebuffer back to the device pool.
|
|
7778
|
+
*
|
|
7779
|
+
* @param framebuffer - The framebuffer to release.
|
|
7780
|
+
*/
|
|
7781
|
+
releaseFramebuffer(framebuffer: FrameBuffer): void;
|
|
7782
|
+
}
|
|
7783
|
+
|
|
7539
7784
|
/**
|
|
7540
7785
|
* Manages cross-frame history resources that can be imported into a render graph.
|
|
7541
7786
|
*
|
|
@@ -7709,6 +7954,74 @@ declare class HistoryResourceManager<TTexture = Texture2D> {
|
|
|
7709
7954
|
dispose(): void;
|
|
7710
7955
|
}
|
|
7711
7956
|
|
|
7957
|
+
/**
|
|
7958
|
+
* Resource names for render graph history resources.
|
|
7959
|
+
* @public
|
|
7960
|
+
*/
|
|
7961
|
+
declare const RGHistoryResources: {
|
|
7962
|
+
readonly TAA_COLOR: "taaColor";
|
|
7963
|
+
readonly TAA_MOTION_VECTOR: "taaMotionVector";
|
|
7964
|
+
readonly SSR_REFLECT: "ssrReflect";
|
|
7965
|
+
readonly SSR_MOTION_VECTOR: "ssrMotionVector";
|
|
7966
|
+
};
|
|
7967
|
+
|
|
7968
|
+
/**
|
|
7969
|
+
* Options controlling which features are enabled in the forward+ pipeline.
|
|
7970
|
+
*
|
|
7971
|
+
* Derived from camera settings and device capabilities each frame.
|
|
7972
|
+
*
|
|
7973
|
+
* @public
|
|
7974
|
+
*/
|
|
7975
|
+
interface ForwardPlusOptions {
|
|
7976
|
+
/** Enable depth prepass (always true for now). */
|
|
7977
|
+
depthPrepass: boolean;
|
|
7978
|
+
/** Enable motion vectors (requires TAA or motionBlur). */
|
|
7979
|
+
motionVectors: boolean;
|
|
7980
|
+
/** Enable Hi-Z pyramid (for SSR ray tracing). */
|
|
7981
|
+
hiZ: boolean;
|
|
7982
|
+
/** Enable screen-space reflections. */
|
|
7983
|
+
ssr: boolean;
|
|
7984
|
+
/** Whether to compute SSR thickness. */
|
|
7985
|
+
ssrCalcThickness: boolean;
|
|
7986
|
+
/** Whether GPU picking is requested this frame. */
|
|
7987
|
+
gpuPicking: boolean;
|
|
7988
|
+
/** Whether transmission/refraction materials are present. */
|
|
7989
|
+
needSceneColor: boolean;
|
|
7990
|
+
/** Whether scene-color-dependent materials also require scene depth. */
|
|
7991
|
+
needSceneColorWithDepth: boolean;
|
|
7992
|
+
/** Whether SSR needs transmission depth before the main light pass. */
|
|
7993
|
+
needsTransmissionDepthForSSR: boolean;
|
|
7994
|
+
/** Enable screen-space subsurface scattering. */
|
|
7995
|
+
sss: boolean;
|
|
7996
|
+
/** Enable the stylized skin-specific SSS pass. */
|
|
7997
|
+
skinSSS: boolean;
|
|
7998
|
+
}
|
|
7999
|
+
/**
|
|
8000
|
+
* Constructs a render graph representing the forward+ pipeline.
|
|
8001
|
+
*
|
|
8002
|
+
* Each step in the existing `SceneRenderer._renderScene` becomes a graph pass.
|
|
8003
|
+
* Execute callbacks delegate to the existing rendering code, sharing a mutable
|
|
8004
|
+
* `FrameState`.
|
|
8005
|
+
*
|
|
8006
|
+
* @param graph - The render graph to populate.
|
|
8007
|
+
* @param ctx - The draw context for this frame.
|
|
8008
|
+
* @param renderQueue - The culled render queue.
|
|
8009
|
+
* @param options - Pipeline feature toggles.
|
|
8010
|
+
* @returns The backbuffer handle (graph output).
|
|
8011
|
+
*
|
|
8012
|
+
* @public
|
|
8013
|
+
*/
|
|
8014
|
+
declare function buildForwardPlusGraph(graph: RenderGraph, ctx: DrawContext, renderQueue: RenderQueue, options: ForwardPlusOptions): RGHandle;
|
|
8015
|
+
/**
|
|
8016
|
+
* Build, compile, and execute the forward+ pipeline as a render graph.
|
|
8017
|
+
*
|
|
8018
|
+
* This is the drop-in replacement for `SceneRenderer._renderScene`.
|
|
8019
|
+
*
|
|
8020
|
+
* @param ctx - The draw context for this frame.
|
|
8021
|
+
* @public
|
|
8022
|
+
*/
|
|
8023
|
+
declare function executeForwardPlusGraph(ctx: DrawContext): void;
|
|
8024
|
+
|
|
7712
8025
|
/**
|
|
7713
8026
|
* Rendering layer of post processing effects
|
|
7714
8027
|
* @public
|
|
@@ -8470,6 +8783,24 @@ declare class Camera extends SceneNode {
|
|
|
8470
8783
|
/** Debug visualization for screen-space SSS buffers. */
|
|
8471
8784
|
get sssDebugView(): SSSDebugView;
|
|
8472
8785
|
set sssDebugView(val: SSSDebugView);
|
|
8786
|
+
/** Gets whether the dedicated Skin SSS post effect is enabled. */
|
|
8787
|
+
get skinSSS(): boolean;
|
|
8788
|
+
set skinSSS(val: boolean);
|
|
8789
|
+
/** Final blend strength for the dedicated Skin SSS post effect. */
|
|
8790
|
+
get skinSSSStrength(): number;
|
|
8791
|
+
set skinSSSStrength(val: number);
|
|
8792
|
+
/** Bias subtracted from the blurred skin mask before compositing. */
|
|
8793
|
+
get skinSSSOpacity(): number;
|
|
8794
|
+
set skinSSSOpacity(val: number);
|
|
8795
|
+
/** Pixel spacing between blur taps. The reference shader uses 2. */
|
|
8796
|
+
get skinSSSSampleStep(): number;
|
|
8797
|
+
set skinSSSSampleStep(val: number);
|
|
8798
|
+
/** Depth rejection scale. The reference shader uses 80. */
|
|
8799
|
+
get skinSSSDepthScale(): number;
|
|
8800
|
+
set skinSSSDepthScale(val: number);
|
|
8801
|
+
/** Multiplier applied to the blurred skin lighting multiplier before compositing. */
|
|
8802
|
+
get skinSSSColorBoost(): number;
|
|
8803
|
+
set skinSSSColorBoost(val: number);
|
|
8473
8804
|
/**
|
|
8474
8805
|
* Gets whether SSAO is enabled.
|
|
8475
8806
|
*/
|
|
@@ -8920,6 +9251,46 @@ declare class SAO extends AbstractPostEffect {
|
|
|
8920
9251
|
private _getIntermediateTextureFormat;
|
|
8921
9252
|
}
|
|
8922
9253
|
|
|
9254
|
+
/**
|
|
9255
|
+
* Stylized screen-space skin scattering pass.
|
|
9256
|
+
*
|
|
9257
|
+
* @remarks
|
|
9258
|
+
* This is intentionally separate from the profile-based {@link SSS} pass. It follows the simpler
|
|
9259
|
+
* depth-aware blur used by many character renderers: a skin material writes a lighting multiplier
|
|
9260
|
+
* into a side buffer, then this pass performs a fixed 9x9 depth-aware blur and composites it back
|
|
9261
|
+
* over the opaque color.
|
|
9262
|
+
*
|
|
9263
|
+
* @public
|
|
9264
|
+
*/
|
|
9265
|
+
declare class SkinSSS extends AbstractPostEffect {
|
|
9266
|
+
private static _program;
|
|
9267
|
+
private _bindGroup;
|
|
9268
|
+
private _strength;
|
|
9269
|
+
private _opacity;
|
|
9270
|
+
private _sampleStep;
|
|
9271
|
+
private _depthScale;
|
|
9272
|
+
private _colorBoost;
|
|
9273
|
+
constructor();
|
|
9274
|
+
/** Final blend strength. */
|
|
9275
|
+
get strength(): number;
|
|
9276
|
+
set strength(val: number);
|
|
9277
|
+
/** Bias subtracted from the blurred skin mask before compositing. */
|
|
9278
|
+
get opacity(): number;
|
|
9279
|
+
set opacity(val: number);
|
|
9280
|
+
/** Pixel spacing between blur taps. The reference shader uses 2. */
|
|
9281
|
+
get sampleStep(): number;
|
|
9282
|
+
set sampleStep(val: number);
|
|
9283
|
+
/** Depth rejection scale. The reference shader uses 80. */
|
|
9284
|
+
get depthScale(): number;
|
|
9285
|
+
set depthScale(val: number);
|
|
9286
|
+
/** Multiplier applied to the blurred skin lighting multiplier before compositing. */
|
|
9287
|
+
get colorBoost(): number;
|
|
9288
|
+
set colorBoost(val: number);
|
|
9289
|
+
requireLinearDepthTexture(): boolean;
|
|
9290
|
+
apply(ctx: DrawContext, inputColorTexture: Texture2D, sceneDepthTexture: Texture2D, srgbOutput: boolean): void;
|
|
9291
|
+
private createProgram;
|
|
9292
|
+
}
|
|
9293
|
+
|
|
8923
9294
|
/**
|
|
8924
9295
|
* FXAA post effect
|
|
8925
9296
|
* @public
|
|
@@ -9092,6 +9463,8 @@ interface DrawContext {
|
|
|
9092
9463
|
SSSDiffuseTexture: Nullable<Texture2D>;
|
|
9093
9464
|
/** SSS transmission-lighting texture used for thin-shell/backscatter contributions. */
|
|
9094
9465
|
SSSTransmissionTexture: Nullable<Texture2D>;
|
|
9466
|
+
/** Skin-specific screen-space scattering source texture. */
|
|
9467
|
+
SkinSSSTexture: Nullable<Texture2D>;
|
|
9095
9468
|
/** SSR SDF proxy uniform buffer (pair of vec4: min.xyz / max.xyz for each box). */
|
|
9096
9469
|
ssrSDFBoxBuffer: Nullable<GPUDataBuffer>;
|
|
9097
9470
|
/** Number of valid SDF proxy boxes in `ssrSDFBoxBuffer`. */
|
|
@@ -27671,7 +28044,8 @@ declare const enum MaterialVaryingFlags {
|
|
|
27671
28044
|
SSS_STORE_PROFILE = 32,
|
|
27672
28045
|
SSS_STORE_DIFFUSE = 64,
|
|
27673
28046
|
SSS_STORE_NORMAL = 128,
|
|
27674
|
-
SSS_STORE_TRANSMISSION = 256
|
|
28047
|
+
SSS_STORE_TRANSMISSION = 256,
|
|
28048
|
+
SKIN_SSS_STORE = 512
|
|
27675
28049
|
}
|
|
27676
28050
|
/**
|
|
27677
28051
|
* Atmospheric Fog flag
|
|
@@ -27684,4 +28058,4 @@ declare const ATMOSPHERIC_FOG_BIT: number;
|
|
|
27684
28058
|
*/
|
|
27685
28059
|
declare const HEIGHT_FOG_BIT: number;
|
|
27686
28060
|
|
|
27687
|
-
export { AABBTree, ABufferOIT, ATMOSPHERIC_FOG_BIT, AbsNode, AbstractPostEffect, AllConditionNode, type AngleLimitConfig, AnimationClip, AnimationController, type AnimationControllerEventMap, type AnimationControllerSetStateOptions, type AnimationControllerStateDefinition, type AnimationFrameEvent, type AnimationMarker, type AnimationMarkerEvent, AnimationPlayback, type AnimationPlaybackEvent, type AnimationPlaybackEventMap, type AnimationPlaybackState, type AnimationPlaybackStopEvent, type AnimationPlaybackSyncMode, type AnimationPlaybackSyncOptions, AnimationSet, type AnimationSetEventMap, type AnimationStopReason, type AnimationTimeRef, AnimationTimeline, type AnimationTimelineActiveDisposition, type AnimationTimelineDefinition, type AnimationTimelineEventPolicy, type AnimationTimelineEventResponse, type AnimationTimelineEventResult, type AnimationTimelineEventTarget, AnimationTimelineRunner, type AnimationTimelineRunnerEventMap, type AnimationTimelineRunnerState, type AnimationTimelineStateReturnTarget, type AnimationTimelineStep, AnimationTrack, AnyConditionNode, type AppCreationOptions, type AppOptions, Application, type ApplyResultOutput, ArcCosNode, ArcSinNode, ArcTan2Node, ArcTanNode, ArccosineHNode, ArcsineHNode, ArctangentHNode, type AssetAnimationData, type AssetAnimationTrack, type AssetFixedGeometryCacheAnimationTrack, type AssetGeometryCacheAnimationTrack, type AssetGeometryCacheFrame, AssetHierarchyNode, type AssetImageInfo, type AssetJointDynamicsChain, type AssetJointDynamicsCollider, type AssetJointDynamicsFlatPlane, type AssetJointDynamicsSpringBone, type AssetMToonMaterial, AssetManager, type AssetMaterial, type AssetMaterialClearcoat, type AssetMaterialCommon, type AssetMaterialIridescence, type AssetMaterialSheen, type AssetMaterialTransmission, type AssetMeshData, type AssetMorphTargetBinding, type AssetMorphTargetGroup, type AssetPBRMaterialCommon, type AssetPBRMaterialMR, type AssetPBRMaterialSG, type AssetPCAGeometryCacheAnimationTrack, type AssetPrimitiveInfo, type AssetRotationTrack, type AssetSamplerInfo, type AssetScaleTrack, AssetScene, type AssetSkeletalAnimationTrack, AssetSkeleton, type AssetSpringBone, type AssetSpringBoneCollider, type AssetSpringBoneColliderGroup, type AssetSpringBoneColliderShape, type AssetSpringBoneJoint, type AssetSubMeshData, type AssetTextureInfo, type AssetTranslationTrack, type AssetUnlitMaterial, type AssetVertexBufferInfo, type AvatarBindMode, type AvatarBodyRegionTarget, type AvatarBodyRegions, type AvatarEquipOptions, type AvatarFitMode, type AvatarJointMap, AvatarOutfitInstance, type AvatarOutfitSource, type AvatarOutfitValidation, type AvatarSlotId, type AvatarSlotOptions, AvatarWardrobe, type AvatarWardrobeOptions, BUILTIN_ASSET_TEST_CUBEMAP, BUILTIN_ASSET_TEXTURE_SHEEN_LUT, BaseCameraController, type BaseFetchOptions, 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, type CameraHistoryData, 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, Compositor, type CompositorContext, ConstantBVec2Node, ConstantBVec3Node, ConstantBVec4Node, ConstantBooleanNode, ConstantScalarNode, ConstantTexture2DArrayNode, ConstantTexture2DNode, ConstantTextureCubeNode, ConstantVec2Node, ConstantVec3Node, ConstantVec4Node, type Constraint, type ConstraintBuildOptions, ConstraintType, type ControllerConfig, type ControllerConfigUpdate, CopyBlitter, type CopyHumanoidAnimationOptions, CosHNode, CosNode, CrossProductNode, CubemapSHProjector, CullVisitor, type CylinderCreationOptions, CylinderShape, DDXNode, DDYNode, Degrees2RadiansNode, DepthPass, 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, 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 HumanoidRetargetAxisLocks, type HumanoidRootMotionMode, type HumanoidRootMotionScaleMode, type HumanoidSkeletalAnimationMaskOptions, type HumanoidSkeletalAnimationMaskPreset, 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 JointDynamicsColliderSnapshot, type JointDynamicsFlatPlaneHandle, type JointDynamicsFlatPlaneSnapshot, type JointDynamicsGrabberHandle, type JointDynamicsGrabberSnapshot, JointDynamicsModifier, JointDynamicsSystem, JointDynamicsSystemController, type JointNameMatcher, 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_CLUSTERED_LIGHTS, 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, MSDFTextSprite, MToonMaterial, type MToonOutlineWidthMode, MakeVectorNode, Material, MaterialBlueprintIR, type MaterialBlueprintIRBehaviors, type MaterialTextureInfo, MaterialVaryingFlags, MaxNode, Mesh$1 as Mesh, MeshMaterial, type MeshUpdateCallback, type Metadata$1 as Metadata, MinNode, MixNode, ModNode, type ModelFetchOptions, type ModelInfo, type ModelLoader, type MorphBoundingInfo, type MorphData, type MorphInfo, type MorphState, MorphTargetGroupTrack, MorphTargetTrack, MultiChainSpringSystem, type MultiChainSpringSystemOptions, type NamedJointsSkeletalAnimationMaskOptions, 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, type PBRBlueprintOutputName, 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, Radians2DegreesNode, RaycastVisitor, RectLight, ReflectNode, RefractNode, type RenderFunc, type RenderItemList, type RenderItemListBundle, type RenderItemListInfo, RenderPass, type RenderPath, 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 SSSDebugView, type SSSQualityPreset, type SSSResolvedSettings, type SamplerType, SaturateNode, type SaveOptions, Scene, type SceneMorphTargetBinding, type SceneMorphTargetGroup, SceneNode, type SceneNodeVisible, ScreenAdapter, type ScreenConfig, ScreenRenderTarget, type ScreenScaleMode, ScriptAttachment, type ScriptAttachmentConfig, ScriptRegistry, ScriptingSystem, type ScriptingSystemOptions, SelectionNode, type SerializableClass, type SerializedMorphTargetBinding, type SerializedMorphTargetGroup, ShaderHelper, ShadowMapPass, ShadowMapper, type ShadowMode, type ShadowQualityPreset, ShadowRegion, Shape, type ShapeCreationOptions, type ShapeOptionType, type ShapeType, SharedModel, SignNode, SimplexNoise2DNode, type SimulationParams, SinHNode, SinNode, type SkeletalAnimationMaskCommonOptions, type SkeletalAnimationMaskOptions, type SkeletalAnimationMaskRootMotionMode, type SkeletalAnimationMaskUnsupportedTrackMode, Skeleton, type SkeletonBindPose, SkeletonModifier, SkeletonRig, type SkeletonRigOptions, SkinBinding, 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, SubsurfaceProfile, type SubsurfaceProfilePreset, 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, 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, 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 };
|
|
28061
|
+
export { AABBTree, ABufferOIT, ATMOSPHERIC_FOG_BIT, AbsNode, AbstractPostEffect, AllConditionNode, type AngleLimitConfig, AnimationClip, AnimationController, type AnimationControllerEventMap, type AnimationControllerSetStateOptions, type AnimationControllerStateDefinition, type AnimationFrameEvent, type AnimationMarker, type AnimationMarkerEvent, AnimationPlayback, type AnimationPlaybackEvent, type AnimationPlaybackEventMap, type AnimationPlaybackState, type AnimationPlaybackStopEvent, type AnimationPlaybackSyncMode, type AnimationPlaybackSyncOptions, AnimationSet, type AnimationSetEventMap, type AnimationStopReason, type AnimationTimeRef, AnimationTimeline, type AnimationTimelineActiveDisposition, type AnimationTimelineDefinition, type AnimationTimelineEventPolicy, type AnimationTimelineEventResponse, type AnimationTimelineEventResult, type AnimationTimelineEventTarget, AnimationTimelineRunner, type AnimationTimelineRunnerEventMap, type AnimationTimelineRunnerState, type AnimationTimelineStateReturnTarget, type AnimationTimelineStep, AnimationTrack, AnyConditionNode, type AppCreationOptions, type AppOptions, Application, type ApplyResultOutput, ArcCosNode, ArcSinNode, ArcTan2Node, ArcTanNode, ArccosineHNode, ArcsineHNode, ArctangentHNode, type AssetAnimationData, type AssetAnimationTrack, type AssetFixedGeometryCacheAnimationTrack, type AssetGeometryCacheAnimationTrack, type AssetGeometryCacheFrame, AssetHierarchyNode, type AssetImageInfo, type AssetJointDynamicsChain, type AssetJointDynamicsCollider, type AssetJointDynamicsFlatPlane, type AssetJointDynamicsSpringBone, type AssetMToonMaterial, AssetManager, type AssetMaterial, type AssetMaterialClearcoat, type AssetMaterialCommon, type AssetMaterialIridescence, type AssetMaterialSheen, type AssetMaterialTransmission, type AssetMeshData, type AssetMorphTargetBinding, type AssetMorphTargetGroup, type AssetPBRMaterialCommon, type AssetPBRMaterialMR, type AssetPBRMaterialSG, type AssetPCAGeometryCacheAnimationTrack, type AssetPrimitiveInfo, type AssetRotationTrack, type AssetSamplerInfo, type AssetScaleTrack, AssetScene, type AssetSkeletalAnimationTrack, AssetSkeleton, type AssetSpringBone, type AssetSpringBoneCollider, type AssetSpringBoneColliderGroup, type AssetSpringBoneColliderShape, type AssetSpringBoneJoint, type AssetSubMeshData, type AssetTextureInfo, type AssetTranslationTrack, type AssetUnlitMaterial, type AssetVertexBufferInfo, type AvatarBindMode, type AvatarBodyRegionTarget, type AvatarBodyRegions, type AvatarEquipOptions, type AvatarFitMode, type AvatarJointMap, AvatarOutfitInstance, type AvatarOutfitSource, type AvatarOutfitValidation, type AvatarSlotId, type AvatarSlotOptions, AvatarWardrobe, type AvatarWardrobeOptions, BUILTIN_ASSET_TEST_CUBEMAP, BUILTIN_ASSET_TEXTURE_SHEEN_LUT, BaseCameraController, type BaseFetchOptions, 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, type CameraHistoryData, 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, type ControllerConfigUpdate, CopyBlitter, type CopyHumanoidAnimationOptions, 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 HumanoidRetargetAxisLocks, type HumanoidRootMotionMode, type HumanoidRootMotionScaleMode, type HumanoidSkeletalAnimationMaskOptions, type HumanoidSkeletalAnimationMaskPreset, 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 JointDynamicsColliderSnapshot, type JointDynamicsFlatPlaneHandle, type JointDynamicsFlatPlaneSnapshot, type JointDynamicsGrabberHandle, type JointDynamicsGrabberSnapshot, JointDynamicsModifier, JointDynamicsSystem, JointDynamicsSystemController, type JointNameMatcher, 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_CLUSTERED_LIGHTS, 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, MSDFTextSprite, MToonMaterial, type MToonOutlineWidthMode, MakeVectorNode, Material, MaterialBlueprintIR, type MaterialBlueprintIRBehaviors, type MaterialTextureInfo, MaterialVaryingFlags, MaxNode, Mesh$1 as Mesh, MeshMaterial, type MeshUpdateCallback, type Metadata$1 as Metadata, MinNode, MixNode, ModNode, type ModelFetchOptions, type ModelInfo, type ModelLoader, type MorphBoundingInfo, type MorphData, type MorphInfo, type MorphState, MorphTargetGroupTrack, MorphTargetTrack, MultiChainSpringSystem, type MultiChainSpringSystemOptions, type NamedJointsSkeletalAnimationMaskOptions, 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, type PBRBlueprintOutputName, 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 RGProfileResult, type RGProfileScopeResult, type RGProfileScopeType, type RGProfilingOptions, type RGResolvedSize, type RGResourceLifetime, type RGSizeMode, RGSubpass, type RGTextureAllocator, type RGTextureDesc, Radians2DegreesNode, RaycastVisitor, RectLight, ReflectNode, RefractNode, type RenderFunc, RenderGraph, RenderGraphExecutor, type RenderGraphExecutorOptions, type RenderItemList, type RenderItemListBundle, type RenderItemListInfo, RenderPass, type RenderPath, 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 SSSDebugView, type SSSQualityPreset, type SSSResolvedSettings, type SamplerType, SaturateNode, type SaveOptions, Scene, type SceneMorphTargetBinding, type SceneMorphTargetGroup, SceneNode, type SceneNodeVisible, ScreenAdapter, type ScreenConfig, ScreenRenderTarget, type ScreenScaleMode, ScriptAttachment, type ScriptAttachmentConfig, ScriptRegistry, ScriptingSystem, type ScriptingSystemOptions, SelectionNode, type SerializableClass, type SerializedMorphTargetBinding, type SerializedMorphTargetGroup, ShaderHelper, ShadowMapPass, ShadowMapper, type ShadowMode, type ShadowQualityPreset, ShadowRegion, Shape, type ShapeCreationOptions, type ShapeOptionType, type ShapeType, SharedModel, SignNode, SimplexNoise2DNode, type SimulationParams, SinHNode, SinNode, type SkeletalAnimationMaskCommonOptions, type SkeletalAnimationMaskOptions, type SkeletalAnimationMaskRootMotionMode, type SkeletalAnimationMaskUnsupportedTrackMode, Skeleton, type SkeletonBindPose, SkeletonModifier, SkeletonRig, type SkeletonRigOptions, SkinBinding, SkinMaterial, SkinSSS, 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, SubsurfaceProfile, type SubsurfaceProfilePreset, 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 };
|
package/dist/index.js
CHANGED
|
@@ -50,13 +50,20 @@ export { GerstnerWaveGenerator } from './render/gerstner_wavegenerator.js';
|
|
|
50
50
|
export { FBMWaveGenerator } from './render/fbm_wavegenerator.js';
|
|
51
51
|
export { RenderTarget } from './render/rendertarget.js';
|
|
52
52
|
export { ScreenRenderTarget } from './render/screenrendertarget.js';
|
|
53
|
+
export { RGHandle, RGSubpass } from './render/rendergraph/types.js';
|
|
54
|
+
export { RenderGraph } from './render/rendergraph/rendergraph.js';
|
|
55
|
+
export { RenderGraphExecutor } from './render/rendergraph/executor.js';
|
|
56
|
+
export { DevicePoolAllocator } from './render/rendergraph/device_pool_allocator.js';
|
|
53
57
|
export { HistoryResourceManager } from './render/rendergraph/history_resource_manager.js';
|
|
58
|
+
export { RGHistoryResources } from './render/rendergraph/history_resources.js';
|
|
59
|
+
export { buildForwardPlusGraph, executeForwardPlusGraph } from './render/rendergraph/forward_plus_builder.js';
|
|
54
60
|
export { ShaderHelper } from './material/shader/helper.js';
|
|
55
61
|
export { LambertMaterial } from './material/lambert.js';
|
|
56
62
|
export { BlinnMaterial } from './material/blinn.js';
|
|
57
63
|
export { UnlitMaterial } from './material/unlit.js';
|
|
58
64
|
export { ParticleMaterial } from './material/particle.js';
|
|
59
65
|
export { SubsurfaceProfile } from './material/subsurfaceprofile.js';
|
|
66
|
+
export { SkinMaterial } from './material/skin.js';
|
|
60
67
|
export { Material } from './material/material.js';
|
|
61
68
|
export { MeshMaterial, applyMaterialMixins } from './material/meshmaterial.js';
|
|
62
69
|
export { GrassMaterial } from './material/grassmaterial.js';
|
|
@@ -157,6 +164,7 @@ export { ShadowRegion } from './shadow/shadow_region.js';
|
|
|
157
164
|
export { ESM } from './shadow/esm.js';
|
|
158
165
|
export { PCFPD } from './shadow/pcf_pd.js';
|
|
159
166
|
export { PCFOPT } from './shadow/pcf_opt.js';
|
|
167
|
+
export { PCSS } from './shadow/pcss.js';
|
|
160
168
|
export { VSM } from './shadow/vsm.js';
|
|
161
169
|
export { AssetManager } from './asset/assetmanager.js';
|
|
162
170
|
export { AssetHierarchyNode, AssetScene, AssetSkeleton, NamedObject, SharedModel } from './asset/model.js';
|
|
@@ -173,6 +181,7 @@ export { Tonemap } from './posteffect/tonemap.js';
|
|
|
173
181
|
export { Bloom } from './posteffect/bloom.js';
|
|
174
182
|
export { SAO } from './posteffect/sao.js';
|
|
175
183
|
export { SSS } from './posteffect/sss.js';
|
|
184
|
+
export { SkinSSS } from './posteffect/skinsss.js';
|
|
176
185
|
export { FXAA } from './posteffect/fxaa.js';
|
|
177
186
|
export { TAA } from './posteffect/taa.js';
|
|
178
187
|
export { Compositor } from './posteffect/compositor.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -870,6 +870,9 @@ let FEATURE_DISABLE_TAA = 0;
|
|
|
870
870
|
if (ctx.materialFlags & MaterialVaryingFlags.SSS_STORE_TRANSMISSION) {
|
|
871
871
|
this.$outputs.zSSSTransmission = pb.vec4();
|
|
872
872
|
}
|
|
873
|
+
if (ctx.materialFlags & MaterialVaryingFlags.SKIN_SSS_STORE) {
|
|
874
|
+
this.$outputs.zSkinSSS = pb.vec4();
|
|
875
|
+
}
|
|
873
876
|
if (ctx.renderPass.type === RENDER_PASS_TYPE_DEPTH && ctx.motionVectors) {
|
|
874
877
|
this.$outputs.zMotionVector = pb.vec4();
|
|
875
878
|
this.zTAAStrength = pb.float().uniform(2);
|
|
@@ -907,7 +910,7 @@ let FEATURE_DISABLE_TAA = 0;
|
|
|
907
910
|
* @param sssDiffuse - Optional diffuse-only lighting color for SSS composition.
|
|
908
911
|
* @param sssTransmission - Optional thin-shell transmission lighting color for SSS composition.
|
|
909
912
|
* @returns void
|
|
910
|
-
*/ outputFragmentColor(scope, worldPos, color, ssrRoughness, ssrNormal, sssProfile, sssParams, sssDiffuse, sssTransmission, sssProfileEnabled = false) {
|
|
913
|
+
*/ outputFragmentColor(scope, worldPos, color, ssrRoughness, ssrNormal, sssProfile, sssParams, sssDiffuse, sssTransmission, sssProfileEnabled = false, skinSSS) {
|
|
911
914
|
const pb = scope.$builder;
|
|
912
915
|
const that = this;
|
|
913
916
|
const funcName = 'Z_outputFragmentColor';
|
|
@@ -1079,6 +1082,10 @@ let FEATURE_DISABLE_TAA = 0;
|
|
|
1079
1082
|
const disableSSS = that.drawContext.renderPass.type !== RENDER_PASS_TYPE_LIGHT || that.isTransparentPass(that.pass, that.drawContext) && !that.alphaToCoverage || that.needSceneColor();
|
|
1080
1083
|
scope.$outputs.zSSSTransmission = disableSSS ? pb.vec4(0) : sssTransmission ?? pb.vec4(0);
|
|
1081
1084
|
}
|
|
1085
|
+
if (that.drawContext.materialFlags & MaterialVaryingFlags.SKIN_SSS_STORE) {
|
|
1086
|
+
const disableSkinSSS = that.drawContext.renderPass.type !== RENDER_PASS_TYPE_LIGHT || that.isTransparentPass(that.pass, that.drawContext) && !that.alphaToCoverage || that.needSceneColor();
|
|
1087
|
+
scope.$outputs.zSkinSSS = disableSkinSSS ? pb.vec4(0) : skinSSS ?? pb.vec4(0);
|
|
1088
|
+
}
|
|
1082
1089
|
}
|
|
1083
1090
|
}
|
|
1084
1091
|
FEATURE_ALPHATEST = MeshMaterial.defineFeature();
|