输入
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
target | string | 是 | ObjectId | 场景中的光源 |
shadowDistance | number | 是 | 0.0 | 阴影距离 |
调用
typescript
piclient.emit("light.shadowDistance",{
target: "ObjectId", //场景中的光源
shadowDistance: 0.0, //阴影距离
})
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
target | string | 是 | ObjectId | 场景中的光源 |
shadowDistance | number | 是 | 0.0 | 阴影距离 |
piclient.emit("light.shadowDistance",{
target: "ObjectId", //场景中的光源
shadowDistance: 0.0, //阴影距离
})