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.

docs(changelog): meshes on Windows WebGL2

esengine9e015ed35598
diff --git a/CHANGELOG.md b/CHANGELOG.md
index da961bfc9..8b1315c81 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -23,6 +23,13 @@ published separately; it ships inside the editor.
launch. Entries are now stored under a hash of the key on every platform, and a
refused write is reported once in the log.
+- **3D meshes draw on Windows with WebGL2 again.** 0.68.0 broke every mesh there: WebGL2 on
+ Windows runs on Direct3D 11, which reuses one vertex input layout for every shader with
+ the same vertex format, and the mesh shaders named their instance index before their
+ vertex attributes. Whichever mesh shader compiled first decided where every other one
+ read its positions, so meshes collapsed, vanished or covered the view. The engine now
+ names the instance index only after a shader's attributes.
+
- **An imported model lit by an environment with a reflection draws on Windows.** WebGL2
on Windows runs on Direct3D 11, where the block holding each object's indirect light
was compiled into a buffer that needed one more texture slot than a model material
diff --git a/tools/releaseNotes.mjs b/tools/releaseNotes.mjs
index a796b37f6..e2b5c2a45 100644
--- a/tools/releaseNotes.mjs
+++ b/tools/releaseNotes.mjs
@@ -28,6 +28,9 @@ export const NOTES_FLOOR = 'v0.65.0';
* the reader recognises anyway.
*/
export const NOTED = {
+ 'fix(render): a vertex stage names gl_InstanceID only after its attributes':
+ { note: '3D meshes draw on Windows with WebGL2 again.' },
+
'fix(render): the probe block stays a constant buffer under ANGLE on D3D11':
{ note: 'An imported model lit by an environment with a reflection draws on Windows.' },