feat(web): complete PBR shader, asset library and offscreen render chain
- generate a desktop-Blender PBR asset library and seed catalog v2 into OPFS - add React asset browser, material preview sphere and Web PBR render panel - extend shader graph/compiler to the finite 14-node set and native properties - add image colour-space editing, scene-camera still rendering and asset repair - add focused E2E/unit coverage and implementation status notes Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
13
web/app/src/three-adapter/material-preview-protocol.ts
Normal file
13
web/app/src/three-adapter/material-preview-protocol.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import type { MaterialIR, WorldIR } from "../../../protocol/scene-ir";
|
||||
import type { GPUTextureAsset } from "../../../protocol/render-assets";
|
||||
import type { ShaderCompileReport } from "../../../protocol/shader-compiler";
|
||||
|
||||
export type MaterialPreviewRequest =
|
||||
| { type: "init"; width: number; height: number }
|
||||
| { type: "render"; requestId: string; material?: MaterialIR; textures: GPUTextureAsset[]; world?: WorldIR }
|
||||
| { type: "dispose" };
|
||||
|
||||
export type MaterialPreviewResponse =
|
||||
| { type: "ready" }
|
||||
| { type: "preview"; requestId: string; png: ArrayBuffer; width: number; height: number; compile?: ShaderCompileReport; backend: "THREE_WEBGL2" }
|
||||
| { type: "error"; requestId?: string; message: string };
|
||||
Reference in New Issue
Block a user