dhb861832993-star/pbr-render ↗★ 6

pbr-render

在对话中直接预览和渲染GLB/GLTF等3D模型。 适合需要交互式查看3D游戏美术资产或模型渲染效果的用户。

包名
pbr-render
兼容性
待验证
版本
0.1.0
许可证
MIT
最近更新
2026年9月4日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:dhb861832993-star/pbr-render

使用 / Usage

插件自动注入系统提示教学。模型在合适场景主动调用 pbr_render 工具验证路径,然后输出 pbr3d 围栏: The plugin injects a system-prompt guide automatically. The model calls the pbr_render tool to validate the path, then emits a pbr3d fence:

```pbr3d
{"model":"E:/generated/robot.glb","autoRotate":true,"label":"API 生成的机器人 / API-generated robot"}
```

围栏规格 / Fence Spec

字段 / Field类型 / Type默认 / Default说明 / Description
modelstring必填 / required模型路径(绝对或相对工作区),.glb/.gltf/.fbx / model path (absolute or workspace-relative), .glb/.gltf/.fbx
autoRotatebooleantrue自动旋转 / auto-rotate
backgroundstring#14161c场景背景色(envBackground:true 时被 HDR 背景覆盖)/ scene background color (overridden when envBackground:true)
envstringstudio内置 HDR 环境图:studio / sunset / outdoor / sunrise / night(CC0, Poly Haven 1K)/ built-in HDR environment
envBackgroundbooleanfalse同时把 HDR 环境图显示为场景背景 / also show the HDR environment as the scene background
envIntensitynumber1.0环境光照强度(HDR/IBL 亮度)/ environment light intensity
exposurenumber1.0曝光 0.2–3 / exposure 0.2–3
viewModestringpbr初始材质视图 / initial material view
labelstring—视图说明文字 / caption under the viewer

材质通道模式 / Material-Channel Modes

模式 / Mode显示 / Shows
pbr完整物理渲染 / full physically-based render
basecolor / normal / emissive彩色贴图通道 / color map channels
roughness / metallic / ao标量通道灰度显示(R/G/R 通道提取)/ scalar channels in grayscale (R/G/R extraction)
wireframe线框 / wireframe