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
feat(render): Direct and Indirect Lighting Only view modes
yhhd7dbbb2c185f
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 44bf13a00..cbcd437c7 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -25,6 +25,7 @@ published separately; it ships inside the editor.- **The sky lights the scene.** Sky Atmosphere's **Light the Scene** makes the sky the scene's environment: every Ambient light that names no environment of its own lights with it, its diffuse light from the dome and the clouds and its reflection on metal and wet ground, scaled by the light's colour and intensity as an imported one is. The sky is worked out again as it changes (the sun moving, a weather coming in, clouds drifting), at most once a second; with clouds that takes about 20 ms on a desktop. The sun's disc is left out, since the directional light the sky follows is its direct light. Off by default, so a scene already lit by hand looks as it did.- **Rooms stay dark under a sky that changes (sky occlusion).** With **Sky occlusion** on in the Lighting settings (`BakedLighting.skyOcclusion`), a probe bake keeps how much of the sky each probe sees instead of the sky itself: the probes hold the lights and their bounces, and the sky the frame has now (a live Sky Atmosphere, a weather, an environment) is added through what each probe sees of it, to the diffuse light and to the sky's reflection. A ball inside a roofed room measured 119 where the baked sky gave it 150, and a ball outside kept its light. A `.esprobes` baked this way carries `skyVisibility`; one without it lights as before. Probes are read per object, as Unity's light probes are: one large mesh spanning indoors and out takes one value.+- **Direct Lighting Only and Indirect Lighting Only view modes.** Beside Clay in the viewport's Show menu (and `Renderer.setViewShading(view, 'directLighting' | 'indirectLighting')`), as Unreal's lighting components: clay lit by the lights alone, or by everything that is not a light (ambient, sky, reflections, probes, bakes). The two add up to Clay, so a dark shadow says at once whether its fill is missing or merely weak.- **A post-process pass can read an earlier pass of its own effect.** A texture param named `u_pass_<name>` is bound to the output of the sub-pass called `<name>`, which the chain keeps alive until it has been read, so an effect can be a pyramid (down, then up, adding each level back) and not only a line of passes.- **A probe volume lights each pixel, not each object.** A lit mesh inside a `LightProbeVolume` reads the baked grid where each of its pixels stands, so one large mesh that spans a dark room and the open yard outside it (a merged building, an imported level) is dark inside and lit outside, as in Unity's Adaptive Probe Volumes; before, it took the one value at its origin and was lit the same end to end. The grids ride one half-float atlas the frame builds when a bake changes. A mesh with lightmap UVs that has no bake still reads its volume per object, as before.- **Defaults follow the project's units.** Every default that is a length, a speed or an acceleration — a character's capsule, a first-person walk and jump, a view model's near plane, a nav volume's cells, a perceiver's range, a particle's size and speed — is written at 100 units a metre and scaled by the project's units per metre (Project Settings → Physics → 3D). A centimetre project gets exactly the defaults it had; a metre project (an imported glTF scene) now gets metres instead of values 100 times too big. A value a scene states is never scaled. A component declares its own with `worldUnitFields`. Post-process effects follow too: a length a volume leaves unset (rain and snow shelter range and puddle size, SSR distance and thickness, GTAO / SSAO / SSGI radius, contact-shadow length, depth-of-field focus, voxel GI cell, height-fog start and range) takes its default in the project's units, and fog density and height falloff — rates per length — by the inverse; the inspector offers ranges in those units and writes an added effect's defaults in them. A metre project's rain used to shelter within 3 km.diff --git a/desktop b/desktopindex b71ce90fa..ea39423cd 160000--- a/desktop+++ b/desktop@@ -1 +1 @@-Subproject commit b71ce90fa6e4888cb5a4c1a2c465faa96d106fe6+Subproject commit ea39423cd01ef284971b78c9959da501c185d265diff --git a/docs/ROADMAP_BLOCKED_2026-10-16.md b/docs/ROADMAP_BLOCKED_2026-10-16.mdindex ab91d7208..a6e369e07 100644--- a/docs/ROADMAP_BLOCKED_2026-10-16.md+++ b/docs/ROADMAP_BLOCKED_2026-10-16.md@@ -172,3 +172,38 @@ Project read remains blocked before authentication: GitHub CLI/config.yml accessProject read remains blocked before authentication: GitHub CLI/config.yml access denied (exit 1). Latest drafts and user changes could not be read; no fresh release or acceptance verification performed. No new pending requirements or remote changes. Same sandbox blocker; no authorization retry or bypass. Engine code untouched.++## 2026-11-06 17:08 UTC recheck++Project read remains blocked before authentication: GitHub CLI/config.yml access denied (exit 1). Latest drafts and user changes could not be read; no fresh release or acceptance verification performed. No new pending requirements or remote changes. Same sandbox blocker; no authorization retry or bypass. Engine code untouched.+++## 2026-11-07 01:06 UTC recheck++Project read remains blocked before authentication: GitHub CLI/config.yml access denied (exit 1). Latest drafts and user changes could not be read; no fresh release or acceptance verification performed. No new pending requirements or remote changes. Same sandbox blocker; no authorization retry or bypass. Engine code untouched.+++## 2026-11-09 01:10 UTC recheck++Project read remains blocked before authentication: GitHub CLI/config.yml access denied (exit 1). Latest drafts and user changes could not be read; no fresh release or acceptance verification performed. No new pending requirements or remote changes. Same sandbox blocker; no authorization retry or bypass. Engine code untouched.+++## 2026-11-09 09:13 UTC recheck++Project read remains blocked before authentication: GitHub CLI/config.yml access denied (exit 1). Latest drafts and user changes could not be read; no fresh release or acceptance verification performed. No new pending requirements or remote changes. Same sandbox blocker; no authorization retry or bypass. Engine code untouched.+++## 2026-11-09 17:13 UTC recheck++Project read remains blocked before authentication: GitHub CLI/config.yml access denied (exit 1). Latest drafts and user changes could not be read; no fresh release or acceptance verification performed. No new pending requirements or remote changes. Same sandbox blocker; no authorization retry or bypass. Engine code untouched.+++## 2026-11-10 01:16 UTC recheck++Project read remains blocked before authentication: GitHub CLI/config.yml access denied (exit 1). Latest drafts and user changes could not be read; no fresh release or acceptance verification performed. No new pending requirements or remote changes. Same sandbox blocker; no authorization retry or bypass. Engine code untouched.+++## 2026-11-10 09:12 UTC recheck++Project read remains blocked before authentication: GitHub CLI/config.yml access denied (exit 1). Latest drafts and user changes could not be read; no fresh release or acceptance verification performed. No new pending requirements or remote changes. Same sandbox blocker; no authorization retry or bypass. Engine code untouched.+diff --git a/fixtures/scenes/view-lighting.esscene b/fixtures/scenes/view-lighting.esscenenew file mode 100644index 000000000..cd449a4a2--- /dev/null+++ b/fixtures/scenes/view-lighting.esscene@@ -0,0 +1,179 @@+{+ "version": 4,+ "name": "ViewLighting",+ "entities": [+ {+ "id": 0,+ "name": "Camera",+ "parent": null,+ "children": [],+ "visible": true,+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 300+ }+ }+ },+ {+ "type": "Camera",+ "data": {+ "projectionType": 1,+ "orthoSize": 150,+ "isActive": true,+ "priority": 0+ }+ }+ ]+ },+ {+ "id": 1,+ "name": "Cube",+ "parent": null,+ "children": [],+ "visible": true,+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": -75,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "x": 0,+ "y": -0.3826834324,+ "z": 0,+ "w": 0.9238795325+ }+ }+ },+ {+ "type": "MeshRenderer",+ "data": {+ "mesh": "builtin:cube",+ "color": {+ "r": 0.9,+ "g": 0.2,+ "b": 0.2,+ "a": 1+ },+ "lit": true,+ "opaque": true,+ "cullBackfaces": true,+ "enabled": true+ }+ }+ ]+ },+ {+ "id": 2,+ "name": "Sphere",+ "parent": null,+ "children": [],+ "visible": true,+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 75,+ "y": 0,+ "z": 0+ }+ }+ },+ {+ "type": "MeshRenderer",+ "data": {+ "mesh": "builtin:sphere",+ "color": {+ "r": 0.2,+ "g": 0.75,+ "b": 0.3,+ "a": 1+ },+ "lit": true,+ "opaque": true,+ "cullBackfaces": true,+ "enabled": true+ }+ }+ ]+ },+ {+ "id": 3,+ "name": "Sun",+ "parent": null,+ "children": [],+ "visible": true,+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ }+ }+ },+ {+ "type": "Light",+ "data": {+ "type": 1,+ "color": {+ "r": 1,+ "g": 1,+ "b": 1,+ "a": 1+ },+ "intensity": 1,+ "direction": {+ "x": -0.4142135624,+ "y": 0+ },+ "directionZ": -1+ }+ }+ ]+ },+ {+ "id": 4,+ "name": "Ambient",+ "parent": null,+ "children": [],+ "visible": true,+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ }+ }+ },+ {+ "type": "Light",+ "data": {+ "type": 2,+ "color": {+ "r": 1,+ "g": 1,+ "b": 1,+ "a": 1+ },+ "intensity": 0.35+ }+ }+ ]+ }+ ]+}diff --git a/sdk/src/render/renderer.ts b/sdk/src/render/renderer.tsindex 140871d45..b259ff1b4 100644--- a/sdk/src/render/renderer.ts+++ b/sdk/src/render/renderer.ts@@ -149,9 +149,13 @@ export interface LightStatus {* beside this one would be free to disagree with the picture on screen.*//** How a view shades its meshes. @experimental */-export type ViewShading = 'shaded' | 'clay' | 'albedo' | 'wireframe';+/** `directLighting` / `indirectLighting`: clay lit by the lights alone, or by everything that is not a light (ambient,+ * sky, reflections, probes, bakes) — Unreal's lighting components, for asking where a shadow's fill comes from. */+export type ViewShading = 'shaded' | 'clay' | 'albedo' | 'wireframe' | 'directLighting' | 'indirectLighting';-const VIEW_SHADING_CODE: Record<ViewShading, number> = { shaded: 0, clay: 1, albedo: 2, wireframe: 3 };+const VIEW_SHADING_CODE: Record<ViewShading, number> = {+ shaded: 0, clay: 1, albedo: 2, wireframe: 3, directLighting: 4, indirectLighting: 5,+};export interface LodDecision {/** The level drawn, or `null` when the object was small enough to be culled. */diff --git a/src/esengine/renderer/frame/RenderFrame.cpp b/src/esengine/renderer/frame/RenderFrame.cppindex 1e1c107a6..19fecd9fd 100644--- a/src/esengine/renderer/frame/RenderFrame.cpp+++ b/src/esengine/renderer/frame/RenderFrame.cpp@@ -2672,6 +2672,12 @@ void RenderFrame::collectAll(ecs::Registry& registry, bool sceneGBuffer) {// After the lights: what a bake says a surface MIRRORS replaces what the// ambient light's own environment would have answered.{ ES_PROFILE_SCOPE("render.collect.reflections"); collectReflections(registry); }+ // A view that shows one part of the light keeps only that part, for this camera alone.+ {+ const ShadingMode viewMode = view_shading_.get(view_id_);+ if (viewMode == ShadingMode::DirectLighting) context_.lights().isolate(true);+ else if (viewMode == ShadingMode::IndirectLighting) context_.lights().isolate(false);+ }// Before the plugins and after nothing: it reads the scene and this camera's// projection, both of which are already settled when the collect opens.{ ES_PROFILE_SCOPE("render.collect.occluders"); collectOccluders(registry); }diff --git a/src/esengine/renderer/frame/ViewShading.hpp b/src/esengine/renderer/frame/ViewShading.hppindex c19a20622..76b31324f 100644--- a/src/esengine/renderer/frame/ViewShading.hpp+++ b/src/esengine/renderer/frame/ViewShading.hpp@@ -2,7 +2,7 @@// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team/*** @file ViewShading.hpp- * @brief How a view shades the meshes it draws: as authored, clay, flat albedo, or wireframe.+ * @brief How a view shades the meshes it draws: as authored, clay, flat albedo, wireframe, or one part of the light.*/#pragma once@@ -28,9 +28,20 @@ enum class ShadingMode : u8 {Albedo = 2,/// A dark surface with every triangle edge drawn on it, hidden edges hidden.Wireframe = 3,+ /// Clay lit by the lights alone: no ambient, environment, reflection, probe or bake. Unreal's lighting+ /// components with Indirect off; with IndirectLighting it splits what Clay shows into the two halves.+ DirectLighting = 4,+ /// Clay lit by what is NOT a light: the ambient, the environment and sky, reflections, probe volumes and+ /// bakes. What fills a shadow, on its own.+ IndirectLighting = 5,};-inline constexpr u8 kShadingModeCount = 4;+inline constexpr u8 kShadingModeCount = 6;++/// Whether a mode draws meshes as clay (the lit neutral surface).+inline bool shadesAsClay(ShadingMode mode) {+ return mode == ShadingMode::Clay || mode == ShadingMode::DirectLighting || mode == ShadingMode::IndirectLighting;+}/*** @brief The one skinned entity a view colours by a joint's weights, and which joint.diff --git a/src/esengine/renderer/plugins/MeshPlugin.cpp b/src/esengine/renderer/plugins/MeshPlugin.cppindex 899a0b3c5..a3c57b5d9 100644--- a/src/esengine/renderer/plugins/MeshPlugin.cpp+++ b/src/esengine/renderer/plugins/MeshPlugin.cpp@@ -275,7 +275,7 @@ void applyShading(ecs::MeshRenderer& mesh, ShadingMode mode) {mesh.color = kWireFill;mesh.lit = false;mesh.opaque = true;- } else if (mode == ShadingMode::Clay) {+ } else if (shadesAsClay(mode)) {mesh.texture = {};mesh.color = glm::vec4(0.74f, 0.74f, 0.76f, 1.0f);mesh.lit = true;diff --git a/src/esengine/renderer/rhi/ShaderEmbeds.generated.hpp b/src/esengine/renderer/rhi/ShaderEmbeds.generated.hppindex b78ff68d9..9f73e81c3 100644--- a/src/esengine/renderer/rhi/ShaderEmbeds.generated.hpp+++ b/src/esengine/renderer/rhi/ShaderEmbeds.generated.hpp@@ -1092,8 +1092,7 @@ fn esPrevBone(joint : u32) -> mat4x4f {let chosen = u32(esInstanceTint().x);let own = vec4f(v.a_joints == vec4u(chosen));let heat = dot(own, v.a_weights);-)esshader"- R"esshader( out.v_color = vec4f(select(mix(vec3f(0.2, 0.4, 1.0), vec3f(1.0, 0.25, 0.2), clamp(heat, 0.0, 1.0)),+ out.v_color = vec4f(select(mix(vec3f(0.2, 0.4, 1.0), vec3f(1.0, 0.25, 0.2), clamp(heat, 0.0, 1.0)),vec3f(0.1), heat < 0.01), 1.0);}#endif@@ -1104,7 +1103,8 @@ fn esPrevBone(joint : u32) -> mat4x4f {select(0.0, 1.0, lmRect.x > 0.0));#endif#ifdef SHADOW_DEPTH- out.v_shadowClip = out.pos;+)esshader"+ R"esshader( out.v_shadowClip = out.pos;#endif#ifdef ES_VELOCITY{diff --git a/src/esengine/renderer/store/LightStore.hpp b/src/esengine/renderer/store/LightStore.hppindex 9d1a7bde4..73831a1e2 100644--- a/src/esengine/renderer/store/LightStore.hpp+++ b/src/esengine/renderer/store/LightStore.hpp@@ -166,6 +166,29 @@ public:}/// What baked indirect light is multiplied by this frame: the day's or the weather's say on a bake of one moment.+ /**+ * @brief Keeps one part of the light: @p direct the lights alone, otherwise everything that is not a light.+ * @details For a view that splits lighting (ShadingMode::DirectLighting / IndirectLighting). Direct zeroes the+ * ambient, the environment's both halves (its tint scales the reflection too), the baked columns' and+ * the bake's tint, which together are every term indirectIrradiance and envRadiance read. Indirect drops+ * every light, tiled ones included.+ */+ void isolate(bool direct) {+ if (direct) {+ data_.ambient = glm::vec4(0.0f, 0.0f, 0.0f, data_.ambient.w);+ data_.ambientGround = glm::vec4(0.0f);+ for (auto& c : data_.envIrradiance) c = glm::vec4(0.0f);+ data_.envTint = glm::vec4(0.0f);+ data_.reflParams.y = 0.0f;+ data_.bakedTint = glm::vec4(0.0f);+ } else {+ count_ = 0;+ tiledCount_ = 0;+ data_.ambient.w = 0.0f;+ }+ dirty_ = true;+ }+void setBakedTint(const glm::vec3& tint) {data_.bakedTint = glm::vec4(tint, 1.0f);dirty_ = true;diff --git a/tools/render-host/run.mjs b/tools/render-host/run.mjsindex f83abd1c6..ab9cfaf97 100644--- a/tools/render-host/run.mjs+++ b/tools/render-host/run.mjs@@ -32,6 +32,7 @@* ESTELLA_VERIFY_ORBIT turn the editor eye before capture ("yaw,pitch" degrees)* ESTELLA_VERIFY_STUDIO the editor view's studio lighting and exposure (JSON: see the block)* ESTELLA_VERIFY_SHADING the editor view's clay and albedo shading (any non-empty value; see the block)+ * ESTELLA_VERIFY_LIGHTING_SPLIT the editor view's direct-only and indirect-only lighting against clay (see the block)* ESTELLA_VERIFY_SKIN_WEIGHTS colour a skinned entity by joint weights (JSON {id, joints}; see the block)* ESTELLA_VERIFY_COUNTERS engine counters the drawn frame must report (JSON)* ESTELLA_VERIFY_COUNTERS_MAX counters the frame must stay UNDER — a budget (JSON)@@ -239,7 +240,7 @@ function finish(result, server) {(result.seam?.ok ?? true) && (result.nineSlice?.ok ?? true) &&(result.resize?.ok ?? true) && (result.preview?.ok ?? true) &&(result.meshPreview?.ok ?? true) && (result.grid?.ok ?? true) && (result.studio?.ok ?? true) && (result.shading?.ok ?? true) && (result.skinWeights?.ok ?? true) &&- (result.draws?.ok ?? true) && (result.counters?.ok ?? true) && (result.gpuPasses?.ok ?? true) && (result.frameDebug?.ok ?? true) && (result.edge?.ok ?? true) && (result.cutoutEdge?.ok ?? true) && (result.minified?.ok ?? true) &&+ (result.draws?.ok ?? true) && (result.lightingSplit?.ok ?? true) && (result.counters?.ok ?? true) && (result.gpuPasses?.ok ?? true) && (result.frameDebug?.ok ?? true) && (result.edge?.ok ?? true) && (result.cutoutEdge?.ok ?? true) && (result.minified?.ok ?? true) &&(result.roundtrip?.ok ?? true) && deviceLossOk && meshOk && pickOk;const why = assetsOk ? '' : `: could not load ${result.missingAssets.join(', ')}`;console.log(`\n[verify:render] ${ok ? 'PASS' : 'FAIL'} — ${SCENE} (${BACKEND})${why}`);@@ -1220,6 +1221,58 @@ app.whenReady().then(async () => {&& L.chroma > 12 && L.spread < A.spread && dAlbedo.differing > 200&& W.chroma < 6 && W.litShare > 0.003 && W.litShare < 0.2 && dWire.differing > 500 && back.max === 0 };}+ // ESTELLA_VERIFY_LIGHTING_SPLIT: clay C, direct-only D, indirect-only I, authored again. Over the pixels clay lights (the+ // meshes), I keeps the fill and loses the sun, so it is flatter than C and still above black; D keeps the sun and loses+ // the fill, so its dark end sits a fill below C's; and the two halves add up to C (a gamma frame adds as it stores).+ let lightingSplit = null;+ if (process.env.ESTELLA_VERIFY_LIGHTING_SPLIT) {+ const api = (call) => exec(`(async () => { const api = window.__estellaHeadless.api; ${call}; await api.step(2, 1 / 60); })()`);+ await api(`api.setViewShading('clay')`);+ await readFrame(`window.__split = { C: px.slice() }; return 0;`);+ await api(`api.setViewShading('directLighting')`);+ await readFrame(`window.__split.D = px.slice(); return 0;`);+ await api(`api.setViewShading('indirectLighting')`);+ await readFrame(`window.__split.I = px.slice(); return 0;`);+ await api(`api.setViewShading('shaded')`);+ // ESTELLA_VERIFY_SPLIT_OUT=<prefix>: the three frames as <prefix>-clay.png, -direct.png, -indirect.png, to be looked at.+ if (process.env.ESTELLA_VERIFY_SPLIT_OUT) {+ for (const [key, name] of [['C', 'clay'], ['D', 'direct'], ['I', 'indirect']]) {+ const url = await readFrame(`+ const P = window.__split[${JSON.stringify(key)}];+ const cv = document.createElement('canvas'); cv.width = w; cv.height = h;+ const ctx = cv.getContext('2d'); const img = ctx.createImageData(w, h);+ for (let y = 0; y < h; y++) { const sy = (h - 1 - y) * w * 4; img.data.set(P.subarray(sy, sy + w * 4), y * w * 4); }+ ctx.putImageData(img, 0, 0);+ return cv.toDataURL('image/png');+ `);+ await writeFile(`${process.env.ESTELLA_VERIFY_SPLIT_OUT}-${name}.png`, Buffer.from(url.split(',')[1], 'base64'));+ }+ }+ lightingSplit = await readFrame(`+ const { C, D, I } = window.__split;+ const lum = (P, i) => 0.2126 * P[i] + 0.7152 * P[i + 1] + 0.0722 * P[i + 2];+ const lc = [], ld = [], li = []; let chroma = 0;+ for (let i = 0; i < C.length; i += 4) {+ if (lum(C, i) <= 30) continue;+ lc.push(lum(C, i)); ld.push(lum(D, i)); li.push(lum(I, i));+ chroma += Math.max(D[i], D[i + 1], D[i + 2]) - Math.min(D[i], D[i + 1], D[i + 2]);+ chroma += Math.max(I[i], I[i + 1], I[i + 2]) - Math.min(I[i], I[i + 1], I[i + 2]);+ }+ const n = lc.length;+ const mean = (a) => a.reduce((s, v) => s + v, 0) / Math.max(a.length, 1);+ const q = (a, f) => { const b = a.slice().sort((x, y) => x - y); return b[Math.floor((b.length - 1) * f)] ?? 0; };+ return { pixels: n, chroma: n ? chroma / (2 * n) : 0,+ clay: { mean: mean(lc), p10: q(lc, 0.1), p90: q(lc, 0.9) },+ direct: { mean: mean(ld), p10: q(ld, 0.1), p90: q(ld, 0.9) },+ indirect: { mean: mean(li), p10: q(li, 0.1), p90: q(li, 0.9) } };+ `);+ const { clay, direct, indirect } = lightingSplit;+ lightingSplit.ok = lightingSplit.pixels > 500 && lightingSplit.chroma < 6+ && indirect.mean > 20 && indirect.mean < clay.mean && (indirect.p90 - indirect.p10) < (clay.p90 - clay.p10)+ && direct.p10 < clay.p10 - 0.5 * indirect.mean+ && Math.abs(direct.mean + indirect.mean - clay.mean) < 0.1 * clay.mean;+ console.log('lighting split', JSON.stringify(lightingSplit));+ }// ESTELLA_VERIFY_SKIN_WEIGHTS = {id, joints:[a, b]}: authored A, the entity coloured by joint a,// by joint b, authored again. Each joint moves a different part, so the two heat frames differ// from each other and from A, each carries the hot end of the ramp, and A2 == A byte for byte.@@ -1254,7 +1307,7 @@ app.whenReady().then(async () => {skinWeights = { H0, H1, dA, dJoints, back,ok: H0.hot > 20 && H1.hot > 20 && dA.differing > 300 && dJoints.differing > 300 && back.max === 0 };}- finish({ ok: true, studio, shading, skinWeights, entityCount, missingAssets, drawCalls, draws, counters, gpuPasses, frameDebug, edge, cutoutEdge, minified, profile, capture, expect, twins, nineSlice, count, seam, resize, preview, meshPreview, grid, deviceLoss, roundtrip, meshResident, meshAsset, meshMaterial, meshPrefab, setField, animator, pick, cameraTarget }, server);+ finish({ ok: true, studio, shading, lightingSplit, skinWeights, entityCount, missingAssets, drawCalls, draws, counters, gpuPasses, frameDebug, edge, cutoutEdge, minified, profile, capture, expect, twins, nineSlice, count, seam, resize, preview, meshPreview, grid, deviceLoss, roundtrip, meshResident, meshAsset, meshMaterial, meshPrefab, setField, animator, pick, cameraTarget }, server);} catch (e) {finish({ ok: false, error: String((e && e.stack) || e) }, server);}diff --git a/tools/renderScenes.mjs b/tools/renderScenes.mjsindex e16b28c62..e27dd2fb8 100644--- a/tools/renderScenes.mjs+++ b/tools/renderScenes.mjs@@ -175,6 +175,9 @@ export const SCENES = [// The editor eye's clay and albedo modes: clay drops everyone's colours and keeps the light,// albedo keeps the colours and drops the light, and leaving either restores the authored frame.{ id: "view-shading", tier: "pr", webgpu: true, env: {"ESTELLA_VERIFY_SCENE": "/scenes/view-shading.esscene", "ESTELLA_VERIFY_W": "256", "ESTELLA_VERIFY_H": "256", "ESTELLA_VERIFY_STEPS": "3", "ESTELLA_VERIFY_SHADING": "1"} },+ // Clay split into its two halves, as Unreal's lighting components do: the lights alone (the faces turned from the sun go+ // black) and everything that is not a light (the ambient's fill, flat and still lit). Where a shadow's light comes from.+ { id: "view-lighting-split", tier: "pr", webgpu: true, env: {"ESTELLA_VERIFY_SCENE": "/scenes/view-lighting.esscene", "ESTELLA_VERIFY_W": "256", "ESTELLA_VERIFY_H": "256", "ESTELLA_VERIFY_STEPS": "3", "ESTELLA_VERIFY_LIGHTING_SPLIT": "1"} },// A skinned surface coloured by one joint's weights: each of the two joints of the rig colours its own// half, the hot end of the ramp is on screen, and leaving the view returns the authored frame.{ id: "view-skin-weights", tier: "pr", webgpu: true, env: {"ESTELLA_VERIFY_SCENE": "/scenes/mesh-skin.esscene", "ESTELLA_VERIFY_W": "256", "ESTELLA_VERIFY_H": "256", "ESTELLA_VERIFY_STEPS": "2", "ESTELLA_VERIFY_SKIN_WEIGHTS": "{\"id\":3,\"joints\":[0,1]}"} },