Skip to content

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.

chore(mcp): the editor takes a frame apart, and the changelog says so

yhhdfff0a207907
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3cdf97db3..7a2e54c08 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -22,6 +22,8 @@ published separately; it ships inside the editor.
- **Glyphs can be put on the atlas before they are shown.** The first page of a novel is hundreds of new characters, all landing in one frame. `preloadGlyphs(app, label, text, { budgetMs })` makes them ahead of time, a slice a frame, drawn as that `Text` will draw them, and returns `progress`, `done` and `release()`. On a Snapdragon 8 Elite a book's 2992 characters at 28 px took 145 ms over 25 frames with the worst frame at 9.5 ms, after which the first page's frame went from 49 to 11 ms and no page made a new glyph. Preloaded glyphs hold their atlas pages (4 MB each, a few hundred characters at that size) until `release()`.
- **Voxel GI lights what the camera does not see, and bounces light more than once.** The cache now reads the sun's shadow map back into the world, so a surface the sun lights behind or beside the camera still sends light into the view. Each surface also gives off again the bounce light it received, so a corner or a floor in shade gets light that took two or more bounces to reach it. A ray now brings what it meets at full strength however far it went (it used to fade with distance, 40% at 4 m with 12 cm voxels). Each voxel is weighed by how much of it a surface covers, so a bright patch no longer lights like the whole voxel around it. Together these keep the result close to a path tracer's whatever the voxel size. In a sunlit test room the whole frame carries 0.95 of Cycles' light at the default size and 0.74 at 12 cm voxels; before, it was 0.54 at the default and darker the finer the grid. With the lit patch behind the camera, the walls went from no bounce light to 25–57%. A closed room the sun only lights from outside stays dark. Two inspector controls tune it: **Off-screen Sun Albedo** (the colour the shadow map cannot give, assumed) and **Multi-bounce**. A fine grid no longer drops every voxel: a count truncated by the cache's ageing had kept them below the two samples a ray asks for. The WebGL2 fallback does the same in its own passes: each voxel asks the sun's map whether a sunlit surface stands in it, and traces two rays through last frame's grid for the light it is given. In the test room it carries 1.00 of Cycles' light at the default size (it was 0.56) and 0.80 at 12 cm; with the lit patch behind the camera 0.20 (it was 0). Its voxel pass costs about 1.3 ms more at 720p on a desktop.
+- **An AI can take a frame apart to see why it looks wrong.** `reference_compare` draws a `region` close through the camera, from the same place and at full size, where it used to cut one out of a smaller picture and hide what a surface was doing. `camera_layers` shows one frame as the shape under a plain light, the shape under the scene's lights, the paint, the triangles and the scene before its effects. `light_sheet` shows it with each light alone. Each puts everything back.
+
- **A fixed shadow map stays on what casts, and ambient occlusion leaves hair alone.** A sun's `shadowExtent` was centred on every mesh, so a far backdrop with `castShadows: false` took the map away from the character in front of it and her shadows disappeared; it is centred on what casts now, and the docs, which said the camera, say so. `gtao` took a strand in front of a surface for a wall and turned what was behind it black: a horizon now falls back when what lies beyond is lower, and a pixel-wide strand no longer has a normal guessed from depth. On a test head the black went from 1.17% of lit pixels to 0.07%, and shade round a solid block stays.
- **An AI can read a shape off a picture and model it.** `reference_view` takes a `ruler`, a numbered grid of where the picture falls in the world through a camera, so a nose or a fold can be read off as coordinates. An `organic` part can be an `outline`, a closed drawing stood up as a smooth dome with no flat on it, so a traced profile is the silhouette. `sculpt` works a surface stroke by stroke: `press` along a line for a fold or a seam, `inflate`, `move`, `smooth`, and with `from` a stroke or a `stain` line is given in the two axes of a view and lands on what that view sees.
diff --git a/desktop b/desktop
index 5ce976576..cc024ba69 160000
--- a/desktop
+++ b/desktop
@@ -1 +1 @@
-Subproject commit 5ce9765764dd624c18178ce81d056c3b0adf02c7
+Subproject commit cc024ba693bcca134b044683cf7123017475d433
diff --git a/tools/releaseNotes.mjs b/tools/releaseNotes.mjs
index 43bf03f2e..d862e30d5 100644
--- a/tools/releaseNotes.mjs
+++ b/tools/releaseNotes.mjs
@@ -3884,6 +3884,8 @@ export const NOTED = {
{"note":"A material's normal and metal-rough maps are read as data in the editor's Play."},
"fix(minigame): no mini-game module needs BigInt64Array, so WeChat DevTools boots the game":
{"note":"A WeChat mini-game opens in WeChat DevTools."},
+ "feat(mcp): a region is drawn close through the camera, camera_layers takes a frame apart, and light_sheet shows each light alone":
+ {"note":"An AI can take a frame apart to see why it looks wrong."},
"fix(modeling): an outline is a dome with no flat on it, a stroke fades behind what is in front, and a line can bend":
{"note":"An AI can read a shape off a picture and model it."},
"feat(mcp): model_write describes the dome, and a stroke or a stain line that bends":