mat_set_pbr
Set PBR material parameters in one call: base color, metallic, roughness, and IOR. Only affects PBR-compatible materials; others are skipped.
Instructions
一次性设置 PBR 参数:基础色 + 金属度 + 粗糙度 + IOR(反射折射率)。只对 PhysicalMaterial 等 PBR 材质有效;StandardMaterial 没有这些属性会被忽略。 [English] Set PBR parameters in one call: base colour + metallic + roughness + IOR. Only meaningful on PhysicalMaterial and similar PBR materials; StandardMaterial lacks these and is skipped.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"material": "<material>"
},
"name": "mat_set_pbr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ior | No | 反射折射率,通常 1.0..2.5。 | Reflection/refraction IOR, usually 1.0..2.5. | |
| material | Yes | 材质名称。 | Material name. | |
| metallic | No | 金属度 0..1。 | Metallic 0..1. | |
| baseColor | No | 基础色 [0-255],也可传 "#RRGGBB"。 | Base colour [0-255], or a "#RRGGBB" string. | |
| roughness | No | 粗糙度 0..1。 | Roughness 0..1. |