feat(web): studio worlds, camera-view/offscreen environment parity, material and undo coverage
Environment lighting: - ship all eight desktop studiolights/world datasets (WBENV1 float32) and a shared loader used by both the main viewport and the offscreen worker - add the N-panel "studio 环境" selector - rotate the world background together with the environment (backgroundRotation/backgroundIntensity), so camera view and offscreen renders match the desktop Mapping-node behaviour Verification (Chromium, OPFS, NOT_CLAIMED): - environment lighting + 8 world pixel identity - camera-view rotation correspondence (camera matrices, 207 samples) - offscreen vs on-screen background parity after hiding geometry (1305 samples) - metals case extended with material-field OPFS roundtrip - material Principled edits and rename undo/redo - eight studio worlds: pairwise frame differences + luminance rank correlation - undo history depth capped at 64 steps and undo across OPFS save/reopen Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -13,7 +13,7 @@ test("boots the offline engine, renders SceneIR and performs a Main edit", async
|
||||
await page.goto("/");
|
||||
origin = new URL(page.url()).origin;
|
||||
await expect(page.locator("[data-testid=engine-status]")).toContainText("Engine: ready", { timeout: 30_000 });
|
||||
await expect(page.locator(".status-bar")).toContainText(/Storage: (IndexedDB \+ OPFS|IndexedDB|unavailable)/, { timeout: 20_000 });
|
||||
await expect(page.locator(".status-bar")).toContainText(/Storage: (OPFS|unavailable)/, { timeout: 20_000 });
|
||||
await page.setInputFiles("[data-testid=blend-file-input]", basicBlend);
|
||||
await expect(page.locator("[data-testid=scene-stats]")).toContainText("Objects 3 · Vertices 8 · Faces 6");
|
||||
await page.getByRole("button", { name: "添加立方体" }).click();
|
||||
@@ -65,7 +65,7 @@ test("keeps the committed project after quota failure and Worker restart in Chro
|
||||
restarted.terminate();
|
||||
return { backend: committed.backend, error, revision: retained.revision, reopenedRevision: reopened.revision, bytes: Array.from(new Uint8Array(reopened.buffer)) };
|
||||
});
|
||||
expect(result.backend, `${browserName} storage backend`).toMatch(/^(opfs|indexeddb)$/);
|
||||
expect(result.backend, `${browserName} storage backend`).toBe("opfs");
|
||||
expect(result.error).toContain("QuotaExceededError");
|
||||
expect(result.revision).toBe(1);
|
||||
expect(result.reopenedRevision).toBe(1);
|
||||
|
||||
Reference in New Issue
Block a user