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
feat(ci): three of the six blind pixel gates can see now
esengineacd4122b29ac
diff --git a/tools/renderScenes.mjs b/tools/renderScenes.mjsindex f29ada601..7236d5778 100644--- a/tools/renderScenes.mjs+++ b/tools/renderScenes.mjs@@ -58,14 +58,22 @@ export const SCENES = [{ id: "hdr-bloom", tier: "pr", webgpu: true, env: { ESTELLA_VERIFY_PLAY: "1", ESTELLA_VERIFY_COLORSPACE: "linear", ESTELLA_VERIFY_SCENE: "/scenes/hdr-bloom.esscene", ESTELLA_VERIFY_MANIFEST: "/scenes/hdr-bloom.textures.json", ESTELLA_VERIFY_W: "256", ESTELLA_VERIFY_H: "256", ESTELLA_VERIFY_STEPS: "10", ESTELLA_VERIFY_EXPECT: "[{\"x\":0.5,\"y\":0.5,\"rgb\":[0,255,0],\"tol\":25},{\"x\":0.64,\"y\":0.5,\"rgb\":[0,255,0],\"tol\":35},{\"x\":0.85,\"y\":0.5,\"rgb\":[0,0,0],\"tol\":12}]" } },{ id: "video", tier: "nightly", env: { ESTELLA_VERIFY_PLAY: "1", ESTELLA_VERIFY_SETTLE_MS: "2500", ESTELLA_VERIFY_SCENE: "/scenes/video-playback.esscene", ESTELLA_VERIFY_MANIFEST: "/scenes/video-playback.textures.json", ESTELLA_VERIFY_W: "256", ESTELLA_VERIFY_H: "256", ESTELLA_VERIFY_EXPECT: "[{\"x\":0.5,\"y\":0.25,\"rgb\":[255,0,0],\"tol\":90},{\"x\":0.5,\"y\":0.75,\"rgb\":[0,0,255],\"tol\":90}]" } },{ id: "video-ui", tier: "nightly", env: { ESTELLA_VERIFY_PLAY: "1", ESTELLA_VERIFY_SETTLE_MS: "2500", ESTELLA_VERIFY_SCENE: "/scenes/video-ui.esscene", ESTELLA_VERIFY_MANIFEST: "/scenes/video-ui.textures.json", ESTELLA_VERIFY_W: "800", ESTELLA_VERIFY_H: "600", ESTELLA_VERIFY_EXPECT: "[{\"x\":0.5,\"y\":0.25,\"rgb\":[255,0,0],\"tol\":90},{\"x\":0.5,\"y\":0.75,\"rgb\":[0,0,255],\"tol\":90}]" } },- { id: "spine", tier: "nightly", rendersOnly: "a Spine skeleton is drawn; no probe pins which pose, so only a blank frame fails", env: { ESTELLA_VERIFY_SCENE: "/scenes/spine-test.esscene", ESTELLA_VERIFY_MANIFEST: "/scenes/spine-test.textures.json" } },- { id: "particles", tier: "nightly", rendersOnly: "the emitter draws; no probe pins where the particles went", env: { ESTELLA_VERIFY_PLAY: "1", ESTELLA_VERIFY_SCENE: "/scenes/particle-demo.esscene", ESTELLA_VERIFY_MANIFEST: "/scenes/particle-demo.textures.json", ESTELLA_VERIFY_STEPS: "90" } },+ { id: "spine", tier: "nightly", rendersOnly: "measured: of 2025 sampled points, none sits in a region flat enough to survive CI's rasterizer — the skeleton has no interior that wide", env: { ESTELLA_VERIFY_SCENE: "/scenes/spine-test.esscene", ESTELLA_VERIFY_MANIFEST: "/scenes/spine-test.textures.json" } },+ { id: "particles", tier: "nightly", rendersOnly: "measured: 171 of 2025 points differ between two runs at the same step count, so nothing here is a constant to assert", env: { ESTELLA_VERIFY_PLAY: "1", ESTELLA_VERIFY_SCENE: "/scenes/particle-demo.esscene", ESTELLA_VERIFY_MANIFEST: "/scenes/particle-demo.textures.json", ESTELLA_VERIFY_STEPS: "90" } },{ id: "particles-gradient", tier: "nightly", env: { ESTELLA_VERIFY_PLAY: "1", ESTELLA_VERIFY_SCENE: "/scenes/particle-gradient.esscene", ESTELLA_VERIFY_MANIFEST: "/scenes/particle-gradient.textures.json", ESTELLA_VERIFY_W: "256", ESTELLA_VERIFY_H: "256", ESTELLA_VERIFY_STEPS: "20", ESTELLA_VERIFY_EXPECT: "[{\"x\":0.5,\"y\":0.5,\"rgb\":[0,255,0],\"tol\":90}]" } },{ id: "particles-sizecurve", tier: "nightly", env: { ESTELLA_VERIFY_PLAY: "1", ESTELLA_VERIFY_SCENE: "/scenes/particle-sizecurve.esscene", ESTELLA_VERIFY_MANIFEST: "/scenes/particle-sizecurve.textures.json", ESTELLA_VERIFY_W: "256", ESTELLA_VERIFY_H: "256", ESTELLA_VERIFY_STEPS: "20", ESTELLA_VERIFY_EXPECT: "[{\"x\":0.5,\"y\":0.5,\"rgb\":[0,255,0],\"tol\":110},{\"x\":0.28,\"y\":0.5,\"rgb\":[0,0,0],\"tol\":50}]" } },- { id: "postprocess", tier: "nightly", rendersOnly: "the chain runs and draws; no probe pins what the effects did to it", env: { ESTELLA_VERIFY_PLAY: "1", ESTELLA_VERIFY_SCENE: "/scenes/postprocess-effects.esscene", ESTELLA_VERIFY_MANIFEST: "/scenes/postprocess-effects.textures.json", ESTELLA_VERIFY_STEPS: "30" } },- { id: "text", tier: "nightly", rendersOnly: "SDF text draws; no probe pins glyph placement — bitmaptext is the one that does", env: { ESTELLA_VERIFY_SCENE: "/scenes/ui-text-sdf.esscene", ESTELLA_VERIFY_MANIFEST: "/scenes/ui-text-sdf.textures.json" } },- { id: "text-rect", tier: "nightly", rendersOnly: "the rect-bounded variant draws; the same missing probe as text", env: { ESTELLA_VERIFY_SCENE: "/scenes/ui-text-rect.esscene", ESTELLA_VERIFY_MANIFEST: "/scenes/ui-text-sdf.textures.json" } },- { id: "uinode", tier: "nightly", rendersOnly: "the flex tree draws; no probe pins where the boxes landed", env: { ESTELLA_VERIFY_SCENE: "/scenes/ui-node-flex.esscene", ESTELLA_VERIFY_MANIFEST: "/scenes/ui-node-flex.textures.json", ESTELLA_VERIFY_W: "800", ESTELLA_VERIFY_H: "600" } },+ // The bright centre the chain leaves, and a corner it does not reach. Three+ // sampled points were flat interior; this takes the middle one.+ { id: "postprocess", tier: "nightly", env: { ESTELLA_VERIFY_PLAY: "1", ESTELLA_VERIFY_SCENE: "/scenes/postprocess-effects.esscene", ESTELLA_VERIFY_MANIFEST: "/scenes/postprocess-effects.textures.json", ESTELLA_VERIFY_STEPS: "30", ESTELLA_VERIFY_EXPECT: "[{\"x\":0.5,\"y\":0.5,\"rgb\":[255,255,255],\"tol\":30},{\"x\":0.06,\"y\":0.94,\"rgb\":[0,0,0],\"tol\":20}]" } },+ // One point INSIDE a glyph and one off it. Measured: of 2025 sampled points+ // exactly one sits in a stroke wide enough to be flat either side of it, and+ // the rest of the frame is the background this distinguishes it from.+ { id: "text", tier: "nightly", env: { ESTELLA_VERIFY_SCENE: "/scenes/ui-text-sdf.esscene", ESTELLA_VERIFY_MANIFEST: "/scenes/ui-text-sdf.textures.json", ESTELLA_VERIFY_EXPECT: "[{\"x\":0.42,\"y\":0.42,\"rgb\":[255,255,255],\"tol\":30},{\"x\":0.9,\"y\":0.9,\"rgb\":[0,0,0],\"tol\":20}]" } },+ { id: "text-rect", tier: "nightly", rendersOnly: "measured: its glyphs are thinner than any neighbourhood a probe can safely sit in — zero flat interior points", env: { ESTELLA_VERIFY_SCENE: "/scenes/ui-text-rect.esscene", ESTELLA_VERIFY_MANIFEST: "/scenes/ui-text-sdf.textures.json" } },+ // One point inside each box the flex tree lays out, taken from the middle of+ // its flat interior — so a layout that moves a box fails rather than a frame+ // that merely drew something.+ { id: "uinode", tier: "nightly", env: { ESTELLA_VERIFY_SCENE: "/scenes/ui-node-flex.esscene", ESTELLA_VERIFY_MANIFEST: "/scenes/ui-node-flex.textures.json", ESTELLA_VERIFY_W: "800", ESTELLA_VERIFY_H: "600", ESTELLA_VERIFY_EXPECT: "[{\"x\":0.08,\"y\":0.26,\"rgb\":[38,38,46],\"tol\":20},{\"x\":0.32,\"y\":0.18,\"rgb\":[64,204,89],\"tol\":25},{\"x\":0.16,\"y\":0.18,\"rgb\":[217,64,64],\"tol\":25},{\"x\":0.56,\"y\":0.16,\"rgb\":[77,115,230],\"tol\":25}]" } },{ id: "filled", tier: "nightly", env: { ESTELLA_VERIFY_SCENE: "/scenes/ui-visual-filled.esscene", ESTELLA_VERIFY_MANIFEST: "/scenes/ui-visual-filled.textures.json", ESTELLA_VERIFY_W: "800", ESTELLA_VERIFY_H: "600", ESTELLA_VERIFY_STEPS: "2", ESTELLA_VERIFY_EXPECT: "[{\"x\":0.18,\"y\":0.5,\"rgb\":[0,255,0],\"tol\":40},{\"x\":0.40,\"y\":0.5,\"rgb\":[255,0,0],\"tol\":40},{\"x\":0.58,\"y\":0.75,\"rgb\":[0,255,0],\"tol\":40},{\"x\":0.58,\"y\":0.25,\"rgb\":[255,0,0],\"tol\":40},{\"x\":0.30,\"y\":0.20,\"rgb\":[0,255,0],\"tol\":40},{\"x\":0.20,\"y\":0.333,\"rgb\":[255,0,0],\"tol\":40},{\"x\":0.30,\"y\":0.833,\"rgb\":[0,255,0],\"tol\":40},{\"x\":0.20,\"y\":0.70,\"rgb\":[255,0,0],\"tol\":40}]" } },{ id: "tilemap-transform", tier: "nightly", env: { ESTELLA_VERIFY_SCENE: "/scenes/tilemap-transform.esscene", ESTELLA_VERIFY_MANIFEST: "/scenes/tilemap-transform.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,255,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,0,0]}]" } },{ id: "tilemap-multiset", tier: "nightly", env: { ESTELLA_VERIFY_SCENE: "/scenes/tilemap-multiset.esscene", ESTELLA_VERIFY_MANIFEST: "/scenes/tilemap-multiset.textures.json", ESTELLA_VERIFY_W: "256", ESTELLA_VERIFY_H: "256", ESTELLA_VERIFY_STEPS: "6", 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]}]" } },