Light
light.intensity光源-强度输入
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
target | string | 是 | ObjectId | 场景中的光源 |
lightIntensity | number | 是 | 0.0 | 光源强度 |
调用
typescript
piclient.emit("light.intensity",{
target: "ObjectId", //场景中的光源
lightIntensity: 0.0, //光源强度
})
light.pointLightradius光源-半径输入
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
target | string | 是 | ObjectId | 场景中的光源 |
lightRadius | number | 是 | 0.0 | 作用半径 |
调用
typescript
piclient.emit("light.pointLightradius",{
target: "ObjectId", //场景中的光源
lightRadius: 0.0, //作用半径
})
light.color光源-颜色输入
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
target | string | 是 | ObjectId | 场景中的光源 |
lightcolor | string | 是 | #FFFFFF | 光源颜色 |
调用
typescript
piclient.emit("light.color",{
target: "ObjectId", //场景中的光源
lightcolor: "#FFFFFF", //光源颜色
})
light.lightRotation光源-角度输入
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
target | string | 是 | ObjectId | 场景中的光源 |
lightRotation | string | 是 | 0.0, 0.0, 0.0 | 光源角度 |
调用
typescript
piclient.emit("light.lightRotation",{
target: "ObjectId", //场景中的光源
lightRotation: "0.0, 0.0, 0.0", //光源角度
})
light.shadowResolutionScale光源-阴影柔化输入
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
target | string | 是 | ObjectId | 场景中的光源 |
shadowResolutionScale | number | 是 | 0.0 | 阴影柔化 |
调用
typescript
piclient.emit("light.shadowResolutionScale",{
target: "ObjectId", //场景中的光源
shadowResolutionScale: 0.0, //阴影柔化
})
light.shadowSharpen光源-阴影锐化输入
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
target | string | 是 | ObjectId | 场景中的光源 |
shadowSharpen | number | 是 | 0.0 | 阴影锐化 |
调用
typescript
piclient.emit("light.shadowSharpen",{
target: "ObjectId", //场景中的光源
shadowSharpen: 0.0, //阴影锐化
})
light.sourceLength光源-长度输入
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
target | string | 是 | ObjectId | 场景中的光源 |
sourceLength | number | 是 | 0.0 | 光源长度 |
调用
typescript
piclient.emit("light.sourceLength",{
target: "ObjectId", //场景中的光源
sourceLength: 0.0, //光源长度
})
light.innerConeAngle聚光源-内角输入
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
target | string | 是 | ObjectId | 场景中的聚光源 |
innerConeAngle | number | 是 | 0.0 | 光源内角 |
调用
typescript
piclient.emit("light.innerConeAngle",{
target: "ObjectId", //场景中的聚光源
innerConeAngle: 0.0, //光源内角
})
light.outerConeAngle聚光源-外角输入
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
target | string | 是 | ObjectId | 场景中的聚光源 |
outerConeAngle | number | 是 | 0.0 | 光源外角 |
调用
typescript
piclient.emit("light.outerConeAngle",{
target: "ObjectId", //场景中的聚光源
outerConeAngle: 0.0, //光源外角
})
light.sourceWidth面光源-宽度输入
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
target | string | 是 | ObjectId | 场景中的面光源 |
sourceWidth | number | 是 | 0.0 | 光源宽度 |
调用
typescript
piclient.emit("light.sourceWidth",{
target: "ObjectId", //场景中的面光源
sourceWidth: 0.0, //光源宽度
})
light.sourceHeight面光源-高度输入
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
target | string | 是 | ObjectId | 场景中的面光源 |
sourceHeight | number | 是 | 0.0 | 光源高度 |
调用
typescript
piclient.emit("light.sourceHeight",{
target: "ObjectId", //场景中的面光源
sourceHeight: 0.0, //光源高度
})
light.barnDoorAngle面光源-矩边角度输入
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
target | string | 是 | ObjectId | 场景中的面光源 |
barnDoorAngle | number | 是 | 0.0 | 矩边角度 |
调用
typescript
piclient.emit("light.barnDoorAngle",{
target: "ObjectId", //场景中的面光源
barnDoorAngle: 0.0, //矩边角度
})
light.barnDoorLength面光源-矩边长度输入
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
target | string | 是 | ObjectId | 场景中的面光源 |
barnDoorLength | number | 是 | 0.0 | 矩边长度 |
调用
typescript
piclient.emit("light.barnDoorLength",{
target: "ObjectId", //场景中的面光源
barnDoorLength: 0.0, //矩边长度
})
light.shadowDistance定向光源-阴影距离输入
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
target | string | 是 | ObjectId | 场景中的光源 |
shadowDistance | number | 是 | 0.0 | 阴影距离 |
调用
typescript
piclient.emit("light.shadowDistance",{
target: "ObjectId", //场景中的光源
shadowDistance: 0.0, //阴影距离
})