feat(web): support the full shader node add catalog
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

Extend the native editShaderNode ADD map, setShaderGraph allowlist and
blend-reader readback for the remaining 10 advertised node types; update
SceneIR and the catalog. Verified Noise Texture and Emission creation.

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
mes123456
2026-11-14 07:38:30 +08:00
parent 9499664892
commit 71a8e8c95e
9 changed files with 61 additions and 19 deletions

View File

@@ -439,6 +439,19 @@
画布加载;笔画提交(`笔画已提交`,r4)→ 撤销(`已撤销`,r5)。证据
`tools/web/complete/probe-texture-paint.mjs`。自动化中撤销按钮曾被
workspace 工具栏遮挡,程序化点击可执行;布局遮挡未单独判定为缺陷。
## 着色器节点目录补齐(2026-11-14)
- 缺口:Shader Editor 的 Add 菜单列出 24 类节点,但原生 `editShaderNode`
的 ADD 映射只支持 14 类;添加 Noise Texture 返回
`SHADER_NODE_UNSUPPORTED`(界面“节点修改未提交”)。
- 修复:`web_engine_main_state.cpp` 的 ADD 映射与 `setShaderGraph` 白名单补齐
DIFFUSE/GLOSSY/EMISSION/MIX_SHADER/ADD_SHADER/NOISE/GRADIENT/CHECKER/
FRESNEL/LAYER_WEIGHT;`web_engine_blend_reader.cpp` 读回映射;`scene-ir.ts`
类型与校验;`shader-node-catalog.ts` 的 readbackTypes。
- 证据:Noise Texture 2→3(`ShaderNodeTexNoise`)、Emission 2→3
(`ShaderNodeEmission`),SceneIR r3。WASM `fc6d0cb1...` 已同步并重建
`web/dist`。
- Compositor:`WASM 合成求值` 在无合成节点组的场景返回结构化
`INVALID_ARGUMENT: COMPOSITOR_NODE_GROUP_MISSING: scene has no
compositing node group`。此前错误对象被渲染为 `[object Object]`,已在