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.

fix(render): the lite engine builds compile again, with the layered water pass behind the post-process guard

yhh9cf64c518d06
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e2dbe5d25..97d4086bd 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -50,6 +50,7 @@ published separately; it ships inside the editor.
### Fixed
+- **Lite engine builds compile.** The lite WeChat and mini-game engine builds compile again: the pass that puts the opaque scene back after water and glass named the post-process pipeline outside the guard that leaves it out of those builds, so every package without post-processing failed to build.
- **Shadow cascades fit the scene.** A directional light's shadow cascades are now spread over the geometry that is in the scene instead of over the whole view. A close shot of a character in a view that reaches fifty metres used to spend its first cascade on three metres and drew blocky, misplaced shadow edges; the cascades now end where the scene's geometry ends (rounded in quarter octaves, so the split does not swim as the camera moves), and the shadow lands where it should.
- **Colour fringes on skin shadows.** An imported skin no longer blurs its diffuse light separately per colour channel, which put a red and cyan fringe along the edge of every shadow on it; like the rest of the scattering, it is written as off unless the source says otherwise.
- **Opaque textures under a cutout material.** A texture whose alpha is fully opaque, used by a cutout material (a hair material or any alpha-cutoff one), no longer vanishes once it is minified. Coverage-preserving mip levels were scaling its alpha down onto the cutoff, so every level past the first was discarded; a level that already reaches the share it must keep is now left alone.
diff --git a/src/esengine/renderer/frame/RenderFrame.cpp b/src/esengine/renderer/frame/RenderFrame.cpp
index ae8fbeb33..b699e1007 100644
--- a/src/esengine/renderer/frame/RenderFrame.cpp
+++ b/src/esengine/renderer/frame/RenderFrame.cpp
@@ -749,7 +749,6 @@ void RenderFrame::end() {
copyDepth.execute = [this](const rg::PassContext&) { post_process_->grabDepth(); };
graph_.addPass(std::move(copyDepth));
}
-#endif
if (layered) {
graph_.addPass(std::move(blendedPass));
rg::PassDesc copyBlended;
@@ -766,6 +765,7 @@ void RenderFrame::end() {
restore.execute = [this](const rg::PassContext&) { post_process_->grabScene(); };
graph_.addPass(std::move(restore));
}
+#endif
graph_.addPass(std::move(glassPass));
if (layered) graph_.addPass(std::move(overPass));
}
diff --git a/tools/releaseNotes.mjs b/tools/releaseNotes.mjs
index 02cb1b3d2..3f87239f3 100644
--- a/tools/releaseNotes.mjs
+++ b/tools/releaseNotes.mjs
@@ -52,6 +52,8 @@ export const NOTED = {
{"note":"A directional light's shadow cascades are now spread over the geometry that is in the scene instead of over the whole view. A close shot of a character in a view that reaches fifty metres used to spend its first cascade on three metres and drew blocky, misplaced shadow edges; the cascades now end where the scene's geometry ends (rounded in quarter octaves, so the split does not swim as the camera moves), and the shadow lands where it should."},
'fix(pipeline): an imported skin no longer blurs its diffuse light per colour channel':
{"note":"An imported skin no longer blurs its diffuse light separately per colour channel, which put a red and cyan fringe along the edge of every shadow on it; like the rest of the scattering, it is written as off unless the source says otherwise."},
+ 'fix(render): the lite engine builds compile again, with the layered water pass behind the post-process guard':
+ {"note":"The lite WeChat and mini-game engine builds compile again: the pass that puts the opaque scene back after water and glass named the post-process pipeline outside the guard that leaves it out of those builds, so every package without post-processing failed to build."},
'fix: serialize binaryen optimization on windows': { internal: 'Uses one optimizer worker after wider builds reproduced heap corruption with four; release optimization flags stay unchanged.' },
'feat: add budgeted 2d and 3d particle scene collisions': { note: 'Budgeted particle scene collisions.' },
'feat(editor): add particle collision authoring and diagnostics': { note: 'Budgeted particle scene collisions.' },