feat(web): support the full shader node add catalog
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:
@@ -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]`,已在
|
||||
|
||||
Reference in New Issue
Block a user