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
docs(changelog): one declaration of the frame block
esenginee3eb6009ab56
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 3d42bc3cd..17d6709dd 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -101,6 +101,19 @@ published separately; it ships inside the editor.Documents written before this keep their meaning: `rotation.z` migrates to`rotation.angle`, asserted by sampling the clip rather than by comparing names.+### Changed++- **The frame block is declared once, by the engine.** Every shader used to+ write out `layout(std140) uniform FrameConstants { mat4 u_projection; }`+ itself, so the view-projection's std140 layout lived in as many copies as+ there were shaders: a member added to it would have to reach all of them, in+ the same order, or a shader reads the wrong bytes with nothing to say so. It+ is now injected into every stage the way the light, time and material blocks+ already are — and a fragment stage can read the frame for the first time,+ which a block only vertex stages declared could not offer. A shader that+ still declares its own keeps compiling: the authored copy is blanked out,+ keeping its lines so compile-log line numbers still point where they did.+### Fixed- **The tile palette counted an atlas differently than the tile ids did.** A