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
chore(render): the decal scenes declare which surface draws second
esengine1db8fd5446c3
diff --git a/fixtures/scenes/mat-decal-flat.esscene b/fixtures/scenes/mat-decal-flat.essceneindex e44756dfd..2e7a55d21 100644--- a/fixtures/scenes/mat-decal-flat.esscene+++ b/fixtures/scenes/mat-decal-flat.esscene@@ -110,7 +110,7 @@"b": 1,"a": 1},- "layer": 0,+ "layer": 1,"enabled": true}}diff --git a/fixtures/scenes/mat-decal.esscene b/fixtures/scenes/mat-decal.essceneindex 30bea3c76..16133a65a 100644--- a/fixtures/scenes/mat-decal.esscene+++ b/fixtures/scenes/mat-decal.esscene@@ -110,7 +110,7 @@"b": 1,"a": 1},- "layer": 0,+ "layer": 1,"enabled": true}}diff --git a/tools/renderScenes.mjs b/tools/renderScenes.mjsindex ae3f3bea0..181a83b6d 100644--- a/tools/renderScenes.mjs+++ b/tools/renderScenes.mjs@@ -572,9 +572,9 @@ export const SCENES = [// so the ENGINE owns the vertex stage and compiles a second variant for this// source; wrong placement or an ignored tint moves the probes.- // Two COPLANAR surfaces, separated by nothing but the bias the decal's- // material carries: the centre is the decal, the ring is the wall. The twin- // below is identical but for that one number, and shows wall throughout.+ // Coplanar wall and decal differing only in the decal material's bias; the+ // twin without it shows wall throughout. The decal's layer fixes it second,+ // since a material-id tie follows load order.{ id: "mat-decal", tier: "pr", webgpu: true, env: { ESTELLA_VERIFY_SCENE: "/scenes/mat-decal.esscene", ESTELLA_VERIFY_W: "256", ESTELLA_VERIFY_H: "256", ESTELLA_VERIFY_STEPS: "4", ESTELLA_VERIFY_EXPECT: "[{\"x\":0.5,\"y\":0.5,\"rgb\":[255,0,0],\"tol\":40},{\"x\":0.25,\"y\":0.5,\"rgb\":[0,255,0],\"tol\":40}]" } },{ id: "mat-decal-flat", tier: "pr", webgpu: true, env: { ESTELLA_VERIFY_SCENE: "/scenes/mat-decal-flat.esscene", ESTELLA_VERIFY_W: "256", ESTELLA_VERIFY_H: "256", ESTELLA_VERIFY_STEPS: "4", ESTELLA_VERIFY_EXPECT: "[{\"x\":0.5,\"y\":0.5,\"rgb\":[0,255,0],\"tol\":40},{\"x\":0.25,\"y\":0.5,\"rgb\":[0,255,0],\"tol\":40}]" } },{ id: "mesh-material", tier: "pr", webgpu: true, env: { ESTELLA_VERIFY_MESH_ASSET: "/scenes/white-triangles.esmesh", ESTELLA_VERIFY_MESH_MATERIAL: "/scenes/mesh-material/tintonly.esmaterial", ESTELLA_VERIFY_SCENE: "/scenes/mesh-material.esscene", ESTELLA_VERIFY_MANIFEST: "/scenes/mesh-material.textures.json", ESTELLA_VERIFY_W: "256", ESTELLA_VERIFY_H: "256", ESTELLA_VERIFY_STEPS: "4", ESTELLA_VERIFY_EXPECT: "[{\"x\":0.30,\"y\":0.556,\"rgb\":[0,0,255],\"tol\":40},{\"x\":0.70,\"y\":0.556,\"rgb\":[0,0,255],\"tol\":40},{\"x\":0.5,\"y\":0.12,\"rgb\":[0,0,0],\"tol\":30}]" } },