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
fix(render): the mesh twin declares the reflection slot it samples
esengine7e16189d88e3
diff --git a/src/esengine/data/shaders/mesh.esshader b/src/esengine/data/shaders/mesh.esshaderindex 341c2f627..63c79e72c 100644--- a/src/esengine/data/shaders/mesh.esshader+++ b/src/esengine/data/shaders/mesh.esshader@@ -260,6 +260,13 @@ struct VSOut {@group(1) @binding(2) var t2 : texture_2d<f32>;@group(1) @binding(10) var s2 : sampler;#endif+#ifdef ES_ENV_MAP+// The environment's reflection, one slot on. Same reason as above — and without+// it the injected sampler names an identifier this twin never declared, which+// reaches anyone as an invalid pipeline that does not mention a shader.+@group(1) @binding(3) var t3 : texture_2d<f32>;+@group(1) @binding(11) var s3 : sampler;+#endifstruct VSOut {@builtin(position) pos : vec4f,diff --git a/src/esengine/renderer/rhi/ShaderEmbeds.generated.hpp b/src/esengine/renderer/rhi/ShaderEmbeds.generated.hppindex baa6b9cb6..2d68d37d1 100644--- a/src/esengine/renderer/rhi/ShaderEmbeds.generated.hpp+++ b/src/esengine/renderer/rhi/ShaderEmbeds.generated.hpp@@ -526,6 +526,13 @@ struct VSOut {@group(1) @binding(2) var t2 : texture_2d<f32>;@group(1) @binding(10) var s2 : sampler;#endif+#ifdef ES_ENV_MAP+// The environment's reflection, one slot on. Same reason as above — and without+// it the injected sampler names an identifier this twin never declared, which+// reaches anyone as an invalid pipeline that does not mention a shader.+@group(1) @binding(3) var t3 : texture_2d<f32>;+@group(1) @binding(11) var s3 : sampler;+#endifstruct VSOut {@builtin(position) pos : vec4f,