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(test): the Lit2D twin assertion expects the vec3 position it now gets
esengineebfbe3e23e23
diff --git a/tests/renderer/test_shader_variant.cpp b/tests/renderer/test_shader_variant.cppindex 2e48efbe5..bcf509351 100644--- a/tests/renderer/test_shader_variant.cpp+++ b/tests/renderer/test_shader_variant.cpp@@ -240,7 +240,9 @@ static void testWGSLEmission() {ParsedShader lit = ShaderParser::parse(WGSL_TWIN_LIT);const std::string litVs = wgsl(lit, ShaderStage::Vertex);- CHECK(litVs.find("out.v_worldPos = v.a_position;") != std::string::npos,+ // .xy, not the whole position: the batch vertex carries a z now, and the+ // lighting varying is a vec2 because 2D lighting works in the XY plane.+ CHECK(litVs.find("out.v_worldPos = v.a_position.xy;") != std::string::npos,"Lit2D canonical WGSL vertex forwards world position");const std::string litFs = wgsl(lit, ShaderStage::Fragment);CHECK(litFs.find("@location(2) v_worldPos : vec2f,") != std::string::npos,