A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
test(gates): the grid gate asserts the work-plane rule that exists
yhhb3aed690efeb
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 73dc3265b..243692068 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -107,6 +107,15 @@ published separately; it ships inside the editor.carries depth) and linear with layer 1 (capture built with depth) both drew red;linear with no layer drew green.+- **The last gate still asserting the old work-plane rule.** `editor-grid-edge-on`+ held that a head-on perspective eye works a plane it lies IN, so the grid has no+ picture at all. "The view works on a plane it can see" replaced that rule — a+ nominal plane within ~6 degrees of edge-on hands over to the plane the eye most+ faces, and head-on that is the 2D plane — but the gate was not moved with it, so+ it had been red ever since. It is `editor-grid-head-on` now and asserts the rule+ that exists: the grid covers the frame. It is sensitive both ways — under the old+ rule the diff was exactly zero pixels, so the new assertion fails there.+- **A skinned mesh's channels reach the inspector as numbers.** `meshSummary`'s nametable stopped at `Tangent`, so every skinned import — the only meshes that carry thejoint channels — described itself as `position, uv, color, #5, #6`.diff --git a/tools/renderScenes.mjs b/tools/renderScenes.mjsindex 8f8426f2e..b1264b041 100644--- a/tools/renderScenes.mjs+++ b/tools/renderScenes.mjs@@ -48,10 +48,13 @@ export const SCENES = [{ id: "editor-grid", tier: "pr", webgpu: true, env: { ESTELLA_VERIFY_GRID: "64", ESTELLA_VERIFY_STEPS: "3" } },// The same grid from straight above a 3D view. It stands on the ground there, so it fills the frame; the 2D plane would be edge-on and light one band.{ id: "editor-grid-3d", tier: "pr", webgpu: true, env: { ESTELLA_VERIFY_SCENE: "/scenes/mesh-instanced.esscene", ESTELLA_VERIFY_GRID: "64", ESTELLA_VERIFY_PERSPECTIVE: "1", ESTELLA_VERIFY_ORBIT: "0,90", ESTELLA_VERIFY_STEPS: "3" } },- // The same 3D view head-on, where the eye stands IN the ground it works on: the- // plane is edge-on through the eye's own point, so it has no picture at all.- // Counting that hit paints one point's grid coordinate over the whole frame.- { id: "editor-grid-edge-on", tier: "pr", webgpu: true, env: { ESTELLA_VERIFY_SCENE: "/scenes/mesh-instanced.esscene", ESTELLA_VERIFY_GRID: "64", ESTELLA_VERIFY_GRID_EXPECT: "nothing", ESTELLA_VERIFY_PERSPECTIVE: "1", ESTELLA_VERIFY_ORBIT: "0,0", ESTELLA_VERIFY_STEPS: "3" } },+ // The same 3D view head-on, where the eye would stand IN the ground it works on.+ // It does not work that ground: a plane within ~6 degrees of edge-on hands over+ // to the plane the eye most faces, which head-on is the 2D plane — so the grid+ // covers the frame here rather than collapsing to the single horizontal stroke+ // an edge-on plane draws. This gate held the OLD rule ("no picture at all") and+ // was the last thing still asserting it.+ { id: "editor-grid-head-on", tier: "pr", webgpu: true, env: { ESTELLA_VERIFY_SCENE: "/scenes/mesh-instanced.esscene", ESTELLA_VERIFY_GRID: "64", ESTELLA_VERIFY_PERSPECTIVE: "1", ESTELLA_VERIFY_ORBIT: "0,0", ESTELLA_VERIFY_STEPS: "3" } },{ id: "mesh2d", tier: "pr", webgpu: true, env: { ESTELLA_VERIFY_SCENE: "/scenes/mesh2d.esscene", ESTELLA_VERIFY_MANIFEST: "/scenes/mesh2d.textures.json", ESTELLA_VERIFY_W: "256", ESTELLA_VERIFY_H: "256", ESTELLA_VERIFY_STEPS: "4", ESTELLA_VERIFY_EXPECT: "[{\"x\":0.30,\"y\":0.556,\"rgb\":[255,0,0],\"tol\":40},{\"x\":0.70,\"y\":0.556,\"rgb\":[0,255,0],\"tol\":40},{\"x\":0.30,\"y\":0.40,\"rgb\":[255,0,0],\"tol\":40}]" } },{ id: "parallax-shape", tier: "pr", webgpu: true, env: { ESTELLA_VERIFY_SCENE: "/scenes/parallax-shape.esscene", ESTELLA_VERIFY_MANIFEST: "/scenes/parallax-shape.textures.json", ESTELLA_VERIFY_STEPS: "4", ESTELLA_VERIFY_EXPECT: "[{\"x\":0.5,\"y\":0.5,\"rgb\":[0,255,0],\"tol\":40},{\"x\":0.25,\"y\":0.5,\"rgb\":[255,0,0],\"tol\":40}]" } },{ id: "tilemap-flip", tier: "pr", webgpu: true, env: { ESTELLA_VERIFY_SCENE: "/scenes/tilemap-flip.esscene", ESTELLA_VERIFY_MANIFEST: "/scenes/tilemap-flip.textures.json", ESTELLA_VERIFY_W: "256", ESTELLA_VERIFY_H: "256", ESTELLA_VERIFY_STEPS: "2", ESTELLA_VERIFY_EXPECT: "[{\"x\":0.40,\"y\":0.36,\"rgb\":[255,0,0]},{\"x\":0.60,\"y\":0.36,\"rgb\":[0,255,0]},{\"x\":0.40,\"y\":0.58,\"rgb\":[0,0,255]},{\"x\":0.60,\"y\":0.58,\"rgb\":[255,255,0]}]" } },