dhb861832993-star/pbr-render ↗★ 6
pbr-render
在对话中直接预览和渲染GLB/GLTF等3D模型。 适合需要交互式查看3D游戏美术资产或模型渲染效果的用户。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:dhb861832993-star/pbr-render說明文件
閱讀完整 README ↗使用 / 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 |
|---|---|---|---|
model | string | 必填 / required | 模型路径(绝对或相对工作区),.glb/.gltf/.fbx / model path (absolute or workspace-relative), .glb/.gltf/.fbx |
autoRotate | boolean | true | 自动旋转 / auto-rotate |
background | string | #14161c | 场景背景色(envBackground:true 时被 HDR 背景覆盖)/ scene background color (overridden when envBackground:true) |
env | string | studio | 内置 HDR 环境图:studio / sunset / outdoor / sunrise / night(CC0, Poly Haven 1K)/ built-in HDR environment |
envBackground | boolean | false | 同时把 HDR 环境图显示为场景背景 / also show the HDR environment as the scene background |
envIntensity | number | 1.0 | 环境光照强度(HDR/IBL 亮度)/ environment light intensity |
exposure | number | 1.0 | 曝光 0.2–3 / exposure 0.2–3 |
viewMode | string | pbr | 初始材质视图 / initial material view |
label | string | — | 视图说明文字 / 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 |