Files
workinf_Blender_Wasm/web/app/src/three-adapter/material-preview-protocol.ts
mes123456 a078648297
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled
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>
2026-11-11 14:59:43 +08:00

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 };