@threenative/core 0.3.10 → 0.3.11
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/index.d.ts +1 -1
- package/dist/index.js +21 -3
- package/dist/playtest.js +1 -1
- package/mcp/engine-server.mjs +1 -1
- package/mcp/servers.mjs +1 -1
- package/package.json +5 -5
- package/src/index.ts +1 -1
- package/src/render-camera-cull.ts +32 -1
- package/src/version.ts +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5949,6 +5949,6 @@ declare function boneLengthDeviations(root: Object3D, bind: IBoneLengthSnapshot,
|
|
|
5949
5949
|
* unavoidable here — core is bundled for browsers and cannot read `package.json` at runtime — so
|
|
5950
5950
|
* the spec now asserts this equals the manifest instead of asserting a number somebody typed.
|
|
5951
5951
|
*/
|
|
5952
|
-
declare const version = "0.3.
|
|
5952
|
+
declare const version = "0.3.11";
|
|
5953
5953
|
|
|
5954
5954
|
export { ATLAS_PADDING, ATMOSPHERE_LUT_RESOLUTIONS, AnimationComposer, AnimationPlayer, Atmosphere, type AtmosphereDirection, AtmosphereLuts, type AtmosphereRgb, AutoExposureNode, Billboard3D, type BillboardLockAxis, BlendSpace1D, BlendSpace2D, BudgetLadder, type BudgetVerdict, CameraShake, type CameraShakeCurve, type ChainStage, ClusteredBatch, ClusteredMesh, Daylight, ENVIRONMENT_TOO_SMALL_MARKER, EPIC_SSGI, type FinalGatherMethod, FlightModel, FluidField2D, FluidParticles3D, FramePassKind, GIBudget, type GIMethod, GIVisualize, type GIVisualizeMode, GI_METHODS, GI_VISUALIZE_MODES, GPUParticles3D, GPUSceneBVH, type GPUSceneBVHTraceFunction, GroundSnap, type IAddInSlicesOptions, type IAddInSlicesProgress, type IAddInSlicesReport, type IAircraftAirframe, type IAnimationComposerOptions, type IAnimationLayer, type IAnimationMask, type IAnimationMotionDelta, type IAnimationPlayOptions, type IAnimationPlayerOptions, type IAnimationRootMotionOptions, type IAnimationUpdateRateReport, type IAtmosphereLutResolution, type IAtmosphereLutResolutions, type IAtmosphereOptions, type IAtmosphereParameterPatch, type IAtmosphereParameters, type IAtmosphereScenePass, type IBillboard3DOptions, type IBoneContactReport, type IBoneLengthDeviation, type IBoneLengthDeviationReport, type IBoneLengthDeviationsOptions, type IBoneLengthSnapshot, type IBonePoseError, type IBudgetLadderOptions, type IBudgetWindow, type ICameraShakeOffset, type ICameraShakeOptions, type IClipBindingReport, type IClipCoverageReport, type IClipPoseErrorOptions, type IClipPoseErrorReport, type IClipPoseSubject, type IClipTrackBinding, type IClusterTable, type IClusteredBatchBuildOptions, type IClusteredBatchOptions, type IClusteredMeshOptions, type IClusteredPlacement, IComputeDriven$1 as IComputeDriven, type IDaylightOptions, type IEmitParticleRequest, type IExposureSettings, type IFlightAxes, type IFlightControls, type IFlightDeck, type IFlightEnvironment, type IFlightForces, type IFlightModelOptions, type IFlightModifiers, type IFlightQuaternion, type IFlightState, type IFlightVector3, type IFluidBounds, type IFluidCollider, type IFluidFieldOptions, type IFluidFieldSampler, type IFluidFieldVector2, type IFluidParticlesOptions, type IFluidParticlesStats, IFrameBudgetWindow, type IGIBudgetOptions, type IGIBudgetReport, type IGIVisualizeOptions, type IGPUParticles3DOptions, type IGPUParticles3DRuntime, type IGPUParticles3DSpawnBuffers, type IGPUParticles3DSpawnRequest, type IGPUParticles3DStats, IGPUReadbackSample, type IGPUSceneBVHMaterialGroup, type IGPUSceneBVHOptions, IGamePluginHooks, IGamePluginRuntime, type IGiTier, type IGroundSnapOptions, type IInstancedBatchBuildOptions, type IInstancedBatchOptions, type IInstancedPlacement, type ILampShadowStats, type ILaunchFailure, type ILoadAllOptions, type ILoadAllProgress, type IMatrixWorldReport, type IMeasureThreePoseOptions, type IMergeByMaterialOptions, type IMergePart, type IMergePartsOptions, type INormaliseToMetresOptions, type IPathFollow3DOptions, type IPathFollow3DProjection, type IPathFollow3DSample, type IProbeVolumeBakeProgress, type IProbeVolumeCoefficient, type IProbeVolumeObservation, type IProbeVolumeOptions, type IReflectionRoute, type IReplayOptions, type IReplayRecording, type IReplayRecordingSample, type IResolvedAtmosphereParameters, type IRippleFieldFlow, type IRippleFieldOptions, type ISceneShape, type ISceneWarning, type IShadowFilter, type IShadowFilterBudgetOptions, type IShadowFilterReport, type IShadowTier, type ISkeletalMesh3DOptions, type ISkyCaptureOptions, type ISoftBody3DOptions, type ISoftBodyCollision, type ISolarPosition, type ISolarPositionInput, type ISourceAngleShadowInputs, type ISourceAngleShadowOptions, type ISpanProbeTarget, type ISpanSummary, type ISpanWindow, type ISpectralOceanCascade, type ISpectralOceanHeight, type ISpectralOceanOptions, type ISpriteAnimator3DOptions, type ISpriteFrame3D, IStageGpuReading, type IStaticTransformCensus, type IStrideReport, type ISurfaceCacheMaterial, type ISurfaceCacheOptions, type ISurfaceCacheReport, type ISurfaceCacheTexture, type ISurfaceLight, type ISurfaceLightsOptions, type IThreePoseBounds, type IThreePoseMeasurement, type ITracedHit, type ITracedRay, type ITracedReflectionsOptions, type ITracerPool3DOptions, type ITracerSpawnOptions, type IUnlitFoliageWarning, type IValidationReport, type IVirtualShadowOptions, type IVirtualShadowStats, type IWaterReflectionOptions, type IWaterSurfaceOptions, type IWaveFieldDomainWarp, type IWaveFieldGraphOptions, type IWaveFieldOptions, type IWaveFieldSample, type IWaveFieldWave, type IWorldEnvironmentOptions, type IWorldEnvironmentStageContext, type IWorldEnvironmentTarget, InstancedBatch, LAMP_SHADOW_MARKER, LUT_RESOLUTIONS, type LaunchFailureKind, type MatrixWorldMode, MatrixWorldPass, NEUTRAL_FLIGHT_MODIFIERS, type NormaliseAxis, OPACITY_IGNORED_MARKER, type OutputRenderer, PROBE_VOLUME_MARKER, PathFollow3D, ProbeVolume, type ProbeVolumeDensity, type QualityTier, RENDERLIST_VALIDATE_FLAG, RENDERLIST_VALIDATE_MARKER, type Recording, RenderListValidator, type ReplayPointer, RippleField, SCENE_WARNING_MARKER, SHADOW_FILTER_TIERS, SHADOW_STAGES, SPANS, SPANS_FLAG, SPANS_MARKER, SPAN_COUNT, SPAN_NAMES, STATIC_TRANSFORM_MARKER, type ScreenSpaceAA, ShadowFilterBudget, type ShadowFilterTier, SkeletalMesh3D, SkyCapture, SkyCaptureSchedule, SoftBody3D, type SpanId, SpanRecorder, SpectralOcean, SpriteAnimator3D, type SpritePlaybackMode, type SsgiQuality, SurfaceCache, SurfaceLights, type ThreePoseQuaternion, type ThreePoseVector, type TonemapMode, TracedReflections, TracerPool3D, UNLIT_FOLIAGE_FIX, UNLIT_FOLIAGE_MARKER, VIRTUAL_SHADOW_CASTER_LAYER, VIRTUAL_SHADOW_MARKER, VIRTUAL_SHADOW_MOVER_LAYER, VIRTUAL_SHADOW_WIDE_CASTER_LAYER, VirtualShadowNode, WaterSurface3D, type WaveDirection, WaveField, WorldEnvironment, addFoliageBackLight, addInSlices, addSpan, aerodynamicCoefficients, airDensity, aircraftMass, alwaysRender, attachToBone, attitudeAxes, beginSpan, boneContact, boneLengthDeviations, boneLengths, bvhIntersectFirstHit, clipBoneCoverage, clipPoseError, clipTrackBindings, createReplayDriver, debugFlag, describeSceneShape, describeSceneWarning, directionFromSolarPosition, directionalTransmittance, displayPeriodMs, endSpan, ev100FromCamera, ev100FromExposure, ev100FromLuminance, exposeDebug, exposureFromEv100, exposureSettings, formatSceneWarning, formatSpansWindow, formatUnlitFoliageWarning, formatValidationReport, gearClearance, installFilmicToneMapping, installSpanProbes, invalidateStatic, isStatic, lampPenumbraTangent, lampShadowMarker, loadAll, lookDiagnostics, markStatic, measureThreePose, mergeByMaterial, mergeParts, normaliseToMetres, onLaunchFailure, parseReplayRecording, penumbraUv, posedBounds, qualityPreset, qualityTiers, rayStruct, readGIMarker, readLampShadowMarker, readProbeVolumeObservation, readShadowTierMarker, readVirtualShadowMarker, refreshStaticTransforms, renderListValidationRequested, renderTrapAudit, replay, resetStaticTransforms, resolveAtmosphereLutResolutions, resolveAtmosphereParameters, sceneWarning, setAttitude, setSpanRecorder, skeletonBones, softCircleDataTexture, solarPosition, solarPositionAt, sourceAngleShadowFilter, sourceRadiusShadowFilter, spanNow, spanRecorder, spansRequested, staticTransformCensus, unlitFoliageWarning, unmarkStatic, updateAtmosphereParameters, updateClusteredMeshes, useRoughDiffuse, validateWorldMatrices, version, zenithTransmittance };
|
package/dist/index.js
CHANGED
|
@@ -6400,6 +6400,8 @@ var MIN_DISTANCE2 = 1e-4;
|
|
|
6400
6400
|
var animationRateSources = /* @__PURE__ */ new WeakMap();
|
|
6401
6401
|
var animationRateStates = /* @__PURE__ */ new WeakMap();
|
|
6402
6402
|
var animationRateRoots = /* @__PURE__ */ new Set();
|
|
6403
|
+
var RATE_HOLD_RIGS = 32;
|
|
6404
|
+
var RATE_MEASURE_FRAMES = 4;
|
|
6403
6405
|
var animationRateRootRefs = /* @__PURE__ */ new WeakMap();
|
|
6404
6406
|
var animationRateCarriers = /* @__PURE__ */ new Set();
|
|
6405
6407
|
function observeAnimationRates(carrier, sources) {
|
|
@@ -6460,6 +6462,8 @@ var RenderCameraCull = class {
|
|
|
6460
6462
|
#animatedFrom = [];
|
|
6461
6463
|
/** The renderables under each rate root, in walk order, from the same walk as {@link #animated}. */
|
|
6462
6464
|
#rigParts = /* @__PURE__ */ new Map();
|
|
6465
|
+
/** A rig inside a rig: the inner rate comes from the outer walk, so no rig may skip its walk. */
|
|
6466
|
+
#nestedRigs = false;
|
|
6463
6467
|
#collectingParts = [];
|
|
6464
6468
|
#collectAnimated;
|
|
6465
6469
|
/** The camera's descendants this frame, so camera attachment needs no walk up the parents. */
|
|
@@ -6504,6 +6508,7 @@ var RenderCameraCull = class {
|
|
|
6504
6508
|
this.#collectAnimated = (object4) => {
|
|
6505
6509
|
if (isRenderable(object4)) this.#collectingParts.push(object4);
|
|
6506
6510
|
const outer = this.#animated.get(object4);
|
|
6511
|
+
if (outer !== void 0) this.#nestedRigs = true;
|
|
6507
6512
|
this.#animated.set(
|
|
6508
6513
|
object4,
|
|
6509
6514
|
outer === void 0 ? this.#collecting : [...outer, ...this.#collecting]
|
|
@@ -6537,6 +6542,7 @@ var RenderCameraCull = class {
|
|
|
6537
6542
|
this.#animated.clear();
|
|
6538
6543
|
this.#animatedFrom.length = 0;
|
|
6539
6544
|
this.#rigParts.clear();
|
|
6545
|
+
this.#nestedRigs = false;
|
|
6540
6546
|
for (const ref of animationRateRoots) {
|
|
6541
6547
|
const root = ref.deref();
|
|
6542
6548
|
const state2 = animationRateStates.get(root);
|
|
@@ -6580,9 +6586,14 @@ var RenderCameraCull = class {
|
|
|
6580
6586
|
this.#prepareCamera(camera, viewportHeight);
|
|
6581
6587
|
if (!this.#prepareAnimated()) return;
|
|
6582
6588
|
const rootShown = this.#isVisibleInWorld(root);
|
|
6589
|
+
const holds = rootShown && !this.#nestedRigs && animationRateCarriers.size === 0 && animationRateRoots.size >= RATE_HOLD_RIGS;
|
|
6590
|
+
let turn = this.#animationFrame;
|
|
6583
6591
|
for (const ref of animationRateRoots) {
|
|
6584
6592
|
const rig = ref.deref();
|
|
6585
|
-
if (rig
|
|
6593
|
+
if (rig === void 0 || !this.#reaches(rig, root)) continue;
|
|
6594
|
+
turn += 1;
|
|
6595
|
+
if (!holds || turn % RATE_MEASURE_FRAMES === 0 || !this.#holdRate(rig))
|
|
6596
|
+
this.#visitRig(rig, rootShown);
|
|
6586
6597
|
}
|
|
6587
6598
|
for (const ref of animationRateCarriers) {
|
|
6588
6599
|
const carrier = ref.deref();
|
|
@@ -6597,6 +6608,13 @@ var RenderCameraCull = class {
|
|
|
6597
6608
|
if (observes && this.#reaches(carrier, root)) carrier.traverseVisible(this.#animationVisitor);
|
|
6598
6609
|
}
|
|
6599
6610
|
}
|
|
6611
|
+
/** Carries a rig's rate into this frame; false when last frame did not measure or hold it, as for a rig just shown. */
|
|
6612
|
+
#holdRate(rig) {
|
|
6613
|
+
const state2 = animationRateStates.get(rig);
|
|
6614
|
+
if (state2?.source !== this || state2.frame !== this.#animationFrame - 1) return false;
|
|
6615
|
+
state2.frame = this.#animationFrame;
|
|
6616
|
+
return true;
|
|
6617
|
+
}
|
|
6600
6618
|
/**
|
|
6601
6619
|
* The rig's visible walk, as `traverseVisible` would make it. Only its renderables act, so on the
|
|
6602
6620
|
* native engine, with the walk's root shown, each kept part asks whether it is shown, rather
|
|
@@ -19994,7 +20012,7 @@ var qualityTiers = {
|
|
|
19994
20012
|
};
|
|
19995
20013
|
|
|
19996
20014
|
// src/version.ts
|
|
19997
|
-
var CORE_VERSION = "0.3.
|
|
20015
|
+
var CORE_VERSION = "0.3.11";
|
|
19998
20016
|
|
|
19999
20017
|
// src/pipeline-census.ts
|
|
20000
20018
|
var PIPELINE_CENSUS_VERSION = 1;
|
|
@@ -41711,7 +41729,7 @@ function boneLengthDeviations(root, bind, options = {}) {
|
|
|
41711
41729
|
}
|
|
41712
41730
|
|
|
41713
41731
|
// src/index.ts
|
|
41714
|
-
var version = "0.3.
|
|
41732
|
+
var version = "0.3.11";
|
|
41715
41733
|
/*!
|
|
41716
41734
|
* Selectively adapted from GGEZ packages/anim-runtime/src/runtime/helpers.ts
|
|
41717
41735
|
* (findBlend1DChildren, computeTriangleBarycentricWeights, findBlend2DEdgeWeights)
|
package/dist/playtest.js
CHANGED
package/mcp/engine-server.mjs
CHANGED
|
@@ -1171,7 +1171,7 @@ async function handleLine(line2, manifestFile) {
|
|
|
1171
1171
|
capabilities: { tools: { listChanged: false } },
|
|
1172
1172
|
instructions: AUTHORING_INSTRUCTIONS,
|
|
1173
1173
|
protocolVersion: "2025-06-18",
|
|
1174
|
-
serverInfo: { name: "threenative-engine-mcp", version: "0.2.
|
|
1174
|
+
serverInfo: { name: "threenative-engine-mcp", version: "0.2.11" }
|
|
1175
1175
|
});
|
|
1176
1176
|
}
|
|
1177
1177
|
if (request.method === "tools/list") {
|
package/mcp/servers.mjs
CHANGED
|
@@ -47,7 +47,7 @@ export const MCP_SERVERS = Object.freeze({
|
|
|
47
47
|
export const MCP_PACKAGES = Object.freeze({
|
|
48
48
|
assets: Object.freeze({ name: "threenative-asset-mcp", version: "0.15.0" }),
|
|
49
49
|
sculpt: Object.freeze({ name: "threenative-sculpt-mcp", version: "0.2.2" }),
|
|
50
|
-
engine: Object.freeze({ name: "threenative-engine-mcp", version: "0.2.
|
|
50
|
+
engine: Object.freeze({ name: "threenative-engine-mcp", version: "0.2.11" }),
|
|
51
51
|
animation: Object.freeze({ name: "threenative-animation-mcp", version: "0.1.3" }),
|
|
52
52
|
// `args` fixes the launch for every host. The Chrome flags are `WEBGPU_BROWSER_ARGS` from
|
|
53
53
|
// `@threenative/playtest`, so a DevTools trace profiles the same adapter a playtest does and not
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@threenative/core",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.11",
|
|
4
4
|
"license": "MIT AND GPL-2.0-or-later",
|
|
5
5
|
"description": "The small vanilla Three.js game runtime foundation.",
|
|
6
6
|
"keywords": [
|
|
@@ -99,12 +99,12 @@
|
|
|
99
99
|
"tsup": "8.5.1",
|
|
100
100
|
"typescript": "npm:@typescript/typescript6@6.0.2",
|
|
101
101
|
"@typescript/native": "npm:typescript@7.0.2",
|
|
102
|
-
"
|
|
103
|
-
"threenative-engine-mcp": "0.2.
|
|
104
|
-
"threenative
|
|
102
|
+
"threenative-animation-mcp": "0.1.8",
|
|
103
|
+
"threenative-engine-mcp": "0.2.11",
|
|
104
|
+
"@threenative/playtest": "0.3.11"
|
|
105
105
|
},
|
|
106
106
|
"peerDependencies": {
|
|
107
|
-
"@threenative/playtest": ">=0.3.
|
|
107
|
+
"@threenative/playtest": ">=0.3.11 <0.4.0",
|
|
108
108
|
"react": ">=19.2.0 <20",
|
|
109
109
|
"react-reconciler": ">=0.33.0 <0.34"
|
|
110
110
|
},
|
package/src/index.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* unavoidable here — core is bundled for browsers and cannot read `package.json` at runtime — so
|
|
7
7
|
* the spec now asserts this equals the manifest instead of asserting a number somebody typed.
|
|
8
8
|
*/
|
|
9
|
-
export const version = "0.3.
|
|
9
|
+
export const version = "0.3.11";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Play a skinned or sprite animation from game code.
|
|
@@ -99,6 +99,15 @@ export interface IAnimationRateState {
|
|
|
99
99
|
export const animationRateStates = new WeakMap<Object3D, IAnimationRateState>();
|
|
100
100
|
/** The roots that may hold a rate state, so the camera pass walks the rigs instead of the scene. */
|
|
101
101
|
const animationRateRoots = new Set<WeakRef<Object3D>>();
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* From this many rigs, each re-measures its rate on its own turn, one frame in {@link RATE_MEASURE_FRAMES}, and
|
|
105
|
+
* holds the rate between turns. The measure is per-part math, 0.75 ms a frame for the stress lab's 120 rigs.
|
|
106
|
+
* A smaller scene measures every frame. The rate is itself a pose period of 1 to 8 frames, so a hold of 3 lags it by
|
|
107
|
+
* no more than one rate 4 period.
|
|
108
|
+
*/
|
|
109
|
+
const RATE_HOLD_RIGS = 32;
|
|
110
|
+
const RATE_MEASURE_FRAMES = 4;
|
|
102
111
|
const animationRateRootRefs = new WeakMap<Object3D, WeakRef<Object3D>>();
|
|
103
112
|
/** The stand-ins named in {@link animationRateSources}, so the pass can reach them without a scene walk. */
|
|
104
113
|
const animationRateCarriers = new Set<WeakRef<Object3D>>();
|
|
@@ -269,6 +278,8 @@ export class RenderCameraCull {
|
|
|
269
278
|
readonly #animatedFrom: (Object3D | IAnimationRateState | number | undefined)[] = [];
|
|
270
279
|
/** The renderables under each rate root, in walk order, from the same walk as {@link #animated}. */
|
|
271
280
|
readonly #rigParts = new Map<Object3D, Object3D[]>();
|
|
281
|
+
/** A rig inside a rig: the inner rate comes from the outer walk, so no rig may skip its walk. */
|
|
282
|
+
#nestedRigs = false;
|
|
272
283
|
#collectingParts: Object3D[] = [];
|
|
273
284
|
readonly #collectAnimated: (object: Object3D) => void;
|
|
274
285
|
/** The camera's descendants this frame, so camera attachment needs no walk up the parents. */
|
|
@@ -314,6 +325,7 @@ export class RenderCameraCull {
|
|
|
314
325
|
this.#collectAnimated = (object) => {
|
|
315
326
|
if (isRenderable(object)) this.#collectingParts.push(object);
|
|
316
327
|
const outer = this.#animated.get(object);
|
|
328
|
+
if (outer !== undefined) this.#nestedRigs = true;
|
|
317
329
|
// A rig nested in another rig answers to both roots.
|
|
318
330
|
this.#animated.set(
|
|
319
331
|
object,
|
|
@@ -353,6 +365,7 @@ export class RenderCameraCull {
|
|
|
353
365
|
this.#animated.clear();
|
|
354
366
|
this.#animatedFrom.length = 0;
|
|
355
367
|
this.#rigParts.clear();
|
|
368
|
+
this.#nestedRigs = false;
|
|
356
369
|
for (const ref of animationRateRoots) {
|
|
357
370
|
const root = ref.deref() as Object3D;
|
|
358
371
|
const state = animationRateStates.get(root) as IAnimationRateState;
|
|
@@ -405,9 +418,19 @@ export class RenderCameraCull {
|
|
|
405
418
|
// Start at each rig and each stand-in that observes one, never at the scene: the walk then visits
|
|
406
419
|
// the same objects a scene walk would have acted on, and nothing else.
|
|
407
420
|
const rootShown = this.#isVisibleInWorld(root as Object3D);
|
|
421
|
+
// A stand-in's walk reads the rigs it draws, so with any stand-in every rig keeps its walk.
|
|
422
|
+
const holds =
|
|
423
|
+
rootShown &&
|
|
424
|
+
!this.#nestedRigs &&
|
|
425
|
+
animationRateCarriers.size === 0 &&
|
|
426
|
+
animationRateRoots.size >= RATE_HOLD_RIGS;
|
|
427
|
+
let turn = this.#animationFrame;
|
|
408
428
|
for (const ref of animationRateRoots) {
|
|
409
429
|
const rig = ref.deref();
|
|
410
|
-
if (rig
|
|
430
|
+
if (rig === undefined || !this.#reaches(rig, root)) continue;
|
|
431
|
+
turn += 1;
|
|
432
|
+
if (!holds || turn % RATE_MEASURE_FRAMES === 0 || !this.#holdRate(rig))
|
|
433
|
+
this.#visitRig(rig, rootShown);
|
|
411
434
|
}
|
|
412
435
|
for (const ref of animationRateCarriers) {
|
|
413
436
|
const carrier = ref.deref();
|
|
@@ -424,6 +447,14 @@ export class RenderCameraCull {
|
|
|
424
447
|
}
|
|
425
448
|
}
|
|
426
449
|
|
|
450
|
+
/** Carries a rig's rate into this frame; false when last frame did not measure or hold it, as for a rig just shown. */
|
|
451
|
+
#holdRate(rig: Object3D): boolean {
|
|
452
|
+
const state = animationRateStates.get(rig);
|
|
453
|
+
if (state?.source !== this || state.frame !== this.#animationFrame - 1) return false;
|
|
454
|
+
state.frame = this.#animationFrame;
|
|
455
|
+
return true;
|
|
456
|
+
}
|
|
457
|
+
|
|
427
458
|
/**
|
|
428
459
|
* The rig's visible walk, as `traverseVisible` would make it. Only its renderables act, so on the
|
|
429
460
|
* native engine, with the walk's root shown, each kept part asks whether it is shown, rather
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by scripts/generate-version.mjs - do not edit. Source: package.json.
|
|
2
|
-
export const CORE_VERSION = "0.3.
|
|
2
|
+
export const CORE_VERSION = "0.3.11";
|