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
build(render): the embedded mesh shader carries the vertex-hook colour
yhhb1cd79ca324e
diff --git a/src/esengine/renderer/rhi/ShaderEmbeds.generated.hpp b/src/esengine/renderer/rhi/ShaderEmbeds.generated.hppindex 053808da6..1bf0a5739 100644--- a/src/esengine/renderer/rhi/ShaderEmbeds.generated.hpp+++ b/src/esengine/renderer/rhi/ShaderEmbeds.generated.hpp@@ -685,7 +685,12 @@ void main() {#endifgl_Position = u_projection * world;v_texCoord = a_texCoord;++#ifdef ES_MATERIAL_VERTEX+ v_color = es_vertexColor * esInstanceTint();+#elsev_color = a_color * esInstanceTint();+#endif#if defined(WEIGHT_HEAT) && defined(SKINNED){uint chosen = uint(esInstanceTint().x);@@ -965,7 +970,11 @@ fn esPrevBone(joint : u32) -> mat4x4f {var out : VSOut;out.pos = frame.projection * world;out.v_texCoord = v.a_texCoord;+#ifdef ES_MATERIAL_VERTEX+ out.v_color = es_vertexColor * esInstanceTint();+#elseout.v_color = v.a_color * esInstanceTint();+#endif#ifdef WEIGHT_HEAT#ifdef SKINNED{diff --git a/tools/releaseNotes.mjs b/tools/releaseNotes.mjsindex 92bb3c662..07d7523af 100644--- a/tools/releaseNotes.mjs+++ b/tools/releaseNotes.mjs@@ -2758,4 +2758,6 @@ export const NOTED = {{"note":"Terrain layers without repeat, and with natural edges."},"docs(terrain): the terrain pages describe the CDLOD ground, its pages, infinite extent and erosion":{"internal":"Documentation of features with their own notes."},+ "build(render): the embedded mesh shader carries the vertex-hook colour":+ {"internal":"The generated embed of a shader change that has its own note."},};