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
chore(editor): the bake reaches the menu
esengine0d0a2f9d4b81
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex a5629bb5f..bfb4dcb4b 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -16,6 +16,24 @@ published separately; it ships inside the editor.### Added+- **Bake Lighting.** The trigger the bake was missing: a command that collects+ the open scene, solves it, writes the atlas beside the scene file, and records+ on each object where in that atlas it reads. Sixteen lights is what a frame+ carries; past that, this is the way they still reach the picture.++ It runs in the editor's main process rather than the window, because a bake is+ seconds of ray casting and the editor has to stay answerable while it happens.+ The collector reads the document for what a mesh IS (a ref survives a reload+ where a handle does not) and the world for where it STANDS (already resolved+ through the hierarchy and through every prefab instance).++ What it cannot light, it names. An object with no second UV set is called out+ by name with the setting that fixes it, because in a result it looks exactly+ like one the bake simply missed — and only the author can turn that setting on.++ An end-to-end check holds it, because nothing shorter reaches the chain: it+ bakes a real scene in the real editor and reads the saved document back.+- **The bake itself: lights become an atlas.** `bakeLightmap` takes surfaces andlights and returns the texture a `MeshLightmap` reads, plus the rectangle eachobject occupies in it. It runs the way the navmesh builder does — plaindiff --git a/desktop b/desktopindex e14811881..c37b81210 160000--- a/desktop+++ b/desktop@@ -1 +1 @@-Subproject commit e1481188131838c5d0d98a57529b4ec5f8c07d88+Subproject commit c37b81210bf8392e6b6283889208481e8b246992diff --git a/tools/releaseNotes.mjs b/tools/releaseNotes.mjsindex 362a8e711..d30244ffb 100644--- a/tools/releaseNotes.mjs+++ b/tools/releaseNotes.mjs@@ -28,12 +28,16 @@ export const NOTES_FLOOR = 'v0.65.0';* the reader recognises anyway.*/export const NOTED = {+ 'feat(lighting): Bake Lighting, and the atlas the scene reads it from':+ { note: 'Bake Lighting.' },+ 'chore(editor): the bake reaches the menu':+ { note: 'Bake Lighting.' },+'refactor(pipeline): the PNG encoder gets its own file':{ internal: 'where one exported function lives — the bytes both imports write'+ ' are identical before and after' },'feat(pipeline): a scene of placed surfaces becomes an atlas, and says what it skipped':- { internal: 'the cook-side half of a bake with no trigger yet: no editor action'- + ' reaches it, so a creator cannot observe it until one does' },+ { note: 'Bake Lighting.' },'feat(render): lights become an atlas a mesh can be read through':{ note: 'The bake itself: lights become an atlas.' },