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:
@@ -7,7 +7,7 @@ import type { TexturePaintTileBindingRequestIR, TexturePaintTileBindingResultIR,
|
||||
import type { AssetCatalogManifestV2IR, AssetCatalogV2PreviewIR } from "./asset-catalog-v2";
|
||||
|
||||
export interface StorageSmokeResult {
|
||||
backend: "indexeddb";
|
||||
backend: "opfs";
|
||||
opfsAvailable: boolean;
|
||||
rowCount: number;
|
||||
persisted: boolean;
|
||||
@@ -16,7 +16,7 @@ export interface StorageSmokeResult {
|
||||
}
|
||||
|
||||
export interface StorageInfoResult {
|
||||
backend: "indexeddb";
|
||||
backend: "opfs";
|
||||
opfsAvailable: boolean;
|
||||
schemaVersion: number;
|
||||
stores: string[];
|
||||
@@ -48,7 +48,7 @@ export interface StorageSaveResult {
|
||||
bytes: number;
|
||||
revision: number;
|
||||
persisted: boolean;
|
||||
backend: "opfs" | "indexeddb";
|
||||
backend: "opfs";
|
||||
scenePath: string;
|
||||
sha256: string;
|
||||
}
|
||||
@@ -57,7 +57,7 @@ export interface StorageRecoveryResult {
|
||||
projectId: string;
|
||||
status: "clean" | "recovered" | "missing";
|
||||
recovered: boolean;
|
||||
backend: "opfs" | "indexeddb";
|
||||
backend: "opfs";
|
||||
revision?: number;
|
||||
bytes?: number;
|
||||
sha256?: string;
|
||||
@@ -68,7 +68,7 @@ export interface StorageProjectReadResult {
|
||||
revision: number;
|
||||
bytes: number;
|
||||
sha256: string;
|
||||
backend: "opfs" | "indexeddb";
|
||||
backend: "opfs";
|
||||
recovered: boolean;
|
||||
buffer: ArrayBuffer;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user