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(tests): distanceFog is the sixteenth effect, and the count says so

esengine619e0d6d7e6b
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6c45f3397..3090da4cb 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -74,6 +74,12 @@ published separately; it ships inside the editor.
and the software rasterizer agree on all four to the byte.
+- **`distanceFog` was the sixteenth post-process effect and the count still said
+ fifteen.** `shader-twins` asserts how many embedded `.esshader` sources each
+ file contributes, which is how it notices one going missing — and the effect
+ that landed this release left the number behind, so the SDK suite has been red
+ on master since. Counted right, 5107 tests pass.
+
- **The cooked-build check was failing about two runs in three, and the reason
looked like arithmetic.** `verify:cooked` — an exit criterion, and a gate on
every PR — steps a fixture 60 fixed frames in a compiled build and in an
diff --git a/sdk/tests/shader-twins.test.ts b/sdk/tests/shader-twins.test.ts
index d5a8d9f87..8415840d5 100644
--- a/sdk/tests/shader-twins.test.ts
+++ b/sdk/tests/shader-twins.test.ts
@@ -53,7 +53,7 @@ describe('embedded .esshader structure', () => {
it('found the filter, effect and grid sources', () => {
expect(CASES.filter((c) => c.name.startsWith('filters.ts')).length).toBe(1);
expect(CASES.filter((c) => c.name.startsWith('spriteFilter.ts')).length).toBe(2);
- expect(CASES.filter((c) => c.name.startsWith('postProcessEffects.ts')).length).toBe(15);
+ expect(CASES.filter((c) => c.name.startsWith('postProcessEffects.ts')).length).toBe(16);
expect(CASES.filter((c) => c.name.startsWith('editorGridRenderer.ts')).length).toBe(1);
});