@flighthq/mesh 0.2.1-next.738.07b221d → 0.2.1-next.841.373388f

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.
@@ -3,17 +3,17 @@ import { getMeshGeometryMorphBindPose, setMeshGeometryMorphBindPose } from './me
3
3
  import { blendMeshGeometryMorph, captureMeshMorphBindPose } from './morphMeshGeometry';
4
4
  // Blends a morphed mesh into its geometry for the current weights — the explicit per-frame morph call,
5
5
  // sibling of updateMeshSkin. Run it after the weights are set (a Weights animation channel applied via
6
- // applyAnimationClipToScene, or manual mesh.morph.weights writes) and before rendering: it captures the
6
+ // applyAnimationClipToScene3D, or manual mesh.morph.weights writes) and before rendering: it captures the
7
7
  // geometry's base pose once (lazily, onto the geometry runtime) and reuses it every frame, then blends
8
8
  // base + Σ wᵢ·targetᵢ into geometry.vertices and bumps the version so the GL backend re-uploads (the
9
9
  // CPU-blend-then-upload morph path). A mesh with no morph is a no-op, so calling it over a whole scene's
10
10
  // meshes is safe. Steady-state morph allocates nothing.
11
11
  //
12
- // Lives here, not in @flighthq/scene, even though it takes a Mesh node: it reads only `mesh.geometry`
12
+ // Lives here, not in @flighthq/scene3d, even though it takes a Mesh node: it reads only `mesh.geometry`
13
13
  // and `mesh.morph` and touches the GEOMETRY runtime slot, never the scene graph — so it sits at the
14
14
  // lowest layer that can host it. That placement is what lets the deform run below scene: skeleton3d's
15
15
  // updateMeshDeformation composes it with updateMeshSkin as two same-layer primitives, and the render
16
- // prepare pass drives it without @flighthq/render taking a @flighthq/scene dependency. @flighthq/scene
16
+ // prepare pass drives it without @flighthq/render taking a @flighthq/scene3d dependency. @flighthq/scene3d
17
17
  // keeps the half that genuinely needs the graph — routing a Weights animation channel into
18
18
  // mesh.morph.weights. Unify at the channel target, split at the deformer.
19
19
  //
@@ -1 +1 @@
1
- {"version":3,"file":"updateMeshMorph.js","sourceRoot":"","sources":["../src/updateMeshMorph.ts"],"names":[],"mappings":"AACA,OAAO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"repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/flighthq/flight.git",
@@ -32,9 +32,9 @@
32
32
  "clean:dist": "tsx ../../scripts/clean-package-dist.ts"
33
33
  },
34
34
  "dependencies": {
35
- "@flighthq/entity": "0.2.1-next.738.07b221d",
36
- "@flighthq/geometry": "0.2.1-next.738.07b221d",
37
- "@flighthq/types": "0.2.1-next.738.07b221d"
35
+ "@flighthq/entity": "0.2.1-next.841.373388f",
36
+ "@flighthq/geometry": "0.2.1-next.841.373388f",
37
+ "@flighthq/types": "0.2.1-next.841.373388f"
38
38
  },
39
39
  "devDependencies": {
40
40
  "typescript": "^5.3.0"
@@ -11,7 +11,7 @@ const POSITION_LAYOUT: VertexAttributeLayout = {
11
11
  };
12
12
 
13
13
  // updateMeshMorph reads only `geometry` and `morph` off the node and touches the geometry runtime, so
14
- // these tests carry the node envelope structurally rather than through @flighthq/scene's createMesh —
14
+ // these tests carry the node envelope structurally rather than through @flighthq/scene3d's createMesh —
15
15
  // depending on scene from a mesh test would reintroduce the very scene→mesh→scene cycle that moving
16
16
  // this deformer down removed. The scene-level createMesh path is covered by scene's own mesh tests.
17
17
  function meshCarrying(geometry: MeshGeometry, morph: MeshMorph | null): Mesh {