- 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>
14 lines
716 B
TypeScript
14 lines
716 B
TypeScript
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 };
|